Upload
dominic-storey
View
154
Download
3
Embed Size (px)
Citation preview
A Raspberry Pi enabled weather station
Dom Storey, ([email protected])IBM Hybrid Integration, Senior Inventor24th March 2016
Weather Storey...
Why?Given a Pi as a birthday present... Hate wasting things.
Maplins also had a sale on…
I can’t resist a sale!
http://www.weather.dragontail.co.uk/index.php?page=station_setuphttps://github.com/jim-easterbrook/pywws
Found this piece of Open Source
Which publishes to Weather Underground using perl
and also had the ability to tweet
Added “fortune” cookie tweets for variety!
@weatherStorey
Unwanted attention!
Section pageMore text on one line in this location if needed
From Twitter to Facebook
How does it work?
10
Raspberry Pi setup Raspberry Pi powers the WH1080 weather station and uses pywss to collect the weather
stats and publish them via a cron job every 10 minutes– Can power the base station as I have it connected to an Ethernet Powerline Adapter– These are then sent to a public weather underground api
http://www.wunderground.com/personal-weather-station/dashboard?ID=IHAMPSHI98– And tweeted
Every hour a fortune is also tweeted via cronjob using the pywss twitter perl script The Pi also runs “ddclient” and so can be contacted externally at a known domain
– uses http://mooo.com/ (https://samhobbs.co.uk/2015/01/dynamic-dns-ddclient-raspberry-pi-and-ubuntu)
– SSH port 22 mapped externally to stop simple hacking and ‘pi’ user disabled(http://raspi.tv/2012/how-to-create-a-new-user-on-raspberry-pi)
- Allows access to NAS drives
11
Pi Negatives
Model B can be slow but the Pi 2 and especially Pi 3 are now comparable with PC’s from 15 years ago
– I remember spending £100 for a P120 rather than a P90! Only 100Mbs Ethernet Only 1GB RAM PiZero good for IoT low power applications Model B has been through 2 SD cards in 3 years of continuous running
– Backing up a must Runs an OS so not good for very low latency millisecond applications
– Computer not a microcontroller like an Arduino– Cannot Switch LED strips as they need ms addressing
I now have several Pi’s and so am officially addicted to Pi
Model B - Home/ Weather station Pi
Model B+ - Son’s Scratch and Minecraft Pi
Pi 2 – MAME Arcade Machine Pi
Pi Zero – Plan to make a doorbell tweeter
Pi 3 - ???????
Any Questions?