-
Notifications
You must be signed in to change notification settings - Fork 130
Misterhouse can send as well as receive xAP data over the network. The low level support is in mh/lib/xAP_Items.pm. Thanks to Gregg Liming for explaining most of this stuff in messages posted on the email list.
Here are some things you can do with Misterhouse and xAP:
xap_disable = 0|1 xap_nohub = 0|1 xpl_disable = 0|1 xpl_nohub = 0|1 xap_echo_all = 0|1 xap_echo_mhspeech = 0|1 : Enable MH to process speech xap_enable_items = 0|1 : Synchronize objects with same names between instances xap_enable_voice_cmds = 0|1 :Enable MH to process xAP Voice Commands (Note this only works in 4.3)
The easiest xAP application to get running with Misterhouse is xAP Speech for Windows. This program will announce your Misterhouse Speech output on a remote PC. Misterhouse can be running on any platform (ie. Linux, Windows, Mac.) The first thing to do is activate the xAP_send.pl script in the Misterhouse common code web interface. Next, install the xAP Speech application from here:
http://www.mi4.biz/modules.php?name=Downloads&d_op=viewdownload&cid=18
Start it up and double-click its icon in the system tray to configure.
Note: If you are using a version of Misterhouse numbered 2.103 or lower, there is a bug in xAP_send.pl that keeps this from working in some cases. Either download the latest script from https://misterhouse.svn.sourceforge.net/svnroot/misterhouse/trunk/code/common/xAP_send.pl or add this line to your private ini file:
speak_volume=100
If you want PA-like targetting, then you'll need to enable code/common/xAP_pa_control.pl and set up a mht entry using something like the following:
PA, mi4.speech.<hostnameofwindowsbox></hostnameofwindowsbox>, <yourroomname></yourroomname>, all|default|<someotherroomname></someotherroomname>, tts.speak, xap
Add one for each "room" that you want to control.
TODO: I don't know how to configure xAP Speech te only say stuff destined for that "room".
If you are going to run more than one xAP application on any machine, you will need to first install a xAP hub on that machine. Misterhouse has code to act as a xAP hub, but I couldn't get it to work on my Linux box. A good basic command line hub is xap-hub available at http://patrick.lidstone.net/haweb/hub.htm . The xap-receive program, also by Patrick Lidstone, is great debugging tool that shows you all xAP packets on the network.
If you are running winXP or winVista, then get your hub here:http://www.edjo.pwp.blueyonder.co.uk/edward/xAP/xFx/hubs_download.htm (the service install is recommended). If using win2x, then get it here:http://www.mi4.biz/modules.php?name=Downloads&d_op=viewdownload&cid=41 (again, the service install is recommended). I couldn't get these versions to run more than a few seconds on my XP laptop. It was probably something wrong with my .NET configuration. If you have problems with these versions, or just prefer open source, get the cygwin binary version of xap-hub from http://patrick.lidstone.net/haweb/hub.htm .
If you want to run xap-hub as a windows service, get a copy cygrunsrv.exe of and run something like:
cygrunsrv.exe -I xap-hub -e CYGWINnontsec -p c:/xap-hub/xap-hub.exe -a "eth1" cygrunsrv.exe --start xap-hub
I got cygrunsrv.exe as part of a rsyncd package and didn't have to do a full cygwin install.
Patrick's xap-hub program can also be compiled and run on Mac OSX. We need notes on how to do this.
1-Wire Adapter-->Digitemp-->OXC-->xAP-->MH OWX-->MH AnalogSensor_Item
or
1-Wire Adapter-->OWFS-->OXC-->xAP-->MH OWX-->MH AnalogSensor_Item
more to come
to come http://www.mi4.biz/modules.php?name=Downloads&d_op=viewdownload&cid=8
Display Weather Data on Windows using xAP Desktop
Webcam Pop-Ups on Windows using Zoneminder,
e
here are some of gregg's ideas that should be developed more:
> Can you think of any application of xAP technoiogy and misterhouse that is > relatively easy to setup and would appeal to a wide audience?
I can think of several areas that are "relatively" easy:
1) Distributed speech (I do this personally w/ a Linux main mh instance and xAP speech on a win2k system to take advantage of win voices)
2) Distributed display. xAP Intranet and xAP Desktop (I'd recommend the former) are known "soft clients" whereas a recent xAP squeezebox plugin allows for a hardware client. Admittedly, I still using xPL for my squeezebox
3) Voice Command remoting. I had intended to setup VR on a windoze system and have it remote commands on my linux instance. There are other applications as well if you have multiple instances running.
4) xAP NetIOM (and possibly other xAP BSC-compliant hardware). The NetIOM provides DIO and analog inputs. It's somewhat less commonly used by most mh users though
5) xAP Opnode's Opn-one. This is a dedicated one-wire appliance that talks via xAP. No owfs or digitemp; just plug it in and it works.
6) Zoneminder integration. Portions are extremely simple (e.g.,using the distributed warnings to xAP displays as well as an ability to change "run states"). The ability to change run-state is a semi-advanced use of zm; but, is extremely simple on the mh side. Also, for OMP-oriented users, zm zone's mimic Motion_Items.
There may well be other areas that don't immediately come to mind. Let me know if any of these appeal and I'd be happy to assist w/ the writing.
Gregg