A simple client which turns LaMetric into Netamo display. This client polls Netatmo API and shows the weather data on LaMetric display.
Go to the LaMetric Developper site signin with your credentials (or signup for an account if you haven't done so already). Now create your new private app with with the following six frames:
- frame Name for Outdoor temperature value
- frame Sparkline frame for Outdoor temperature graph
- frame Name for Outdoor humidity value
- frame Name for Pressure trend (icon) and value
- frame Name for Sunrise time
- frame Name for Sunset time
Note: The text and icon on the each frame are optional. They will be overriden by the script anyway.
Now make a note of both app_id
and access_token
as per screenshot above and put them into your config.ini
within the [lametric]
part. Make sure to set the Application type to push. Publish your app as a private app.
Go to the Netatmo Developer Site again signin with your credentials (or signup for an account if you haven't done so already).
Create a Netatmo app. Leave both Redirect URI and Webhook URI empty.
Now make a note of client_id
and client_secret
. The username
which is your emaill and password
are your Netatmo login credentials. Put all four settings into your config.ini
within the [netatmo]
part. Make sure to enable the app.
Once you have created both LaMetric and Netatmo apps you can use updateLaMetric.py
to let them talk to each other. As described above the credentials are stored in config.ini
file in the same directory as the script itself.
# Netatmo authentication
[netatmo]
client_id = ...
client_secret = ...
username = ...
password = ...
# LaMetric authentication
[lametric]
access_token = ...
app_id = ...
Executing the updateLaMetric.py
script should give you immediate feedback on how successful you are with the apps setup process and credentials. Once everything is OK the easiest way to keep the LaMetric display updated is via cron task:
*/10 * * * * /home/lametric/updateLaMetric.py
Enjoy!