November 18, 2019
In the list of Condition for Lamp Widget there are the following options:
- is greater than
- is greater than or equal to
- is less than
- is less than or equal to
- is equal to
- is not equal to
Is it possible to set a "Between" condition (or alternatively, use a boolean logic) for ThingSpeak lamp widget? (For example, to turn a green lamp on if the temperature is between 1°C ~ 22°C)
March 7, 2017
I recommend using a MATLAB visualization or analysis. Under apps, make a new MATLAB visualization. Then read the channel with bob= thingSpeakRead, and create the conditional you want on the data. Then output a circle with the lamp color you want. Finally, add the visualization to your channel view.
if and( bob>1,bob<20)
Another way you could do it is to create a MATLAB analysis that writes a boolean value to another channel based on the output of the conditional. Then have the widget read the boolean value to decide its color.
FYI, MATLAB answers is now the preferred location for ThingSpeak Community support.
Most Users Ever Online: 166
Currently Browsing this Page:
Guest Posters: 1
Newest Members:briskpanda, Dejw0089, Yassine Ben Salah, anis, 43994554AKS, suda
Moderators: cstapels: 460
Administrators: Hans: 405, lee: 457