npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

mqtt4netatmo

v1.0.4

Published

Publish values from Netatmo Wethear & Homecoach to MQTT

Downloads

8

Readme

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