Une interface simple sous Node-Red avec alerte par mail
1-Import des flows (src/RTE.json & src/mail.json)
2-Configuration des nodes RTE & Mail
- RTE : récuperer la key-64
- Token
- url: https://digital.iservices.rte-france.com/token/oauth/
- method: POST
- headers:
- Authorization: Basic key-64 obtenu sur le site RTE"
- Content-Type: application/x-www-form-urlencoded
- Request
- url: https://digital.iservices.rte-france.com/open_api/ecowatt/v4/signals
- method: GET
- headers:
- Authorization: Basic "access_token"
- Content-Type: application/x-www-form-urlencoded
- Mail :
3-Définir les crontab
2 fois par jour -> 0 15 14,2 * * *