Cannot display the map and mapdata correctly
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Aaron
el 4 de Dic. de 2024
Comentada: Vinod
el 23 de Dic. de 2024
Dear Sir or Madam,
I am testing to use widget to display map and the plotted values.according to the example. But it always shows the big map (see upper picture) instead of showing the more detailed location map picture (see lower picture). Are the 'location' and 'Location', 'Timestamps' are the build-in variables? I put my fields names 'LatitudeX', 'LongitudeY' as in the setting. Please advise how to do and fix it. Many thanks.

0 comentarios
Respuesta aceptada
Christopher Stapels
el 4 de Dic. de 2024
Locations are not automatically filled in. If your device writes data to the fields Latitude and Longitude then they will exist
Like this
https://api.thingspeak.com/update.json?api_key=<write_api_key>&field1=123&lat=43.10&long=71.2
Then then you read the channel data and set location =1 (or true), you get the position data in the response.
mydata=thingSpeakRead(876466,'location',1,'outputformat','timetable')
If you are writing the sensor data to your channel in fields called LattitudeY and LongitudeY you can get the data from those variables for plotting.
mydata=thingSpeakRead(yourChannel,'outputformat','timetable')
(psuedodata)
timeStamps sensordata1 sensordata2 LatitudeX LongitudeY
12:23 1.2 2.3 43.1 77.9
Can you share the link to the example you are refering to?
6 comentarios
Vinod
el 23 de Dic. de 2024
https://api.thingspeak.com/update?api_key=<YOUR_WRITE_API_KEY>&field1=abc
https://api.thingspeak.com/channels/<YOUR_CHANNEL_ID>/feeds.json?results=1&api_key=<CHANNEL_READ_API_KEY>
Note that if you insert non-numeric values into the fields, you will need to use MATLAB to generate the output visualization. Built-in field charts only work on numeric values.
Más respuestas (0)
Comunidades de usuarios
Más respuestas en ThingSpeak Community
Ver también
Categorías
Más información sobre Geographic Plots en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!