Skip to content

A Cloudflare Worker to access the Netatmo API and output the information of the "Favorite" devices.

Notifications You must be signed in to change notification settings

LekoArts/netatmo-cloudflare-worker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

netatmo-cloudflare-worker

A Cloudflare Worker to access the Netatmo API and output the information of the "Favorite" devices.

Setup

  1. Create an account: https://auth.netatmo.com/en-gb/access/login
  2. Create an app: https://dev.netatmo.com/apps/createanapp#form
  3. Copy client_id and client_secret to env vars
  4. Go to https://weathermap.netatmo.com/ and mark stations as your "Favorite"

Using

Locally you have two options:

  1. Run npm run cli
  2. Run npm run wrangler (You have to have wrangler globally installed and your Cloudflare worker setup. You'll also need to change wrangler.toml)

Required Env Vars

  • USERNAME
  • PASSWORD
  • CLIENT_ID
  • CLIENT_SECRET

About

A Cloudflare Worker to access the Netatmo API and output the information of the "Favorite" devices.

Topics

Resources

Stars

Watchers

Forks