Code Monkey home page Code Monkey logo

pimatic-netatmo's Introduction

Pimatic Netatmo plugin

For this plugin to work you need to register an application with netatmo. This only takes a few seconds on the netatmo developer page with your normal netatmo account.

https://dev.netatmo.com/dev/createapp

Just provide a Name and a Description and accept the "terms of use" and click create. You will be immediately presented with the needed credentials.

Example config.json entries:

  "plugins": [
    {
      "plugin": "netatmo",
      "client_id": "1293484deadbeef1112344de",
      "client_secret": "SoM3f4NcyS3crE7fR0mN3t4Tm0",
      "username": "[email protected]",
      "password": "TheMostSecurePasswordInTheWorld42"
    }
  ],

  "devices": [
    {
      "id": "netatmo-test",
      "name": "My Netatmo Base",
      "class": "NetatmoBase",
      "device_id": "XX:XX:XX:XX:XX:XX",
      "interval": 60
    },
    {
      "id": "netatmo-otdoor",
      "name": "My Netatmo Outdoor",
      "class": "NetatmoOutdoorModule",
      "device_id": "XX:XX:XX:XX:XX:XX",
      "module_id": "XX:XX:XX:XX:XX:XX",
      "interval": 60
    }
    ,
    {
      "id": "netatmo-wind",
      "name": "My Netatmo Wind Gauge",
      "class": "NetatmoWindGauge",
      "device_id": "XX:XX:XX:XX:XX:XX",
      "module_id": "XX:XX:XX:XX:XX:XX",
      "interval": 60
    }
    ,
    {
      "id": "netatmo-rain",
      "name": "My Netatmo Rain Sensor",
      "class": "NetatmoRainSensor",
      "device_id": "XX:XX:XX:XX:XX:XX",
      "module_id": "XX:XX:XX:XX:XX:XX",
      "interval": 60
    }
  ]

I also added support for NetatmoIndoorModule, NetatmoRainSensor and NetatmoWindGauge but as I don't have the hardware this is completely untested. Feel free to donate hardware.

pimatic-netatmo's People

Contributors

mwittig avatar sweebee avatar thexperiments avatar

Watchers

 avatar  avatar

Forkers

mwittig

pimatic-netatmo's Issues

Netatmo Welcome

Hi, is it planned, to add a netatmo welcome module? I just saw, it can be accessed via the created app.

Update Github Project Description

It would be nice if you can update the github project description, too. Currently, no description has been set. Simply use the description text used in package descriptor.

404 on get data for modules

Hi,

This is my config:

plugins:

{ "plugin": "netatmo", "client_id": "x", "client_secret": "x", "username": "x", "password": "x" },

Devices:

{ "id": "netatmo-base", "name": "Netatmo Basisstation", "class": "NetatmoBase", "device_id": "70:ee:50:13:31:b2", "interval": 60 }, { "id": "netatmo-outdoor", "name": "Netatmo Buitenmodule", "class": "NetatmoOutdoorModule", "device_id": "02:00:00:12:e8:2e", "module_id": "02:00:00:12:e8:2e", "interval": 60 }, { "id": "netatmo-rain", "name": "Netatmo Regenmeter", "class": "NetatmoRainSensor", "device_id": "05:00:00:01:7d:e8", "module_id": "05:00:00:01:7d:e8", "interval": 60 },

Getting data from the main station works, but others give the following error:

warn [pimatic-netatmo]: Netatmo API warning: getMeasure error: Status code404

Is there a bug or did I configure it wrongly?

remove code duplicates

to make the plugin more maintainable you should try to remove the duplicate code in NetatmoBase and NetatmoIndoorModule. These devices could extend from NetatmoOutdoorModule, because all have the attributes temperature and humidity.

Add template to devices

all device implementation in pimatic should define a "template" variable. This way the device is clearly recognizable. Look at devices.coffee from pimatic for examples.

Netatmo plugin stopped working

Hi, the netatmo plugin stopped working suddenly. It plots following error "Netatmo API error: Authenticate error: unauthorized_client"

Please note that I haven't changed account nor API keys. Just to try, I refreshed the API keys and updated pimatic plugin but it won't work either.

I think they have changed something in the API, as the webpage https://dev.netatmo.com/dev/createapp is not working anymore (they changed the location to https://dev.netatmo.com/apps/createanapp

error [pimatic-netatmo]: Can't connect to netatmo API, retry in 30s

I'm having problems to connect to netatmo. What I did:

  • installed the same client id with client secret on two Raspis (my mistake), since than it wasn't possible to connect to netatmo API.
  • I created for my second Raspi a new client id - it doesn't help, my first installation (without any changes) doesn't work anymore (tried restarting pimatic and raspi)
  • checked the app status on dev.netatmo.com - both apps shows Ban status No and status: OK

Any help? Is there a way to get more detailed Infos why connection to netatmo API isn't possible. Had a look on the debug logfile (with pimatic debug enabled) - but didn't find more Infos.

Status code502

Get Warning Messages with Status code502. Why?

Log: warn [pimatic-netatmo]: Netatmo API warning: getMeasure error: Status code502

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.