I spoke too soon. The message from the Music Pi to the Bells Pi to trigger the Wedding changes no longer works. I can't see what's wrong at the moment but the two devices seem to connect OK.
I think I'm getting the naming wrong again.
I spoke too soon. The message from the Music Pi to the Bells Pi to trigger the Wedding changes no longer works. I can't see what's wrong at the moment but the two devices seem to connect OK.
Code: Select all
# Set up connection to the Bells Pi
site_settings = config.SITE_SETTINGS["BELLS"]
# We are a server to the Bells Pi and we are hosting sockets.
bells_socket = socket_tools.Sockets("Socket", "MUSIC-S", "Bells Pi Sockets Client")
bells_socket.set_portnumber(site_settings["ServerPort"])
bells_socket.set_server_address(site_settings["IPAddress"])
sockets[site_settings["SocketID"]] = bells_socket
bells_socket.start_handler()
# Accept connection to Webserver
# site_settings = config.SITE_SETTINGS["MUSIC-C"]
# logger.info("Initialising connection to Webserver sockets server, please wait...")
# print("Initialising connection to Webserver sockets server, please wait...")
# webserver_socket = socket_tools.Sockets("Plug", "MUSIC-C", config.SITE_SETTINGS["MUSIC-C"]["SocketName"])
# webserver_socket.set_portnumber(config.SITE_SETTINGS["MUSIC-C"]["ServerPort"])
# webserver_socket.set_server_address(config.SITE_SETTINGS["MUSIC-C"]["ServerAddress"])
# webserver_socket.start_handler()
Code: Select all
bells_socket.write("Wedding Changes Start")
Code: Select all
data = bells_socket.read()
Code: Select all
git fetch
git checkout fix_socketsconfig
Hamish,hamishmb wrote: ↑03/02/2021, 10:34Okay, merge request submitted at https://gitlab.com/wmtprojectsteam/mins ... requests/1