adafruit-io-node icon indicating copy to clipboard operation
adafruit-io-node copied to clipboard

How to send data to Adafruit.io?

Open rjcorwin opened this issue 9 years ago • 3 comments

Hi Todd. I didn't realize this library was a CLI until jwcooper pointed it out here. I had been building my own CLI just for sending data.

I'm attempting to create new data but not seeing any in the abc feed that I created. Am I doing this correctly?

$ echo '42' | adafruit-io client data create abc
? data.value (optional): 42
? data.lat (optional):
$ echo '42' | adafruit-io client data send abc
? data.value (optional): 42
? data.lat (optional):

I configured doing ...

$ adafruit-io client config --username rjsteinert --key xxxxxxxxxxxxxxxx

rjcorwin avatar Dec 18 '15 20:12 rjcorwin

@rjsteinert try this:

$ adafruit-io client feeds write abc

toddtreece avatar Dec 18 '15 20:12 toddtreece

Hi Todd - Thanks for the reply. I tried this twice...

echo 42 | adafruit-io client feeds write abc

This is what I see on the other end. screen shot 2015-12-19 at 10 29 03 am

And then doing this, things get even more strange...

screen shot 2015-12-19 at 10 33 40 am

screen shot 2015-12-19 at 10 32 34 am

Then I tried a new feed efg (that does not yet exist). screen shot 2015-12-19 at 10 36 42 am

And I see I now have two efg feeds with the data spread out between the two.

screen shot 2015-12-19 at 10 37 36 am

screen shot 2015-12-19 at 10 38 19 am

screen shot 2015-12-19 at 10 38 44 am

rjcorwin avatar Dec 19 '15 15:12 rjcorwin

Creating a new hij feed via the UI first and then using the command looks like it works as expected.

screen shot 2015-12-19 at 10 41 12 am

screen shot 2015-12-19 at 10 40 32 am

rjcorwin avatar Dec 19 '15 15:12 rjcorwin