Data only numbers? | ThingSpeak API | Forum

The ThingSpeak community site has been upgraded to a new site. This site is currently in read-only mode. You can ask questions or post and read discussions on the new site.
Avatar

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
Data only numbers?
No permission to create posts
December 17, 2020
5:51 am
Avatar
giulio
New Member
Members
Forum Posts: 4
Member Since:
February 13, 2018
sp_UserOfflineSmall Offline

Good morning. Please tell me if thingspeak can receive, then represent only numerical data or also text? Let me explain: I am preparing a program with bme280 which, based on the variations in atmospheric pressure, should foresee text values: tendency to good weather, bad .... Can these textual values ​​be presented? Thanks!

December 24, 2020
9:52 am
Avatar
cstapels
Moderator
Members


Moderators
Forum Posts: 885
Member Since:
March 7, 2017
sp_UserOfflineSmall Offline

FYI, MATLAB answers is the preferred location for ThingSpeak Community support.
And a new community is coming, look for it on MATLAB central soon!

Yes ThingSpeak receives all data as strings, numbers are interpreted from strings.
When you read data with thingSpeakRead, be sure to use 'outputformat','table', or 'outputformat','timetable',

To diplsay the values, you can use uitable, as explained in This post
Here is a snippet:

myT = thingSpeakRead(1417,'outputformat','table','numminutes',200);
array1 = myT.CheerLightsHEXColor
array2 = myT.LastCheerLightsCommand;
uitable('Data',[array1 array2])

uitable isn't perfect, but it works. I came up with a different solution once but I cant seem to find it.

December 24, 2020
10:22 am
Avatar
cstapels
Moderator
Members


Moderators
Forum Posts: 885
Member Since:
March 7, 2017
sp_UserOfflineSmall Offline

Here is the other example I was looking for. scroll to the bottom to see another way to print tables in figures.
https://www.mathworks.com/matlabcentral/answers/254690-how-can-i-display-a-matlab-table-in-a-figure

Forum Timezone: America/New_York

Most Users Ever Online: 166

Currently Online:
18 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:

kusmumichael, petersmith99, Rambant, blakeharriss09, optisol, Niyonzima Fils

Moderators: cstapels: 460

Administrators: Hans: 405, lee: 457