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.

N23DQ Setup Page

N23DQ Setup Page

 

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

Other software can also run on the Pi like Cumulus MX and Pywws.

 

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:

lx terminal

 

Install Weewx software:

Python 2.7 should already be on it I think but see install:

About: https://github.com/weewx/weewx/wiki

About: http://www.weewx.com/docs/usersguide.htm

 

Use this to install .py: http://www.weewx.com/docs/setup.htm or you can do it via a .deb http://www.weewx.com/docs/debian.htm

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:

https://github.com/weewx/weewx/wiki/Cumulus-RealTime

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.

Weewx HTML static output

 

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.

 

weewx.conf editing

 

Website Upload

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!

 

Personal Weather Station Template

 

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.

 

5 Comments
  1. Ian Millard

    Hi Richard. Can you please tell which firmware your WS1001 console is running as you seem to have more options on than I have on the Setup screen. I am having difficulty in communicating between my Pi and the console. Many thanks, Ian

  2. Ian Millard

    Hi, what version of firmware is your console running. Setup screen has more fields than mine. Thanks

    • Richard Fox

      Hiya – I’m on 2.3.1 Ian

  3. J.R.

    I’m trying to execute a similar setup to feed my station to cwop. Though I’m having a hard time getting the ws-1001 console to forward data to my Pi with weewx installed. On your server settings, I know you add the IP address of the pi, but what station ID and password does the pi require? The pi user and login password? The wunderground credentials? Or something else?

    Best,
    J.R.

    • Richard Fox

      Hiya – The only thing I changed was the IP address of the Pi – the login details I left as the weather underground login name, web domain and password. But I changed the type of site code to PHP. I did not change anything on the Pi but you have to install a listening script on the Pi (as in my blog) with Weewx. Unless oyu have any issues with soft or hard firewalls on your P or LAN? my Pi is wired into the LAN.

Leave a Reply