#Meteorshowers
###What is it? A weather app powered by the Meteor framework! You can try the app here: http://meteorshowers.meteor.com/
###What's under the hood?
- the Meteor framework
- jquery
- jquery ui
- Q.js promises
- Bootstrap 3
- Iron Router
- Animate.CSS
- Climacons by Adam Whitcroft
- and a bunch of API's...
###API's
-
Nominatim
Description: Gets object of all available lat. and long. for specified search
Use: Used in conjunction with jquery autocomplete widget to supply users with available addresses -
Google Reverse Geocoding (Address Lookup)
Description: Gets object of available addresses based on a given lat.,long.
Use: Find closest match based on lat. and long. to be displayed -
Google Maps
Description: Gets image from google maps from supplied lat. and long. coordinates -
Forecast.io
Description: Gets latest weather data from supllied lat. and long. coordinates
###Collections
- Current
Description: Most current weather data given a certain lat. and long.
Example:
Current.insert({
cityStateZip: cityStateZip,
lat: lat,
lon: lon,
temperature: MS.Round(obj.temperature),
apparentTemperature: MS.Round(obj.apparentTemperature),
humidity: obj.humidity,
windspeed: obj.windSpeed,
visibility: obj.visibility,
icon: obj.icon,
summary: obj.summary,
precipProbability: obj.precipProbability,
map: MS.GetMap(lat,lon)
});
- Future
Description: Most current weather prediction data for the proceeding four days
Example:
Future.insert({ //refactor to .update instead of .insert
day: MS.GetCurrentDay(dailyArr[i].time),
icon: dailyArr[i].icon,
temperatureMin: MS.Round(dailyArr[i].temperatureMin),
temperatureMax: MS.Round(dailyArr[i].temperatureMax),
apparentTemperatureMin: MS.Round(dailyArr[i].apparentTemperatureMin),
apparentTemperatureMax: MS.Round(dailyArr[i].apparentTemperatureMax),
summary: dailyArr[i].summary,
precipProbability: dailyArr[i].precipProbability,
});
###What's next?
- Implement HUE API
There's currently a working HUE API commented out. Thinking about using Fitbit or some other sensor to turn lights on and off based on sleeping patterns as well as convey weather based on colors.
##Thanks for stopping by!