Giter Club home page Giter Club logo

mqtt4netatmo's Introduction

mqtt4netatmo

npm License GitHub Workflow Status Coverage Status npm

Publish values from Netatmo Wethear & Homecoach to MQTT

Prerequisites

You need to have a Netatmo weather station and/or an homecoach device AND a netatmo developper account to access the API.

Installing

Simply install the package over npm. This will install all the required dependencies.

npm install -g mqtt4netatmo

Usage

Usage: mqtt4netatmo [options]

Options:
  -a, --username      Netatmo Dev username                            [required]
  -b, --password      Netatmo Dev password                            [required]
  -c, --clientId      Netatmo app Client ID                           [required]
  -d, --clientSecret  Netatmo app Client Secret                       [required]
  -u, --mqttUrl       mqtt broker url              [default: "mqtt://127.0.0.1"]
  -t, --mqttTopic     mqtt topic prefix                     [default: "netatmo"]
  -v, --logVerbosity  possible values: "error", "warn", "info", "debug" [default: "info"]
  -s, --sslVerify     allow ssl connections with invalid certs
  -z, --noColor       log with no color
      --version       Show version number                              [boolean]
  -h, --help          Show help                                        [boolean]

Example

mqtt4netatmo -a [email protected] -b UserPwd -c 10acb39bc818e5789 -d 10dsfxyzbkzva

MQTT Frame Output

Weather Station

[netatmo/70:00:00:00:00:00] {
  temperature: 21.6,
  temptrend: 'up',
  pressure: 1013,
  pressureabs: 956.7,
  pressuretrend: 'stable',
  mintemp: 21.4,
  mintemputc: 1686883090,
  maxtemp: 22.9,
  maxtemputc: 1686866460,
  humidity: 51,
  co2: 588,
  noise: 32,
  id: '70:00:00:00:00:00',
  name: 'Home (Indoor)',
  type: 'NAMain',
  home: 'Home',
  online: 1,
  timeutc: 1672119606,
  wifistatus: 39
}

Wheather Outdoor Module

[netatmo/01:00:00:00:00:00] {
  temperature: 15.5,
  temptrend: 'up',
  mintemp: 18.5,
  mintemputc: 1671883057,
  maxtemp: 21.1,
  maxtemputc: 1671866446,
  humidity: 83,
  id: '01:00:00:00:00:00',
  name: 'Outdoor',
  type: 'NAModule1',
  home: 'Home',
  online: 1,
  rfstatus: 66,
  timeutc: 1672119606,
  battery: 75
}

Wheather Wind Module

[netatmo/02:00:00:00:00:00] {
  windstrength: 2,
  windangle: 75,
  guststrength: 3,
  gustangle: 75,
  windstrenghtmax: 20,
  windanglemax: 45,
  windmaxutc: 1672119306
  id: '02:00:00:00:00:00',
  name: 'Wind',
  type: 'NAModule2',
  home: 'Home',
  online: 1,
  rfstatus: 31,
  timeutc: 1672119606,
  battery: 58
}

Wheather Rain Module

[netatmo/03:00:00:00:00:00] {
  rain: 0,
  sumrain1: 0,
  sumrain24: 0,
  id: '03:00:00:00:00:00',
  name: 'Rain',
  type: 'NAModule3',
  home: 'Home',
  online: 1,
  rfstatus: 31,
  timeutc: 1672119606,
  battery: 58
}

Wheather Indoor Module

[netatmo/04:00:00:00:00:00] {
  temperature: 19.1,
  temptrend: 'stable',
  mintemp: 18.5,
  mintemputc: 1671883057,
  maxtemp: 21.1,
  maxtemputc: 1671866446,
  humidity: 57,
  co2: 544,
  id: '04:00:00:00:00:00',
  name: 'Upstairs',
  type: 'NAModule4',
  home: 'Home',
  online: 1,
  rfstatus: 69,
  timeutc: 1672119606,
  battery: 51
}

HomeCoach

[netatmo/70:00:00:00:00:00] {
  co2: 967,
  healthidx: 1,
  humidity: 41,
  id: '70:00:00:00:00:00',
  module: 'string',
  name: 'Bedroom',
  noise: 42,
  online: 1,
  pressure: 45,
  pressureabs: 1022.9,
  timeutc: 1672119606,
  temperature: 23.7,
  mintemp: 18.5,
  mintemputc: 1671883057,
  maxtemp: 21.1,
  maxtemputc: 1671866446,
  type: 'NHC',
  wifistatus: 22
}

Versioning

mqtt4apcaccess is maintained under the semantic versioning guidelines.

See the releases on this repository for changelog.

License

This project is licensed under MIT License - see the LICENSE file for details

mqtt4netatmo's People

Contributors

wocha-fr avatar

Watchers

 avatar

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.