Join the IOT with your Weather Station – CWOP
Do-Wop, Do-Wop the CWOP….
In this New Instructable by SwitchDoc Labs you will learn
- What is CWOP (Citizens Weather Observation Program)
- How to connect a Raspberry Pi based Weather Station to CWOP
- What Software Do You Need?
- How to Register at CWOP
- How to See Your CWOP Results
And most importantly, have fun doing it!
What is CWOP?
The Citizen Weather Observer Program (CWOP) is a network of privately owned electronic weather stations concentrated in the United States but also located in over 150 countries. Being in this network allows volunteers with computerized weather stations (like the WeatherPi – http://www.instructables.com/id/Create-Your-Own-Solar-Powered-Raspberry-Pi-Weather/) to send automated surface weather observations to the National Weather Service.
This data is then used by the Rapid Refresh forecast model to produce short term forecasts (3 to 12 hours into the future) of conditions across the United States’ lower 48 states.
CWOP Observations are also re-distributed to the public. There is an extensive set of quality control software that puts your data through the ringer, assigns your data a quality rating and makes suggestions before the data is taken into the system.
The CWOP was originally set up by amateur radio operators experimenting with packet radio, but now contains a majority of Internet-only connected stations. As of July 2015, more than 10,000 stations worldwide report regularly to the CWOP network.
Step 1: Signing Up For CWOP
Signing up for CWOP is fairly simple.
1) Follow the directions to get your DW designation number on http://wxqa.com/SIGN-UP.html
2) Set up the values in the configuration file in WeatherPi
3) Get your station up and running with the software given in the next steps of this Instructable.
Here are a set of handy links for CWOP checking, display and other information:
CWOP Links: http://www.wxqa.com
Check out your station: http://www.findu.com/cgi-bin/wxpage.cgi?call=EW766…
(replace EW7667 with your DW designation number)
CWOP Quality of Data Links: http://www.wxqa.com/aprswxnetqc.html
What is known about your station: http://weather.gladstonefamily.net/cgi-bin/wxsite….
Step 2: What is the Solar Powered WeatherPi?
Recently, SwitchDoc Labs produced a complete instructable to build a solar powered Raspberry Pi Weather Station. That instructable is here at WeatherPi.
WeatherPi is a solar powered Raspberry Pi WiFi connected weather station designed for Makers by SwitchDoc Labs. This is a great system to build and tinker with. All of it is modifiable and all source code is included. The most important functions are:
- Senses 20 different environmental values
- Completely Solar Powered
- Has a full database containing history of the environment (MySQL)
- Monitors and reports lots of data on the solar powered system – great for education!
- Self contained and monitored for brownouts and power issues
- Can be modified remotely
- Download your data to crunch it on your PC
- Can be modified to do SMS (Text) messaging, Twitters, webpages and more
- Has an iPad Based Control Panel
- Easy to connect to Twitter, WeatherUnderground, etc
This Instructable will show you how to build a WiFi Solar Powered Raspberry Pi Weather Station. This project grew out of a number of other projects, including the massive Project Curacao, a solar powered environmental monitoring system deployed on the Caribbean tropical island of Curacao. Project Curacao was written up in an extensive set of articles in MagPi magazine (starting in Issue 18 and continuing through Issue 22).
The WeatherPi Solar Powered Weather Station is an excellent education project. There are many aspects of this project that can be looked at and analyzed for educational purposes:
Step 3: The CWOP Interface to WeatherPi
When you talk to the CWOP server, you use a protocol called APRS (Automatic Packet Reporting System).
APRS was originally an amateur radio-based system for real time communications of information of immediate value in the local area. Now it is used in a number of applications where data packets need to be disseminated to multiple locations.
The software that I am using in this project is based on the excellent work of Tom Hayward and his pywxtd project . We have removed the weather station parsing code and the daemon code and are just using the APRS libraries to send the data to CWOP.
Step 4: CWOP Code in the WeatherPi Software
The CWOP software reads data from the WeatherPi station and sends an APRS packet to the CWOP servers with our current weather data.
First is the post_CWOP code used to send the packet to the CWOP servers:
We install the CWOP code in the main WeatherPi loop to fire every 15 minutes.
# every 15 minutes, build new graphs if ((secondCount % (15*60)) == 0): # print every 900 seconds sampleWeather() sampleSunAirPlus() doAllGraphs.doAllGraphs() # send our CWOP data # wind direction - degrees from true north # wind speed - integer MPH # wind gust - integer MPH # temperature - degrees F # rain since midnight - hundredths of inches # humidity - % where 100% = 00 # pressure - 5 numbers in tenths of millibars CWOP.post_CWOP(wind_dir=currentWindDirection, wind_speed=currentWindSpeed, wind_gust=currentWindGust, temperature=CtoFInteger(outsideTemperature), rain_since_midnight=0, humidity=convertHumidity(outsideHumidity), pressure=int(bmp180SeaLevel*100+0.5))
For more detail: Join the IOT with your Weather Station – CWOP