LowPowerLab Forum

Software support => Pi Gateway => Topic started by: r.rabin on March 18, 2018, 01:14:46 AM

Title: Adding Weathershield node
Post by: r.rabin on March 18, 2018, 01:14:46 AM
Hello,

I am running the Gateway server on a Raspberry PI 3. I have a Moteino attached to the USB port of a Raspberry PI running the rf95_server sketch. Another remote Moteino equipped with a Weathershield is running a modified version of the rf95_client sketch. Data is being received by the server, but the Weathershield does not show up as a Node on the Gateway. How are the Nodes assigned? Do I need to define values for  GATEWAYID, NODEID, or NETWORKID in both server and client sketches?

I have "genNodeifnomatch" set to TRUE in my settings. The log does show data being received by the server (which is attached to the Raspberry PI).

Thank you! -Bob



How
Title: Re: Adding Weathershield node
Post by: Felix on March 19, 2018, 01:03:13 PM
The gateway software expects properly formatted serial messages from your Moteino/MightyHat or whatever else MCU+radio you use.
Format is like this:

[id] data

where id is the node id, and data is space separated tokens. The tokens are defined in metrics.js, or you can define your own in separate userMetrics.js files, example is given in the userMetrics (https://github.com/LowPowerLab/raspberrypi-gateway) folder.

For the weather shield, you have to send recognized metrics like: F:75.30 H:60 etc.
See metrics.js (https://github.com/LowPowerLab/RaspberryPi-Gateway/blob/master/metrics.js) for more.
Title: Re: Adding Weathershield node
Post by: r.rabin on March 23, 2018, 10:16:46 PM
Thank you Felix. This is very useful information!

-Bob
Title: Re: Adding Weathershield node
Post by: kwalkerk on August 21, 2018, 11:48:50 AM
r.rabin

I have a similar setup.  Did you get it working?  If so what serial port/baud rate did you use in the gateway settings?

Also can you share your code for the client and server sketches?

Thanks!

Ken
Title: Re: Adding Weathershield node
Post by: Felix on August 21, 2018, 03:16:29 PM
FWIW : the defaults are 19200 baud both in the PiGateway sketch (https://github.com/LowPowerLab/RFM69/blob/master/Examples/PiGateway/PiGateway.ino), and in the Gateway settings file (https://github.com/LowPowerLab/RaspberryPi-Gateway/blob/master/settings.json5).