I thought I would do a quick blog on my weather station and how I set it up on my website. I’ve been interested in weather since I took up photography as it helps me to know when best to venture out with the camera and when best to stay inside with a cuppa (although it’s really not 100% reliable from experience!).
HP1000 / WS-1001 / Maplin N23DQ
I purchased this weather station as it seemed to have most of the criteria I was looking for, self-charging and easy to setup as it transmits via a radio link so no wiring needed. The model is re-branded by Fine Offset and Ambient weather to but the cheaper retailer inthe UK was Maplin with the N23DQ:
Maplin Professional Solar Powered Wi-Fi Weather Station N23DQ – Purchase on ebay
- Professional weather station that measures outdoor temperature, humidity, wind speed and direction, rainfall and solar / UV radiation from the all-in-one outdoor sensor
- Wireless indoor sensor measures temperature, humidity and barometric pressure
- Weather forecasting is based on the changing barometric pressure
- View your data online with your smartphone, tablet or computer using Wunderground.com
- Data can also be saved to an SD card
- Wireless transmission range up to 150m with encrypted Wi-Fi security
- Includes alarm modes for temperature, humidity, wind chill, dewpoint, rainfall, windspeed, pressure and storm warnings
- Full colour, easy to ready TFT LCD screen
- Operates on a 5V DC adapter for console (included), 3x AA rechargeable batteries for outdoor sensor ( included), 2x AAA batteries for indoor sensor (not inlcuded)
- Can be mounted on a wall or free standing
The standard setup is running it with the console and you can either read the data on the screen and cycle through the pages with the buttons or , via Wi-Fi, upload the data to WUnderground after setting up your own weather station page. This is all in the instruction booklet so I won’t cover it here. However if you want to send this information to other weather services you can’t have multiple destinations in the console i.e. wundergound, and it is not in the standard cumulus format (you get what you pay for). This is where the Raspberry pi comes in and with a little bit of tinkering you get something much more powerful. You can use PC based software but then you have to have your PC on all the time. I don’t really want to use more electricity then I have to and have my PC on 24/7. This is where the Pi comes in. I had an old MK I Pi which I was given as a birthday present from a friend (Thx Neil) and I could now finally use it for than just a media station.
Raspberry Pi OS
First off is to setup the Pi – this is the easy bit. It’s easy to install Raspbian OS on an SD card: https://www.raspberrypi.org/downloads/raspbian/
Weather station setup
Setup unit as per instructions then change the upload domain from weather underground to your Pi’s IP address (get a static IP setup for the Pi on the same LAN as your weather station)
The instruction booklet tells you all about getting a free WU account and login password etc and go to the setup page, select weather server.
Change the web field to the IP address of your pi on your LAN.
Save and that’s it for the weather station console. The data will then be sent to the Pi – however you have to have a program running on the Pi to receive the data and also push it out to a website, WU and also to others like the Met Office:
Weewx is software, written in Python, that interacts with a personal weather station to produce plots, reports, and HTML pages. It can optionally upload the reports to a remote Web server as well as publish to weather services such as WeatherUnderground, CWOP, or PWSweather.com.
Weewx on Pi Setup
A rundown of how to install Weewx is found on quite a few sites including Weewx but I thought I’d put it in one place. Essentially everything is completed in the command window in the Terminal application:
Install Weewx software:
Python 2.7 should already be on it I think but see install:
sudo dpkg -i weewx_X.Y.Z-R_all.deb
sudo apt-get update sudo apt-get -f install
When you install choose simulator diver then install Interceptor driver:
https://github.com/matthewwall/weewx-interceptor then choose the correct driver which is 0: Interceptor then type observer
Then install Cumulus realtime plugin:
I had trouble so used the command:
wee_extension –install weewx-crt-0.12.tgz
This will output a realtime.txt file which you can then change the output destination to a folder of your choice – I choose HTML ROOT/weewx so I could use the FTP to upload the realtime.txt. I configured the appropriate html template FTP conf file to add realtime.txt to upload to my webserver as well as the std. Weewx html data.
Edit home/weewx/weewx.conf with sudo nano command and edit the sections like the WU logins, FTP upload details etc. that you need and configure the destination of the realtime export. You can use a remote program like PUTTY via SSH or a VNC direct from your workstation to control the Pi instead of having a mouse, keyboard and screen plugged into it.
The web template I used is at http://weather34.com/homeweatherstation/ and follow instructions for install and configure setup to your location and location on your webserver for the realtime.txt. and you need to setup 3 cron jobs (see the setup guide) via your webserver as stated and a WU api key for this to work. And it’s done!
Next it so analyse the winter 2016/2017 data from my weather station as it will output, to a microSD card, a detailed Excel file… Hopefully to follow.