wso2con eu 2015: implementing an open api for smart thermostats with wso2′s api manager

25
Open API implementa.on for Quby’s Smart Thermostat Michiel Fokke IT Architect Quby

Upload: wso2

Post on 25-Jul-2015

159 views

Category:

Technology


1 download

TRANSCRIPT

Page 1: WSO2Con EU 2015: Implementing an Open API for Smart Thermostats with WSO2′s API Manager

 Open  API  implementa.on  for  Quby’s  

Smart  Thermostat  

Michiel  Fokke  IT  Architect  

Quby    

Page 2: WSO2Con EU 2015: Implementing an Open API for Smart Thermostats with WSO2′s API Manager

                                     smart  thermostat  

Page 3: WSO2Con EU 2015: Implementing an Open API for Smart Thermostats with WSO2′s API Manager

Smart  hub  integra.on  

Page 4: WSO2Con EU 2015: Implementing an Open API for Smart Thermostats with WSO2′s API Manager

Mobile  app  

Page 5: WSO2Con EU 2015: Implementing an Open API for Smart Thermostats with WSO2′s API Manager

Tablet  app  

Page 6: WSO2Con EU 2015: Implementing an Open API for Smart Thermostats with WSO2′s API Manager

Tablet  app  

Page 7: WSO2Con EU 2015: Implementing an Open API for Smart Thermostats with WSO2′s API Manager

Current  architecture  

Backend Applications

Access Layer

Asset Management Internet

Internet

Energy Displays

Mobile devices

VPN concentrator

Utility Backend

Mobile Backend

Selfcare Authenticatio

n Service

Page 8: WSO2Con EU 2015: Implementing an Open API for Smart Thermostats with WSO2′s API Manager

Current  Architecture  

•  Unmanaged  à  No  visibility  on  alterna.ve  use  of  API  

•  Proprietary  login  à  need  for  (encrypted)  storage  of  selfcare  password  on  device  

•  Undocumented  &  unsupported  API  

Page 9: WSO2Con EU 2015: Implementing an Open API for Smart Thermostats with WSO2′s API Manager

“Guerrilla”  innova.on  

Page 10: WSO2Con EU 2015: Implementing an Open API for Smart Thermostats with WSO2′s API Manager

Business  Objec.ves  

•  S.mulate  innova.on  by  offering  Open  API  •  Build  ecosystem  with  3rd  par.es  •  Enhance  control  on  access  •  Enhance  security  

Page 11: WSO2Con EU 2015: Implementing an Open API for Smart Thermostats with WSO2′s API Manager

Solu.on  Selec.on  Criteria  

•  Off  the  shelf  product  •  Support  for  OAUTH2  •  Developer  selfcare  •  Extensibility  •  Open  source  •  Affordable  support  •  Nice  to  have:  documenta.on  portal  

Page 12: WSO2Con EU 2015: Implementing an Open API for Smart Thermostats with WSO2′s API Manager

Solu.on  candidates  considered  

•  MuleSoV  •  WSO2  

•  Pro’s  for  WSO2:  •  Fully  Open  Source  •  Clear  pricing  model  for  support  and  

development  

Page 13: WSO2Con EU 2015: Implementing an Open API for Smart Thermostats with WSO2′s API Manager

Open  API  solu.on  design  

Backend Applications

Access Layer

Asset Management Internet

Internet

Energy Displays

Mobile devices

VPN concentrator

Utility Backend

WSO2 API Manager

Self care Authenticatio

n Service

Mobile Backend

Page 14: WSO2Con EU 2015: Implementing an Open API for Smart Thermostats with WSO2′s API Manager

Customiza.ons  

•  Custom  Authen.cator  Plugin  to  interface  with  proprietary  authen.ca.on  web  service  

•  User  claims  pass-­‐through  using  JWT  

Page 15: WSO2Con EU 2015: Implementing an Open API for Smart Thermostats with WSO2′s API Manager

Implementa.on  Experiences  

•  Stable  soVware  and  easy  to  deploy  •  Bundling  of  components  into  product  confusing  at  first  

•  Elaborate  documenta.on,  but  s.ll  insufficient  to  develop  plugin  successfully  (dev  support  solved  that)  

•   Solu.on  quite  complete,  but  lacks  portal  func.onality  to  withdraw  access  tokens  by  end-­‐users  

Page 16: WSO2Con EU 2015: Implementing an Open API for Smart Thermostats with WSO2′s API Manager

Pilot  Implementa.on  

Page 17: WSO2Con EU 2015: Implementing an Open API for Smart Thermostats with WSO2′s API Manager

Eneco  Toon  Hackathon  2015  

Page 18: WSO2Con EU 2015: Implementing an Open API for Smart Thermostats with WSO2′s API Manager

Eneco  Toon  Hackathon  2015  

60+  par.cipants  

14  working  apps  

Page 19: WSO2Con EU 2015: Implementing an Open API for Smart Thermostats with WSO2′s API Manager

Windows  Apps  

Page 20: WSO2Con EU 2015: Implementing an Open API for Smart Thermostats with WSO2′s API Manager

Windows  Apps  

DEMO

Page 21: WSO2Con EU 2015: Implementing an Open API for Smart Thermostats with WSO2′s API Manager

Apple  watch  app  

Page 22: WSO2Con EU 2015: Implementing an Open API for Smart Thermostats with WSO2′s API Manager

Winner:  Who  pays  Wae?  

Page 23: WSO2Con EU 2015: Implementing an Open API for Smart Thermostats with WSO2′s API Manager

Winner:  Who  pays  Wae?  

•  Cost  sharing  app  for  students  •  Using  smart  plug  usage  data  

heps://youtu.be/HjufeirKJiI  

Page 24: WSO2Con EU 2015: Implementing an Open API for Smart Thermostats with WSO2′s API Manager

Next  steps  

•  HA  Setup  for  produc.on  •  Migrate  own  apps  to  new  API  •  Start  using  API  manager  for  internal  API  usage  too  

Page 25: WSO2Con EU 2015: Implementing an Open API for Smart Thermostats with WSO2′s API Manager

Thank  You