Dear @Jodaille,
the gateway program beradio now accepts payloads on STDIN to be compatible with your readLog.php program, so you can run it in parallel to logToEmoncms.sh.
Synopsis
When submitting data like:
$ echo 'id=Danvou;lux=13940.88;bmpP=997.03;bmpT=20.32;topT=0;entryT=0;h=70.55;siT=19.38;rainLevel=2.24;RainFall=466;milli=332143870;' | beradio forward --source='data://stdin' --target='mqtt://swarm.hiveeyes.org:1883'
while listening on MQTT:
$ mosquitto_sub -h swarm.hiveeyes.org -p 1883 -t 'hiveeyes/#' -v
you should receive a response like:
hiveeyes/testdrive/tug22/Danvou/data.json {"lux": "13940.88", "bmpP": "997.03", "bmpT": "20.32", "topT": "0", "entryT": "0", "h": "70.55", "siT": "19.38", "rainLevel": "2.24", "RainFall": "466", "milli": "332143870"}
And measurement data should start being displayed at https://swarm.hiveeyes.org/grafana/dashboard/db/hiveeyes-testdrive-automatic.
Setup
After installing BERadio, you can display the “network_id
” currently in use:
$ beradio info
--------------------------------------------------
beradio 0.11.0
--------------------------------------------------
config file: /Users/amo/Library/Application Support/beradio/config.json
network_id: testdrive
gateway_id: tug22
You should edit the “config file
” to have the “network_id
” configured as “testdrive
”. By doing that, it is possible to submit data to MQTT without credentials, as the “testdrive
” channel does not have any protection.
We would be happy to see measurement data from your hive on our collaborative platform. Let us know if you have further questions or when you encounter any problems.
Cheers,
Andreas.