A beginner level sample application to monitor weather. The application reports Temperature, Humidity, Altitude, Dew Point, Luminosity and Sound Level and uses BMP085. DHT22, TSL2561 and a low cost Sound Sensor. The application publishes events in every 1 minute.
###Wiring###
- TSL2561 Vcc to 3.3V
- TSL2561 GND to GND
- TSL2561 SCL to D1
- TSL2561 SDA to D0
- BMP085 Vcc to 3.3V
- BMP085 GND to GND
- BMP085 SCL to D1
- BMP085 SDA to D0
- DHT22 Vcc to 3.3V
- DHT22 GND to GND
- DHT22 Signal to D4
- Sound Sensor Vcc to 3.3V
- Sound Sensor GND to GND
- Sound Sensor Signal to A0
###How to run the application### Load the sample application into the Spark Core. Open the weathermon.html, enter Core ID, Access Token, Event Name and press Subscribe to Events button.
There are two separate modules in this sample, Spark Core application and HTML page to view the published events. The Spark Core application publishes events in the form sensor name=sensor value|unit. The HTML page uses JavaScript to parse the event data and display values from the sensor. The HTML page first asks Core ID and Access Token and uses this to subscribe to the events.
Screenshots