##Introduction This is my own personal variation of Michael Teeuw's Magic Mirror.
It contains three main functions:
- Displays date and time using Moment JS.
- Fetches weather using Dark Sky's API.
- Gets San Francisco's bus departures close to home using San Francisco Municipal Transportation Agency's API.
##Configuration All configuration is hard-coded for now, in the future, information such as Dark Sky and Muni's API keys will be added here as well as city, time locale, etc.
###main.js File initializes date, weather and muni files and sets interval for each function.
###Time Gets current time and calls moment js to format date and time.
###Transportation Calls php file which fetches muni information which was originally xml instead of json. Gets all the buses that pass through bus stop and joins them by bus number. NOTE: Three buses are now hardcoded into not showing up since I do not use those bus stops.