Hi Bill, 
I just wanted to share I received my ESP8266... 30min later it send some 
mqtt message every minute for outTemp & Humidity... Well it is still dummy 
values because the sensor is still on the way. But it's very simple to 
connect to WiFi then mosquitto. 

I think I will open a github.com page to share the code for sensor side. 


Best regards, 

Le samedi 25 février 2017 22:11:24 UTC+1, Wysiwyg a écrit :
>
> Hi !
>
> I just set a very very very simple bash script to generate some random 
> mqtt publisher.
>
> here it is, just in case it helps for testing
>
> #!/bin/sh
> while [ true ]
> do
>         outTemp=$((20+ $(od -An -N1 -i /dev/random) % 5))
>         mosquitto_pub -t weewx/outTemp -m $outTemp -u <broker_username> -P 
> <broker_password> -h <broker_ip>
>         barometer=$((1010+ $(od -An -N1 -i /dev/random) % 10))
>         mosquitto_pub -t weewx/barometer -m $barometer -u 
> <broker_username> -P <broker_password> -h <broker_ip>
>         sleep 2
> done
>
>
>
>

Reply via email to