Black Lives Matter - Action and Equality. ... Adafruit joins the Stop Hate for Profit campaign.
0

Making a Command Line Interface for Adafruit.io
Moderators: adafruit_support_bill, adafruit

Forum rules
If you're posting code, please make sure your code does not include your Adafruit IO Active Key or WiFi network credentials.
Please be positive and constructive with your questions and comments.

Making a Command Line Interface for Adafruit.io

by rjsteinert on Thu Dec 17, 2015 10:32 pm

I have a lot of other commands that pull data from devices. I would like to be able to Unix pipe that data to a command that pushes the data to the Adafruit.io. For example:

Code: Select all | TOGGLE FULL SIZE
pull-from-sensor | adafruit --feed XYZ --aio-key ABC


So I created a simple CLI that does that :)

https://github.com/openpipekit/opk-cli--adafruit-io

As a next step, I would like that if the pull command returns a bunch of sensors in JSON, that it creates feeds on Adafruit.io, puts them in a group, and then starts piping the data over. Is anyone else interested in this as well?

rjsteinert
 
Posts: 6
Joined: Mon Nov 12, 2012 11:27 am

Re: Making a Command Line Interface for Adafruit.io

by jwcooper on Thu Dec 17, 2015 11:07 pm

This is cool, more clients the merrier!

We also have an open source command line client written in node.js as well: https://github.com/adafruit/adafruit-io-node#client

jwcooper
 
Posts: 677
Joined: Tue May 01, 2012 9:08 pm

Re: Making a Command Line Interface for Adafruit.io

by rjsteinert on Fri Dec 18, 2015 10:53 am

Thanks for the tip! I thought that library was just a Node library, didn't realize it was a CLI.

rjsteinert
 
Posts: 6
Joined: Mon Nov 12, 2012 11:27 am

Please be positive and constructive with your questions and comments.