"Between" condition for ThingSpeak lamp visualization? | ThingSpeak API | Forum


Please consider registering

sp_LogInOut Log In sp_Registration Register

10   +   4   =  

Register | Lost password?
Advanced Search

— Forum Scope —

— Match —

— Forum Options —

Minimum search word length is 3 characters - maximum search word length is 84 characters

sp_Feed sp_TopicIcon
"Between" condition for ThingSpeak lamp visualization?
No permission to create posts
November 18, 2019
5:06 pm
New Member
Forum Posts: 1
Member Since:
November 18, 2019
sp_UserOfflineSmall Offline

Hi -

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)

November 20, 2019
9:20 am

Forum Posts: 861
Member Since:
March 7, 2017
sp_UserOfflineSmall Offline

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.

Forum Timezone: America/New_York

Most Users Ever Online: 166

Currently Online:
21 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

rw950431: 272

Vinod: 240

piajola: 95

turgo: 70

vespapierre: 63

Adarsh_Murthy: 62

Member Stats:

Guest Posters: 1

Members: 8665

Moderators: 1

Admins: 2

Forum Stats:

Groups: 3

Forums: 14

Topics: 1600

Posts: 5760

Newest Members:

briskpanda, Dejw0089, Yassine Ben Salah, anis, 43994554AKS, suda

Moderators: cstapels: 460

Administrators: Hans: 405, lee: 457