0

IDEAS: ADAFRUIT IO FEATURE SUGGESTIONS
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

IDEAS: ADAFRUIT IO FEATURE SUGGESTIONS

by brubell on Thu Aug 16, 2018 9:58 am

Post any suggestions for new Adafruit IO features you would like to see. Be as detailed as possible on how it would work, and a diagram would likely be informative for us/others as well. Features can range from the platform itself, to the libraries, to suggestions about hardware you'd like to see us produce.


note: this thread does not cover Block suggestions. If you'd like to suggest a new block, post up here: viewtopic.php?f=56&t=130408

brubell
 
Posts: 189
Joined: Fri Jul 17, 2015 10:33 pm

Re: IDEAS: ADAFRUIT IO FEATURE SUGGESTIONS

by flounder on Wed Aug 22, 2018 11:53 pm

A "pull" function with MQTT that would tell me the current "last" values on the server. When an IoT app comes up, it needs to know the state of the world as represented on the server.

I had created a "feed group" so I could keep different projects lumped together; I even added a member "query" in the hopes that if I changed "query", the contents of the entire feed group would be sent back, but no such luck.

I would like to be able to do things like
group->pull();
or
io->pull("feed");
The response would be to send the standard messages and my On-handlers would deal with it.

The goal is that The Cloud Holds The Truth and local devices need to be able to query The Truth at any point. Most importantly, when they start up. Note that "race conditions" where the value is being changed work out correctly; if the value has already changed, then the new value is sent; if the value hasn't yet changed, the old value is sent, followed immediately by the new value notification.
joe

flounder
 
Posts: 324
Joined: Wed Sep 18, 2013 9:10 pm
Location: Pittsburgh PA

Re: IDEAS: ADAFRUIT IO FEATURE SUGGESTIONS

by flounder on Thu Aug 23, 2018 1:45 am

In searching for undocumented library features, I found in AdafruitIO_feed.cpp a method called lastValue. This looks like a solution if I were using simple feeds. Could AdafruitIO_Group get a similar function? As far as I can tell, all it needs to do is iterate through the group feeds and put the group name in the right place.
joe

flounder
 
Posts: 324
Joined: Wed Sep 18, 2013 9:10 pm
Location: Pittsburgh PA

Re: IDEAS: ADAFRUIT IO FEATURE SUGGESTIONS

by abachman on Thu Aug 23, 2018 11:58 am

A "pull" function with MQTT that would tell me the current "last" values on the server. When an IoT app comes up, it needs to know the state of the world as represented on the server.


Assuming I'm understanding you correctly, we have that feature for feeds already via the get() method on Feed objects in the Adafruit_IO_Arduino library. It behaves pretty much exactly like you describe. If you subscribe to an MQTT feed topic, "username/feeds/something", publishing anything to "username/feeds/something/get" will force the most recent value for the feed to be sent to just that MQTT client. If you've set up an onMessage callback, it'll trigger your code in the same way as if your feed had a new value published.

At least, that seems to be what you're describing.

We're currently figuring out how to better document the MQTT API features since we also have some more in the pipeline. For now, feature announcements come via the blog, these forums, and [url]discord.gg/adafruit[/url].

The feature hasn't been deployed yet for groups, but should be in the next week or two.

lastValue uses the HTTP API, which is okay if you're comfortable polling for the last value, but doesn't play nicely with active MQTT connections.


- adam b.

abachman
 
Posts: 242
Joined: Mon Feb 01, 2010 12:48 pm

Re: IDEAS: ADAFRUIT IO FEATURE SUGGESTIONS

by brubell on Thu Aug 30, 2018 11:02 am

flounder wrote:In searching for undocumented library features, I found in AdafruitIO_feed.cpp a method called lastValue. This looks like a solution if I were using simple feeds. Could AdafruitIO_Group get a similar function? As far as I can tell, all it needs to do is iterate through the group feeds and put the group name in the right place.
joe


Hi Flounder,

Adam has added support in Adafruit IO for MQTT group /get. Thanks for inspiring this fix - if you find any issues with it, let us know!

Example: https://github.com/adafruit/Adafruit_IO ... _group_pub

