Results for
I can't get my dynamic position data to display.My JASON body looks like this:
{ "api_key": "XXXXXXXXXXXXXXX", "created_at": "2023-05-15T23:17:54.000Z", "field1": 50.71875, "field2": 20.375, "field3": 4.1132812, "field4": 91.625, "field5": 1523985, "lat": -25.8152875, "long": 152.58867187500002, "status": "Bauple" }
Fields 1-4 display fine, as does the Status field. However the position map always shows a balloon at (0,0). I've tried "lat" and "latitude", "long" and "longitude", but no luck. Any ideas?
This is weird to me.
I have an IP address., I am connected to the MQTT server.
I see the number of entries increasing in my channel. However, no data visible in the graph.
This is the AT command to the SIM7080 module : AT+SMPUB="channels/**********/publish",37,1,1
And then I send the payload : field1=1&field2=2&field3=3&field4=400
As said, each time a send a request I see the number of entries increasing, but no real data.
The export shows me this :
created_at,entry_id,field1,field2,field3,field4
2023-05-15 17:33:40 UTC,1,,,,
2023-05-15 17:34:59 UTC,2,,,,
2023-05-15 17:36:16 UTC,3,,,,
2023-05-15 17:37:31 UTC,4,,,,
2023-05-15 17:38:48 UTC,5,,,,
Any idea why the content of the field is empty?
Thanks
I have a channel where I upload measurements from a BME280 sensor, but on the Pi Pico I calculate the min/avg/max temperature every 10 minutes.
I never have created a visualisation from scratch before. Usually, I can continue from a working example, but I know nothing (yet) about the mathlab language...
Can someone show me how to create a diagram of my temperatures, were the average temp is a (thick) solid line, and the min/max temperatures are a filled out area above and below?
Is it possible to change the color (Background and the Meter itself) of the Gauge Widget ?

The Widget Edit Menu will only offers Colors for the range Indicators, but not for the Gauge itself.
The background in black would be ideal.
I have created a mqtt device in thingspeak, allocated a channel for pub and sub. I noted down the credentials for connection when the device was created. I tried to connect using the host mqtt3.thingspeak.com port 1883 and the supplied credentials(user name and password). I tried with node red (mqtt node) and also mqtt lense but still cannot connect. Would appreciate advice some advise. Thanks
Up until yesterday (May 6, 2023), time controls were working fine in regards to running my Analysis code recurring at specified intervals. Now they will no run more than once? I’ve tried creating new time controls but no luck. I have to manually run the code to get updated results.
How can I display a string value using thingspeak visualization ? for example name, gender, bloodgroup,etc.
Hello - I have a new account and when I click My Channels, I don't get a drop down menu with choices like My Channels, My Image Channels, ect. I only get Public Channels when I click the Channels tab. I can't select My Channels. Could someone please help me?
Thank you
We need to do IoT work for our university project. I want to open a channel without any profit motive so that I can see the statistics. New Channel option does not appear.

