17
[email protected] James Smith, Development Manager

Technical introduction to AMEE

  • Upload
    amee

  • View
    2.103

  • Download
    0

Embed Size (px)

DESCRIPTION

http://www.amee.com An introduction to the AMEE platform, and how to use it to embed environmental intelligence in your applications.

Citation preview

Page 1: Technical introduction to AMEE

[email protected]

James Smith, Development Manager

Page 2: Technical introduction to AMEE

Web-based API for aggregation of energy &

activity data, withCarbon models

Page 3: Technical introduction to AMEE

Act On CO2

Carbonetworks

Misys OpenCarbonWorld

“Powered By AMEE” means you are working with authoritative models

Applications

Page 4: Technical introduction to AMEE

RESTful HTTP APIXML, JSON and Atom

ProfilesStore your energy data and history

DataIndustry standard models,applied to calculate carbon result

API Details

Data Profiles

AuthoritativeModels Your Data

CO2 Result

PUT

GET

Page 5: Technical introduction to AMEE

Sign up for a free API key:http://my.amee.com/signup

Staging platformhttp://stage.amee.comFree access for development & testing

Live platformhttp://live.amee.comProduction platform

Getting Started

Release using live.amee.com

Develop using stage.amee.com

Sign Up

FREE

Page 6: Technical introduction to AMEE

All API requests require authentication

HTTP BasicUsername/password sent with each request

Authentication SessionsOne-time loginGet back and authToken and send with subsequent requestsTokens expire after two hours, or half an hour of inactivity

Authentication

Page 7: Technical introduction to AMEE

Store your data in AMEE profilesCreate as many profiles as you like, and choose what they represent

No personal data stored in AMEEProfiles are identified only by random UID string

Storing Data

POST /profilesAccept: application/xmlContent-Type: application/x-www-form-urlencodedSet-Cookie: authToken: <authtoken>profile=true

Page 8: Technical introduction to AMEE

Category Hierarchy in each profileSimilar to a folder structure

Top LevelHome,Business,Transport,etc.

Profile ItemsContained within categoriesStore your data

Profile Categories

Page 9: Technical introduction to AMEE

Fetching Profile Categories

Page 10: Technical introduction to AMEE

POST /profiles/7C7D68C2A7CD/home/energy/quantity Accept: application/xmlContent-Type: application/x-www-form-urlencodedSet-Cookie: authToken: <authtoken>dataItemUid=66056991EE23&energyConsumption=1000

Creating Profile Items

HTTP/1.1 201 CREATEDLocation: https://stage.amee.com/profiles/7C7D68C2A...

Page 11: Technical introduction to AMEE

ISO 8601 times/durations

startDate / endDate2009-08-13T09:22Z

durationP23DT23H

Item namesDistinguish separate series ofsame item in same category

Profile History

Series1 Series1 Series1

Series2 Series2

TIME

Page 12: Technical introduction to AMEE

Category hierarchyas for profilescontains data items

Items store science datae.g. CO2 emission factors

Data items have unique UIDsbut...

The Data API

Page 13: Technical introduction to AMEE

Drilldowns

Data Item UIDs CAN CHANGEThey change between platformsDo not hardcode UIDs in your app – it WILL break when you go live

Item names DO NOT CHANGEUse drilldown resource to convert item names into UIDs

GET /data/home/energy/quantity/drill?type=gasAccept: application/xmlSet-Cookie: authToken: <authtoken>

Page 14: Technical introduction to AMEE

Data Documentation

AMEE Data Wiki: http://wiki.amee.com

Contains detailed documentation on all elements in AMEEIncluding calculations and sources

Helps you discover and choose which data to use

Page 15: Technical introduction to AMEE

API Documentation (my.amee.com/developers)

Page 16: Technical introduction to AMEE

Browser Interface

Page 17: Technical introduction to AMEE

www.amee.com/signup

[email protected]