Black Lives Matter - Action and Equality. ... Adafruit is open and shipping.
0

Increment Trigger
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.

Increment Trigger

by customuser on Tue Apr 05, 2016 7:37 pm

I'd like to be able to use a momentary button feed to increment a gauge feed. An example use would be setting the target temperature that could then be polled from the gauge feed.

Screen Shot 2016-04-05 at 7.35.52 PM.png
Screen Shot 2016-04-05 at 7.35.52 PM.png (27.33 KiB) Viewed 258 times


The current trigger system only allows a feed to set a specific value. (AFAIK)

customuser
 
Posts: 2
Joined: Wed Jul 08, 2015 7:32 am

Re: Increment Trigger

by jwcooper on Wed Apr 06, 2016 5:11 pm

I like this idea. We can add it as an option when creating the momentary button. For now, you'd need to use the text block, and manually enter the value, or use a slider. We're in the middle of revamping our UI, so this may take a bit of time to get to.

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

Re: Increment Trigger

by customuser on Thu Apr 07, 2016 11:08 am

While we're on the subject, AND, and OR would be helpful.
If block one is greater than x AND block two is less than y, do z.

customuser
 
Posts: 2
Joined: Wed Jul 08, 2015 7:32 am

Re: Increment Trigger

by Mr_Paul on Thu Apr 07, 2016 2:41 pm

On the flip side, you could probably do these things with very very few lines of python (just subscribe to the buttons and publish to the gauge), though it would have to be running all the time, and might be slightly laggy (though IO seems very snappy)

What you really want IO to support is lamda, ala AWS, where you could upload a chunk of code triggered by anything....that would be cool, and easier then hosting your own version (which is basically what I am suggesting).

Mr_Paul
 
Posts: 24
Joined: Mon Dec 10, 2012 11:58 am

Please be positive and constructive with your questions and comments.