* Overview

These instructions are far from complete, but this folder contains everything needed to re-build my weather station.

* Files:

getyahooweather.js - Pulls current weather conditions and forecast from Yahoo. Run on the server.
getyahooweatherconfig.json - Configuration file for gathering Yahoo weather.  Update parameters for your environment.

public (a folder) - the files supporting the web page

README.TXT - this file

serialreceiver.sh - Finds APC220 wireless module device name and launches serialwebclient.js with correct device name.  I recommend launching on boot by placing this in /etc/rc.local as follows: sudo -u username -i nohup /fullpath/serialreceiver.sh &
serialwebclient.js - Listens for updates from weather station, sends updates to server
serialwebclientconfig.json - Configuration file for client.  Update parameters for your environment.

weatherserver.js - The server application.  Provides web services, serves web page.
weatherserverconfig.json - Configuration file for server.  Update parameters for your environment.

weatherstationschema.sql - Schema for MySQL Database

WiringDiagram.jpg - Wiring Diagram for building Arduino weather station

WeatherStation2.ino - Arduino code for gathering sensor data and sending it to the PC client

* Requirements:

** Web Page:
Bootstrap framework (included) from http://getbootstrap.com/
Chart.js module (included) from http://www.chartjs.org/
Weather Icons (included) from https://github.com/erikflowers/weather-icons

** DB
MySQL database

** Node
NodeJS from https://nodejs.org/

** Node modules
request
fs
mysql
serialport
express
body-parser

* Hardware
Arduino (I started with an Arduino clone - http://www.dx.com/p/81877 , and then just build my own bare board following these instructions - http://www.instructables.com/id/The-RRRRRRRRRRBA-or-What-They-Dont-Teach-You-in-/?ALLSTEPS)
DHT22 temperature/humidity sensor - http://www.dx.com/p/138531
APC220 wireless module - http://www.dx.com/p/arduino-apc220-wireless-rf-modules-w-antennas-usb-converter-143011
BMP180 barometric pressure sensor - http://www.dx.com/p/294251
Soil Moisture Sensor - http://www.dx.com/p/keyes-soil-moisture-content-sensor-for-arduino-products-silver-red-225594
