LowPowerLab Forum

Software support => Pi Gateway => Topic started by: vdesouza on April 03, 2016, 01:26:28 PM

Title: Reading MoteinoUSB output from USB port of RPi
Post by: vdesouza on April 03, 2016, 01:26:28 PM
Still trying to figure out how Moteino's work. I am trying to read the output from a MoteinoUSB plugged into a usb port of a RPi. I am trying to do this with Python.

Set up:
Node - MotionMote that sends a "motion detected" message when motion is detected.
Gateway - A MoteinoUSB plugged into the usb port on my raspberry pi.

What I am trying to do:
How can I use python to read the "motion detected" message from the usb moteino plugged into the Raspberry Pi?
Something like:

message = getMoteinoMessage()
if "motion detected" in message:
    //do something

How do I write the getMoteinoMessage?

Thanks
Title: Re: Reading MoteinoUSB output from USB port of RPi
Post by: Felix on April 04, 2016, 10:48:35 AM
See how i've done it in this example (https://github.com/LowPowerLab/WattMote/blob/master/WattMote.py).