13
A Raspberry Pi enabled weather station Dom Storey, ([email protected]) IBM Hybrid Integration, Senior Inventor 24 th March 2016 Weather Storey...

Raspberry pi weather storey

Embed Size (px)

Citation preview

Page 1: Raspberry pi weather storey

A Raspberry Pi enabled weather station

Dom Storey, ([email protected])IBM Hybrid Integration, Senior Inventor24th March 2016

Weather Storey...

Page 2: Raspberry pi weather storey

Why?Given a Pi as a birthday present... Hate wasting things.

Page 3: Raspberry pi weather storey

Maplins also had a sale on…

I can’t resist a sale!

Page 4: Raspberry pi weather storey

http://www.weather.dragontail.co.uk/index.php?page=station_setuphttps://github.com/jim-easterbrook/pywws

Found this piece of Open Source

Page 5: Raspberry pi weather storey

Which publishes to Weather Underground using perl

Page 6: Raspberry pi weather storey

and also had the ability to tweet

Added “fortune” cookie tweets for variety!

@weatherStorey

Page 7: Raspberry pi weather storey

Unwanted attention!

Page 8: Raspberry pi weather storey

Section pageMore text on one line in this location if needed

From Twitter to Facebook

Page 9: Raspberry pi weather storey

How does it work?

Page 10: Raspberry pi weather storey

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

Page 11: Raspberry pi weather storey

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

Page 12: Raspberry pi weather storey

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 - ???????

Page 13: Raspberry pi weather storey

Any Questions?