Skip to content

dhulihan/adafruit-io

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A cli tool for adafruit.io written in go.

Setup

go get github.com/dhulihan/adafruit-io

Provide your adafruit.io API key

adafruit-go requires your secret AIO key.

You can provide it by using the --key flag

adafruit-io --key 'MY_KEY' [...]

adafruit-io also looks for this key in the environment variable $AIO_KEY

AIO_KEY='MY_KEY' adafruit-io [...]

To set it permanently, add this to ~/.bashrc|.zshrc

export AIO_KEY='MY_KEY'

Usage

Get all feeds

adafruit-io feeds
# Foo
# Bar
# ...

Get latest value of a feed

adafruit-io get foo
# 98.6

Send a value to a feed (returns OK [val] if request is successful)

adafruit-io send foo 98.7
# OK 98.7 	

Options

  • -d - Debug mode
  • -v - Version
  • -k [API_KEY] - Specify API key. The envvar $AIO_KEY is tried before this.

About

adafruit.io cli tool written in go

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published