On Monday, 5 December 2016 05:32:46 UTC-4, Joaquin Lopez wrote:
>
> It would be possible to configure the weewx system to be able to receive 
> the data from the different sensosrs of our weather estation?
>
> Thanks in davance!
>

I built a system where an Arduino reads sensors using I2C, and sends the 
data to a Raspberry Pi as a small packet using RF24Mesh radios. Then a 
process running on the Pi, modeled after one of the RF24Mesh examples, 
publishes to an MQTT broker. A weewx driver subscribes to the publication 
and writes to the weewx database. The broker and weewx are running on a 
different computer, but they could be on the Pi.

In your case, where the Pi already has the data, you could make something 
similar but simpler. Change the /home/pi/weather-station/interrupt_daemon.py 
script to publish to MQTT, run mosquitto or some other MQTT broker, and use 
my MQTT subscribing driver to read from the broker and generate loop 
packets (snapshopts of your readings) inside weewx.

*https://github.com/morrowwm/weewxMQTT.git, *look for 
<https://github.com/morrowwm/weewxArduino/tree/caf848ffc12233757cddd3e7f023f15d8468e2dd>
 
<https://github.com/morrowwm/weewxArduino> weewxMQTT 
<https://github.com/morrowwm/weewxMQTT>/bin 
<https://github.com/morrowwm/weewxMQTT/tree/master/bin>/weewx 
<https://github.com/morrowwm/weewxMQTT/tree/master/bin/weewx>/drivers 
<https://github.com/morrowwm/weewxMQTT/tree/master/bin/weewx/drivers>/
*wxMesh.py* 

I'm new to github, so hope I've done that right.

The nice thing about putting an MQTT broker in the middle is that you can 
change either your collection software or weewx independently. I have 
created a new version of hardware, tested it with a test topic in MQTT and 
then put it into production by just changing the topic to be the official 
one which the weewx driver is subscribed to. 


-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to