Domoticz - How to generate authentication token for Netatmo weather station | GOLINE
Goline Logo

FAQ

News

  • Route RPKI validation April 1st, 2022
    RPKI is a security framework by which network owners can validate and secure the critical route updates or Border Gateway Protocol (BGP) announcements between public Internet networks. BGP is essentially the central nervous system of the Internet and one of its fundamental building blocks. The main function of BGP is to facilitate efficient routing between Autonomous Systems (AS), by building and maintaining the Internet routing table. The Internet routing table is effectively the navigation system of the Internet and without it, traffic would be unable to flow between its constituent networks. Unfortunately, routing equipment alone cannot distinguish between legitimate and malicious routing announcements,...
  • RIPE – Atlas Anchor February 17th, 2022
    We have become an even more integral part of the RIPE Atlas project by hosting an anchor, a device that allows for latency analysis of traffic between autonomous systems.https://atlas.ripe.net/probes/7073/RIPE Atlas anchors play an integral role in the RIPE Atlas network by acting both as enhanced RIPE Atlas probes with more measurement capacity, as well as regional measurement targets within the greater RIPE Atlas network. Anchors are able to perform many more measurements than a regular RIPE Atlas probe, and the large amount of data they collect is made available to everyone. In addition, anchors act as powerful targets that can...
  • MANRS June 20th, 2020
    GOLINE firmly believes in initiatives to protect networks, improve security and resilience of the global routing system. Therefore we decided to support the MANRS project and join as participants.Mutually Agreed Norms for Routing Security (MANRS) is a global initiative, supported by the Internet Society, that provides crucial fixes to reduce the most common routing threats. MANRS offers specific actions via four programs for Network Operators, Internet Exchange Points, CDN and Cloud Providers, and Equipment Vendors. Requirements for Participation Please read the full MANRS Actions document before applying. You can become a participant if you meet these requirements: You (or your company) support...

Domoticz – How to generate authentication token for Netatmo weather station

Potoms Omar Vademecum 18 December 2023

Preamble:

1 -
The following tutorial fix the authentication issue of Domoticz to authenticate Netatmo's devices.
Below, you can see how the errors appears in the logs:

2023-12-16 12:54:18.497 Error: Netatmo di : No Access granted, check username/password


*** Procedure ***

1 - Required Domoticz version 2023.2 (Build 15731) or above

2 - Log on to the website https://dev.netatmo.com/ and authenticate with the same credentials as your My.Netatmo account

3 - Click, in the upper right corner, "My apps"

4 - Press "Create", button and fill in the required fields.
(App name, Description and Data protection officer name and Data protection officer mail)

5 - Accept the terms and conditions and click on Save

6 - Enter in the "redirect URI" field, the value –> http://localhost/netatmo
Copy in a Notepad the values inside Client_ID and Client_secret, they will be required later.
Press the Save button.

7 - Open Domoticz web portal and select "Hardware" under "Settings" menù

8 - Select "Netatmo Weather Station" who has the authentication problems.
Type inside "Username" textbox the following string:

Client_ID:Client_secret

N.B.:
There is a Semicoloum ( : ) between Client_ID and Client_secret

9 - The passowrd, is a token that must be generated via Netatmo's API.
Open a browser page and put the followind URL, replacing <Client_ID> with the previously saved value.

https://api.netatmo.com/oauth2/authorize?client_id=<CLIENT_ID>&redirect_uri=http%3A%2F%2Flocalhost%2Fnetatmo&state=teststate&scope=read_station%20read_thermostat%20write_thermostat%20read_homecoach%20read_smokedetector%20read_presence%20read_camera

10- Accept and provide permission on the page that will opened

11 - A blank page will open.
You have to copy in the URL bar, what appears after after "Code="

12 - Enter the value you have just copied, in the "Password" field on Domoticz web portal


N.B.:

1 - Steps 10, 11 and 12, must be performed quickly (within about 30 seconds), otherwise the token will be unusable.
2 - In case the authentication issue appears again, it's enough regenerate a new token following steps 9, 10 and 11 and not the whole procedure.

5 1 vote
Article Rating
Subscribe
Notify of
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x