Skip to content

Latest commit

 

History

History
30 lines (18 loc) · 1.71 KB

README.md

File metadata and controls

30 lines (18 loc) · 1.71 KB

NetatmoSIAQM for Scriptable

Not affiliated with Netatmo in any way.

https://github.com/fredrikdev/NetatmoSIAQM

Scriptable Widget for the Netatmo Smart Indoor Air Quality Monitor (usually interfaced with by the iOS app Netatmo Home Coach) using the Netatmo Aircare API.

Screenshots

Screenshot1

Screenshot2

Screenshot3

Setup

  1. Login to your Netatmo Account at https://dev.netatmo.com/, and create a new app: https://dev.netatmo.com/apps/createanapp (yes, unfortunately you'll need to do this, but it's pretty swift)
  2. Fill in the mandatory fields, save, and continue by setting the Redirect URI field to "https://noop". Save again, and take note of the Client Id (aaa) and Client Secret (bbb) fields.
  3. Using your browser, construct and browse to the URL: https://api.netatmo.com/oauth2/authorize?client_id=aaa&scope=read_homecoach&redirect_uri=https://noop
  4. ...After authenticating with Netatmo, you'll be redirected to a non-existing URL (e.g. https://noop/?code=ccc). Copy the value (ccc) from the &code= parameter.
  5. Create a new script in the iOS Scriptable app add a name, color, glyph, and paste this script.
  6. Edit the script below and set the 'params' variable with your own Client Id, Client Secret and value from the &code= parameter.
  7. On your home screen, add the new Scriptable Widget as a (medium sized preferred) widget with the script.

Credits

Provided for free, MIT, as-is, by fredrikdev 2022. Inspired by https://github.com/olf/scriptable-netatmo-widget