Skip to content
A simple client which turns LaMetric into Netamo display. This client calls Netatmo API and updates LaMetric display.
Python
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
library Added for source SunriseSunsetCalculator Nov 11, 2016
screenshots Add files via upload Oct 10, 2016
.gitignore initial commit Dec 18, 2015
README.md Update README.md Oct 10, 2016
config.ini Bug fixes and enhancements mostly Sep 3, 2016
updateLaMetric.py Use full path to correctly load config.ini Sep 24, 2016

README.md

LaMetric app for Netatmo Weather Station

A simple client which turns LaMetric into Netamo display. This client polls Netatmo API and shows the weather data on LaMetric display.

screencast

LaMetric Setup

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:

screencast

  1. frame Name for Outdoor temperature value
  2. frame Sparkline frame for Outdoor temperature graph
  3. frame Name for Outdoor humidity value
  4. frame Name for Pressure trend (icon) and value
  5. frame Name for Sunrise time
  6. frame Name for Sunset time

Note: The text and icon on the each frame are optional. They will be overriden by the script anyway.

screencast

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.

Netatmo Setup

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.

screencast

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.

The Script

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!

You can’t perform that action at this time.