https://github.com/lekoarts/netatmo-cloudflare-worker
A Cloudflare Worker to access the Netatmo API and output the information of the "Favorite" devices.
https://github.com/lekoarts/netatmo-cloudflare-worker
cloudflare cloudflare-workers netatmo netatmo-api
Last synced: 11 months ago
JSON representation
A Cloudflare Worker to access the Netatmo API and output the information of the "Favorite" devices.
- Host: GitHub
- URL: https://github.com/lekoarts/netatmo-cloudflare-worker
- Owner: LekoArts
- Created: 2022-08-11T19:00:19.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-08-12T19:51:49.000Z (over 3 years ago)
- Last Synced: 2025-02-02T19:36:33.520Z (about 1 year ago)
- Topics: cloudflare, cloudflare-workers, netatmo, netatmo-api
- Language: TypeScript
- Homepage:
- Size: 3.91 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# netatmo-cloudflare-worker
A Cloudflare Worker to access the [Netatmo](https://www.netatmo.com/) API and output the information of the "Favorite" devices.
## Setup
1. Create an account: https://auth.netatmo.com/en-gb/access/login
1. Create an app: https://dev.netatmo.com/apps/createanapp#form
1. Copy `client_id` and `client_secret` to env vars
1. Go to https://weathermap.netatmo.com/ and mark stations as your "Favorite"
## Using
Locally you have two options:
1. Run `npm run cli`
1. 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`