After signing in pop up showing succesfully signed in ,but its getting signed out automatically
plz help me and comment if you are facing same problem
I try this code in MATLAB:
This code working fine:
readChannelID = [1788078];
fieldID1 = [1];
readAPIKey = '';
[data, time] = thingSpeakRead(readChannelID, 'Field', fieldID1, 'NumPoints', 30, 'ReadKey', readAPIKey);
plot(time, data);
This code have error : Unrecognized table variable name 'x1'.
readChannelID = [1788078];
fieldID1 = [2];
readAPIKey = '';
[data, time] = thingSpeakRead(readChannelID, 'Field', fieldID1, 'NumPoints', 30, 'ReadKey', readAPIKey);
plot(time, data);
What i do wrong? Thanks.
Hello,
I want to make a weather forecast for the next 3 days using the data I received from my sensors on the thingsspeak server I gave the link above, how can I do this?
I need to do it with mathlab code in Thingsspeak system but I am very new to Mathlab.
Thanks for your help.
Bill
I have used this code but nothing is showing in my channel any suggesrtions please- the internet connects and the temperature output shows but nothing in my channel
#include <OneWire.h>
#include <DallasTemperature.h>
#include <WiFiNINA.h>
// Data wire is plugged into port 2 on the Arduino
#define ONE_WIRE_BUS A0
// WiFi credentials
const char* ssid = "xxxxxxx";
const char* password = "xxxxxxxxx";
// ThingSpeak settings
const char* server = "api.thingspeak.com";
const char* apiKey = "xxxxxxxxxxxxxxxx";
const int httpPort = 80;
// Setup a oneWire instance to communicate with any OneWire devices (not just Maxim/Dallas temperature ICs)
OneWire oneWire(ONE_WIRE_BUS);
// Pass our oneWire reference to Dallas Temperature.
DallasTemperature sensors(&oneWire);
// create an instance of the WiFi class
WiFiClient client;
void setup(void)
{
// start serial port
Serial.begin(9600);
Serial.println("Dallas Temperature IC Control Library Demo");
// Connect to WiFi network
Serial.print("Connecting to WiFi...");
while (WiFi.status() != WL_CONNECTED) {
WiFi.begin(ssid, password);
delay(1000);
Serial.print(".");
}
Serial.println();
Serial.println("WiFi connected");
// Start up the library
sensors.begin();
}
void loop(void)
{
// call sensors.requestTemperatures() to issue a global temperature
// request to all devices on the bus
Serial.print("Requesting temperatures...");
sensors.requestTemperatures(); // Send the command to get temperatures
Serial.println("DONE");
Serial.println(",");
Serial.print("Temperature for the device 1 (index 0) is: ");
float tempC = sensors.getTempCByIndex(0);
Serial.println(tempC);
delay(1000); // update sensor reading each one second
// Send data to ThingSpeak
if (client.connect(server, httpPort)) {
String data = "&Field 1=" + String(tempC);
Serial.println("Connecting to ThingSpeak...");
client.println("POST /update HTTP/1.1");
client.println("Host: api.thingspeak.com");
client.println("Connection: close");
client.println("Content-Type: application/x-www-form-urlencoded");
client.println("Content-Length: " + String(data.length()));
client.println();
client.println(data);
client.println();
Serial.println("Data sent to ThingSpeak");
} else {
Serial.println("Error connecting to ThingSpeak");
}
client.stop();
delay(15000); // Send data to ThingSpeak every 15 seconds
}
I'm running the same code as a week ago but now it reports the error: MATLAB code has timed out.
Currently, I am on a test account with Thingspeak but it would be no problem to upgrade to a subscription plan if it provides the required features.
I would like to edit the time scale (currently only around 10h) and export time (currently only around 24h) for the graphs and the export function in the public channel.
How is this possible? It would be nice to have the option to plot 12h, 1d, 1w, 1m etc. in the graphs and also have the respective export function.
I have purchased an 8in1 weather station from Seed (see Link here), added it to TheThingsStack v3 and changed the payload formatter such that I receive following payload:
{
"barometric_pressure": 96920,
"battery": 0,
"humidity": 92,
"light_intensity": 11848,
"rain_gauge": 0,
"temperature": 6.8,
"uv_index": 0.6,
"wind_direction": 60,
"wind_speed": 0
}
I have followed the ThingSpeak manual here, which seems pretty straight forward to me: just add channel ID and Write Api Key.
However, on TheThingsStack, I see following error:
"data": {
"@type": "type.googleapis.com/ttn.lorawan.v3.ErrorDetails",
"namespace": "pkg/applicationserver/io/web",
"name": "request",
"message_format": "request",
"correlation_id": "XXXXprivate",
"code": 14,
"details": [
{
"@type": "type.googleapis.com/google.protobuf.Struct",
"value": {
"body": "error_too_many_requests",
"status_code": 429,
"url": "https://api.thingspeak.com/things_network/v3/update/",
"webhook_id": "loraweatherstation"
}
}
]
},
[...]
"visibility": {
"rights": [
"RIGHT_APPLICATION_TRAFFIC_READ"
]
TheThingSpeak reports entries without the actual data. I think the entries are generated with all get requests.
Hello,
can someone help me with HEV model? I have no experience with simulink modeling, maybe someone have any simple HEV models or any tutorials how to start everything? :)
Thank you.
Dear team,
i have issue regarding not shown values thingspeak
I am using simulink to generate a simple ADC sampling code. I configured ADC module in software mode, which updates the sampled value according to the sample time configured in the module. I set the sample time to 1e-4, 1e-5, 1e-6 respectively. But it seems that the sampling speed did not reach the value I set. I suspect it has something to do with the read and write operations, but I am not sure if that's the reason.
I also tried to do it using PWM event to trigger the start of conversion of ADC. Same problem happened. Because I connect a potentiometer and turn its knob slowly, the Graph on CCS is correct while when I turn it very quickly, the graph is not able to keep up with my movements. So the sampling rate is surely not enough. I wonder what I should do to successfully configure this model, thanks in advance!