Release: https://github.com/adafruit/Adafruit_IO ... tag/2.7.18

brubell
 
Posts: 189
Joined: Fri Jul 17, 2015 10:33 pm

Re: IDEAS: ADAFRUIT IO FEATURE SUGGESTIONS

by raviadafruit on Thu Sep 06, 2018 10:48 pm

HI, is there any way to white lable the Adafruit data feed and give it to my customers based on login criteria.
there are some websites doing that. and if we are a startup into IoT, who is in the stage of gathering customers, would love to use this feature.

Since, you guys have the platform ready, i guess it won't take much for you to modify and give white label access.
Some examples -
https://freeboard.io/

Thank you for listening (i mean, reading).

raviadafruit
 
Posts: 1
Joined: Thu Sep 06, 2018 10:39 pm

Re: IDEAS: ADAFRUIT IO FEATURE SUGGESTIONS

by abachman on Fri Sep 07, 2018 1:03 pm

hi raviadafruit,


If you're just hoping to share the data, you can build a tiny proxy server and republish it without giving away your API key. We don't have any restrictions on what you do with your data once you pull it off of IO.

Or are you asking specifically about public or semi-public white-labelled dashboards that you can share with your customers? It might help us understand if we knew more about your setup with respect to feeds and dashboards and how you're hoping to share Adafruit IO access with your users.

To be clear, IO wasn't designed with reselling in mind so you may find it requires more code on your end to provide fine-grained access to data. Moving from product prototype to commercial product may end up meaning moving to a platform built for that (AWS / Azure / Particle / etc.).

related: I checked out the freeboard.io site and they mentioned "Success Stories" for their white-labelled dashboards, but all the links were broken. Do you have an example page you know of?


- adam b.

abachman
 
Posts: 242
Joined: Mon Feb 01, 2010 12:48 pm

Re: IDEAS: ADAFRUIT IO FEATURE SUGGESTIONS

by jesper_rooth on Fri Oct 12, 2018 6:01 am

Suggesting a way to do adjustment of data before storing it in the feed. Just an offset (negative or positive) to can be configured on a feed-level. Use-case would be to do offset on thermometers e.g. as a calibration when this is not possible on the device side.

jesper_rooth
 
Posts: 7
Joined: Wed Dec 28, 2016 7:06 am

Re: IDEAS: ADAFRUIT IO FEATURE SUGGESTIONS

by jesper_rooth on Fri Oct 12, 2018 6:05 am

Another one - It would be a nice function to add a filter to the dashboards for getting smoother lines.
The feed data can be noisy but it would be nice with a smoother look at the dashboard when looking at the graphs.

Either median value that be configurable in digits or something else simple.

jesper_rooth
 
Posts: 7
Joined: Wed Dec 28, 2016 7:06 am

Re: IDEAS: ADAFRUIT IO FEATURE SUGGESTIONS

by anjith101 on Sun Oct 14, 2018 7:51 am

Hey..
Am trying to control a nodemcu(ESP8266) with Adafruit IO server,I need to control it with python code from my pc is there any tutorial that is on this topic...?

anjith101
 
Posts: 1
Joined: Sun Oct 14, 2018 7:45 am

Re: IDEAS: ADAFRUIT IO FEATURE SUGGESTIONS

by mattcarp on Thu Nov 08, 2018 8:59 pm

I'd like for triggers to be enhanced to allow you to add static parameters to the webhook request?

Specifically an "access_token" and value?

Also, I think I need to change the key "value" to "args" while we're at it...

I'm integrating a Particle X enon with the Adafruit IO system. The Xeno n can't talk MQTT or REST, but I'm able to move data from the X enon through a publishing webhook from Particle. Now I want to be able to call functions (issue commands) on the Particle device from Adafruit's Trigger webhook.

Particle's Webhook has this type of extensibility. I've attached a screen cap.
Attachments
Screen Shot 2018-11-08 at 7.56.23 PM.png
Example Particle Webhook integration
Screen Shot 2018-11-08 at 7.56.23 PM.png (192.43 KiB) Viewed 108 times

mattcarp
 
Posts: 22
Joined: Sun Jul 10, 2011 7:40 pm

Please be positive and constructive with your questions and comments.