Thu Apr 06, 2017 4:34 pm
Get an ESP8266 module - I've been using both the cheap clones and real versions of the WeMo mini D1& pro models - and load up the Arduino IDE with the required support. See AdaFruit's site for lots of very good doc.
Then grab the libraries for mqtt and BME/P support, hack the demo program a little and you're done; well aside from making a box to protect it outdoors.
On the Pi, apt-get install mosquitto to load up the MQTT broker. There's a ton of decent tutorials around the web for this. They must be good - I understood enough to survive the horror of using both Python and Arduino C++ well enough to be able to write my own MQTT client in a proper language.
Making Smalltalk on ARM since 1986; making your Scratch better since 2012