netatmo
is a tiny CLI based on the cobra
framework written in go-lang. Its mostly just for fun, but the purpose is retrieving and displaying data in the command line from netatmo weather api.
netatmo
has several subcommands which can be used to get different data from your Netatmo Weather Station. There is still some work remaining to get all commands working.
$ netatmo temp -o, --outdoor | -i , --indoor
$ netatmo noise
$ netatmo co2
$ netatmo humidity
$ netatmo firmware
$ netatmo wifi
$ netatmo lastupgrade
$ netatmo pressure
- You need to have your own Netatmo Weather Station in order to use this CLI
- Sign up at netatmo and create an app to get
clientId
andclientSecret
in order to retrieve data from your Netatmo Weateher Station through the API.
- Make sure go is installed
- Clone this repo
- install dependencies and build:
$ go install && go build
- create a config file called
$HOME/.netatmo.yaml
with this content:
netatmo:
clientID: YOUR_CLIENT_ID
clientSecret: YOUR_CLIENT_SECRET
username: YOUR_NETATMO_USERNAME
password: YOUR_NETATMO_PASSWORD
- If everything is correct you should be able to run:
$ netatmo
Uses the Netatmo Weatherstation API to get your indoor/outdoor
temperature, co2 level, nois level, humidity, firmware data, wifi signal strength,
and more
Usage:
netatmo [flags]
netatmo [command]
Examples:
netatmo temp --indoor
Available Commands:
co2 read co2 data from netatmo station
firmware read firmware data from netatmo station
help Help about any command
humidity read humidity data from netatmo station
noise read noise data from netatmo station
temp read temperature data from netatmo station
wifi read wifi data from netatmo station
pressure read pressure data from netatmo station
Flags:
--config string config file (default is $HOME/.netatmo.yaml)
-d, --debug debug logging
-h, --help help for netatmo
Use "netatmo [command] --help" for more information about a command.