-
Notifications
You must be signed in to change notification settings - Fork 131
Proxy
- Allows the real real MisterHouse to not pause while reading or writing to slow interfaces (e.g. X10 CM11, CM17, or iButton).
- You can monitor and control remote serial ports. For example, an old PC running MisterHouse in a barn, or an internet connected PC in a vacation home.
- Sharing of interfaces between different MisterHouse boxes. For example, you can run a test version of MisterHouse to debug new code without buying a 2nd interface.
- Use small, quiet, low power PC's in different rooms to distribute speech from your main MisterHouse with the speak rooms= parameter, using Ethernet instead of a relay / PA wiring scheme (XAP may be a better choice for this now).
- Wean yourself off of one OS onto another, sharing ports from your old computer to the new one.
Tested interfaces include cm11, cm17, iButton, weeder, mr26, wx200 weather, modem, netcallerid, and ham tnc.
Install Misterhouse files as you did for your main MisterHouse server. Copy and modify the mh/bin/mh_proxy.ini and mh_proxy (unix) or mh_proxy.bat (windows) files. Then run mh_proxy.bat. If you have tk installed, you may want to set tk=1 in your proxy ini while debugging.
Another option, instead of running a simple pruned down mh with mh_proxy, you can also simply run a 2nd normal version of mh, and simply include the proxy code dir in you mh.ini code_dir parm and add the server_proxy_port parm. For example:
You can start or restart either the main mh or mh_proxy before or after the other one and they should sync up.
|| ====Serial Ports==== || In the mh_proxy.ini, configure the port as you usually would. On the main instance, configure the port to point to the proxy (serial_modem_port = proxy localhost:8085) Note: Something must create the port on the proxy machine. || || ====iButtons==== || If you want to put an iButton port on a proxy, you will need to also run a code file on the proxy that defines all the iButtons you will use on that port. These iButton object names must match those on in your real code on your main mh box. One way to do this is to share the same iButton.pl code file on your proxy as you use on your main mh box, using the mh.ini/mh.proxy.ini code_dir and load_code parms. || || ====Speech==== || If you want to distribute speech to mh_proxy machines, see mh/code/public/speak_proxy.pl for example code. ||