Re: [mh] xAP vs Proxy
Stephen Switzer <[email protected]>
| Newsgroups | gmane.comp.misc.misterhouse.user |
|---|---|
| Message-ID | <CALSXUc056==gCc+cH_s_Asmp2--HpzA-EiFft9Qj-BxZm1GErw@mail.gmail.com> |
Thanks for the reply and confirmation! I don't understand xap basics yet. Is it UDP based? I noticed that the secondary instance has no broadcast address, but isn't this one sending item state data to the main instance? If I want to run the secondary on my laptop occasionally for development, do I need to comment anything out on my main instance so it doesn't look for the laptop constantly? Sorry, noob here. LOL Steve On Tue, Nov 24, 2020 at 1:00 PM H Plato <[email protected]> wrote: > Yup, I use this to syncronize objects in two instances. I have one > instance for items that are network based and could have pauses (like > venstar or razberry), and then a master loop that has the primary logic. > xAP synchronizes item state and speech events > > Been running this way for years. From what I recall: > > 1. I use ubuntu. > 2. I use a xap-hub from 2002 that Patrick Lidstone created (I have the > source if needed) > 3. my mh.ini xap settings: > > #master instance > # Xap Control > xap_disable= 0 > xap_nohub = 1 > xpl_disable= 0 > xap_echo_all = 0 > xap_echo_speech = 1 > xap_echo_mhspeech = 1 > xap_enable_items = 1 > ipaddress_xap=192.168.0.x > ipaddress_xap_broadcast=192.168.0.255 > > #secondary instances > xap_nohub = 1 > xpl_disable= 0 > xpl_nohub = 1 > xap_echo_all = 0 > xap_echo_mhspeech = 1 > xap_enable_items = 1 > > 4. The items need to have the exact same name in both instances > > On Nov 24, 2020, at 10:29 AM, Stephen Switzer <[email protected]> wrote: > > I've been trying to refresh my memory on something I did 10+ years ago. I > had an instance of MH on my laptop that monitored the motion sensor of my > main MH instance and reacted to it, etc. I was looking and the proxy code > and discovered that this really only works with serial items, so I have to > re-create the code from the serial layer on up. > > I then discovered the xAP explanation ( > https://github.com/hollie/misterhouse/wiki/xAP) and realized that object > states and voice commands can be synchronized. I'm not quite understanding > this idea. Can someone share a working implementation? It should be of an > instance that can sometimes run, but usually will be off. > > Other ideas? > > Thanks! > > > -- > > Best regards, > Steve Switzer > > --- > Get world-class business I.T. services and a phone system with awesome features that won't challenge your budget!http://www.sbsROC.com <http://www.sbsroc.com/> > > ________________________________________________________ > To unsubscribe from this list, go to: > https://lists.sourceforge.net/lists/listinfo/misterhouse-users > > > -- Best regards, Steve Switzer --- Get world-class business I.T. services and a phone system with awesome features that won't challenge your budget!http://www.sbsROC.com ________________________________________________________ To unsubscribe from this list, go to: https://lists.sourceforge.net/lists/listinfo/misterhouse-users