MCPcopy Index your code
hub / github.com/CFenner/MMM-Netatmo

github.com/CFenner/MMM-Netatmo @v1.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release v1.0 ↗ · + Follow
71 symbols 238 edges 4 files 0 documented · 0%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

MagicMirror-Netatmo-Module

| MagicMirror Project on Github | Netatmo API |

A module to integrale informations from a Netatmo weather station into the MagicMirror.

Usage

Prerequisites

  • a Netatmo weather station at home or at least access to a Netatmo weather station account

To use this module, just include the netatmo-module folder into the modules folder of your MagicMirror and include a netatmo.init(); in the jQuery.ready function in the main.js. You also need to add some config entries to your config.js file. After that the content will be added to your mirror.

Access Your Data

To be able to access your data, you need to have an Netatmo Application and grant this application access to your data.

Register an App

Your can register a new app here. Afterwards you will get an APP_ID and an APP_SECRET which you will need to enter in the config entries.

Grant Access to Your Data

To allow the app to access your data, you need to send a POST request to the auth server and register the app.

You can send a POST request with Hurl.it(Git) to the Netatmo auth url: https://api.netatmo.com/oauth2/token

Also you need to provide the following data:

  • grant_type: password
  • client_id: [APP_ID]
  • client_secret: [APP_SECRET]
  • username: [USER_MAIL]
  • password: [USER_PASSWORD]
  • scope: read_station

The POST request will return the following data:

  • access_token: [ACCESS_TOKEN]
  • expires_in: 10800
  • refresh_token: [REFRESH_TOKEN]

The REFRESH_TOKEN will be needed in the config entries.

Configuration

To run the module properly, you need to add the following data to your config.js file.

netatmo: {
  client_id: 'APP_ID',
    client_secret: 'APP_SECRET',
    refresh_token: 'REFRESH_TOKEN',
    moduleOrder: [
        // specify a certain module order
    ],
    dataOrder: [
        // specify a certain data order
    ]
}

Core symbols most depended-on inside this repo

Shape

Function 71

Languages

TypeScript100%

Modules by API surface

netatmo-module/js/lib/q.min.js42 symbols
netatmo-module/js/lib/require.min.js29 symbols

For agents

$ claude mcp add MMM-Netatmo \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact