1: Please include a full tarball next time - I had to copy the Tools package from rivercontrolsystem but I don't know if you've made any changes. Hopefully not. I also had to re-create some the the directory structure the code expects to be in place.
2: I get an "Invalid System ID" error from sockettools.py when starting your minstermusic.py program, until I modify it to include the correct System ID:
Code: Select all
socket = socket_tools.Sockets("Socket", "BELLS", site_settings["SocketName"])
Likewise for minsterbells.py:
Code: Select all
socket = socket_tools.Sockets("Plug", "BELLS", config.SITE_SETTINGS["BELLS"]["SocketName"])
The reason they can't connect is that in config.py ServerAddress for BELLS is set to 192.168.0.25 (the NAS box IP). After changing this to 192.168.10.1 it should work. I tested locally with 127.0.0.1 and it worked okay.
4:
Maybe there should be a note in minstermusic.py that site_settings refers to the settings for BELLS, not MUSIC. Seeing as this is a global variable, I can see it causing problems in the future due to confusion. Perhaps renaming it or deleting it afterwards is a good idea.
I now have them talking to each other, so hopefully my notes above get it working for you too. If this is in a git repository somewhere I'll be happy to submit a pull request with these changes. I just tested locally on my desktop so I had to comment some things out - hopefully I didn't change anything extra without realising.