Thursday: Light Cloud
Friday: Thick Cloud
Using a prebuilt image
To assist those who do not want to following the instructions in the tutorial, I have created a Raspberry Pi image, based on the 2016-02-09-raspbian-jessie-lite image and pywws version pywws 15.12.0.
The image can be downloaded from HERE . The image is 1.3Gb in size so may take some time
The image has been built on a Raspberry Pi Model B revison 2.0 and a 4gb SD card, with a direct ethernet connection and tested on a Raspberry Pi2. I would recommend using an 8gb card for additional storage capacity.
The weather.ini file is setup for a Maplin USB weather station, but could be easily edited for other supported stations
Download the zipped image from the google drive link above"
Unzip the image and use the instructions at http://elinux.org/RPi_Easy_SD_Card_Setup#Easy_way to install the downloaded image to your Raspberry Pi
Boot the Raspberry Pi from the SD card with the weather station attached.
Login using the default user pi with password raspberry
Run 'sudo raspi-config' to configure the Raspberry Pi setting the correct date and time, plus expand the image to fill the SD card.
The Raspberry Pi should boot normally. There is a crontab that runs the Hourly python script every 10 mins.
The first time Hourly.py is run it could take some time to download all the data from the Weather Station so leave it alone for a while.
Each time the script is run the output is written to a log file /home/pi/weather.log. Check this to see if everthing is running correctly using the command more /home/pi/weather.log
Use the space bar to move to the next screen of output.
The default setup is designed to download and process the weather station data every 10 mins. It will then collect summary data and publish it locally to the directory /home/pi/webdata
The published data contains examples of text, xml and graph images that would normally be used on your web site.
All this is controlled by editing the pywws configuration file /home/pi/weather/data/weather.ini
To edit it use the file editor nano. 'nano /home/pi/weather/data/weather.ini'
In order to upload the data to your own web site, edit the ftp section of the weather.ini file, remembering to change local site = False
When making changes I would suggest only making small ones, then checking the logfile more /home/pi/weather.log for errors.
Or to see just the last 50 line type tail -n 50 /home/pi/weather.log
The image is setup with the libraries required to tweet if required
The image is designed to help those with little experience of the Raspberry Pi connect it to a weather station.
It still requires some configuration and will require a website to publish the information, unless you want the Raspberry Pi to act as the web server.
I use www.freevirtualserver.com which supports php.