raspberry pi to indigo communication

Posted on
Mon Dec 07, 2015 8:29 am
kw123 offline
User avatar
Posts: 8333
Joined: May 12, 2013
Location: Dallas, TX

raspberry pi to indigo communication

I would like to start a discussion on how to integrate RPI and similar devices into indigo.

I have chose the following route which seem to be stable and offers fast performance, and puts only a small performance burden on the MAC. But there might be an easier way:

RPI sends HTTP message to the INDIGO MAC, a small python webserver receives the message, does some error checking and then writes to stdout.

The web server was launched by a plugin and the std out is captured as a pipe with no blocking (does not wait for communication)

Then the plugin loops and checks the std out pipe of the web server every 0.5 seconds, if no msg: sleep for 0.5 seconds, if MSG received take the message parse it and use the contents.

Is there an easier way to get the data from an PIR or similar into indigo, that supports buffering of messages?

If anyone wants to see the code, let me know (all included in the piBeacon plugin)

thanks

Karl

Posted on
Mon Dec 07, 2015 12:58 pm
jay (support) offline
Site Admin
User avatar
Posts: 18199
Joined: Mar 19, 2008
Location: Austin, Texas

Re: raspberry pi to indigo communication

Seems like the MQTT Gateway plugin was designed for this exact type of thing.

Jay (Indigo Support)
Twitter | Facebook | LinkedIn

Posted on
Mon Dec 07, 2015 1:23 pm
afulki offline
Posts: 15
Joined: Jun 01, 2015

Re: raspberry pi to indigo communication

As above MQTT, with RaspPi running Node-Red.

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 2 guests