Coder Social home page Coder Social logo

mariusbreivik / netatmo Goto Github PK

View Code? Open in Web Editor NEW
3.0 2.0 3.0 331 KB

A tiny CLI written in go-lang used to retrieve data from Netatmo Weather API. The CLI is based on the cobra framework

License: Apache License 2.0

Go 94.91% Shell 5.09%
golang go gopher netatmo netatmo-api netatmo-weather-station cli command-line shell cobra

netatmo's Introduction

netatmo


๐Ÿ“– describe()

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.


๐Ÿง‘โ€๐Ÿ’ป use()

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.

๐ŸŒก temp

$ netatmo temp -o, --outdoor | -i , --indoor

๐ŸŽง noise

$ netatmo noise

๐ŸŒซ co2

$ netatmo co2

๐Ÿ’ฆ humidity

$ netatmo humidity

โš™๏ธ firmware

$ netatmo firmware

๐Ÿ“ถ wifi

$ netatmo wifi

๐Ÿ• lastupgrade

$ netatmo lastupgrade

๐Ÿ“ˆ pressure

$ netatmo pressure

๐Ÿ“œ develop()

  • 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 and clientSecret in order to retrieve data from your Netatmo Weateher Station through the API.

๐Ÿ’พ install()

  • Make sure go is installed
  • Clone this repo
  • install dependencies and build:
$ go install && go build
  • create 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 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.

netatmo's People

Contributors

dependabot[bot] avatar mariusbreivik avatar mortenberg80 avatar skrashevich avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  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.