aj0strow / carbonmap

Carbon Savings Energy Map
0 stars 0 forks source link

Carbon Map

Carb up, bro.

@aj0strow, @subsumo

Environment

The application expects the following keys defined.

MONGOLAB_URL
TEMPODB_KEY
TEMPODB_SECRET

Scraping

There are a few anomalies.

To combat inconsist primary keys, the server always uses the dash-delimited abbreviated lowercase address.

// Good
'374-earl-st'

// Bad
'374 EARL ST'
'373-Johnson-Street'
'10-aberdeen-street'

Schema

buildings

_id (bson id)
id (string)
name (string)
images
  small (string : url)
  large (string : url)
description (string)
location
  latitude (float)
  longitude (float)
  country (string)
  countryCode (string)
  city (string)
  zipcode (string)
  streetName (string)
  streetNumber (string)
  state (string)
  stateCode (string)
accountIds (array : string)

dailysums

Node that peak, midpeak, and offpeak are in kWh.

_id (bson id)
accountIds (array : string)
date (string : YYYY-MM-DD)
peak (float)
midpeak (float)
offpeak (float)