How to create an editable map on thingspeak?

6 visualizaciones (últimos 30 días)
Mostafa Ibrahim
Mostafa Ibrahim el 3 de Jun. de 2020
Comentada: Edgar Baal el 9 de Ag. de 2021
Hey, so I made an app on app designer that reads and writes data to a thingspeak channel. So what I want to do is make a filed on my thingspeak channel that is going to be a map, I want to upload my latitude and logitude data to that map and plot the points. I have been looking for a long time and all I can find was the channel location, but I don't want that, I want to plot multiple points when I click the upload button on my app designer. Any idea on how to do that?
  2 comentarios
Mostafa Ibrahim
Mostafa Ibrahim el 3 de Jun. de 2020
Okay, so I was able to make the map and to plot it I first uploaded latitude and longitude to a filed in my channel and then made a matlab Visualizations that reads the latitude and longitude from those fields then plots the map. My problem now is that it doesn't automatically update, I have to go in manually and lick save and run for it to plot it, is there anyway for it to auto update?
this is my code,
readChannelID = channelId;
fieldID1 = 2;
fieldID2 = 3;
readAPIKey = 'APiKey';
%% Read Data %%
% Read first data variable
[data1, time1] = thingSpeakRead(readChannelID, 'Field', fieldID1, 'NumPoints', 30, 'ReadKey', readAPIKey);
% Read second data variable
[data2, time2] = thingSpeakRead(readChannelID, 'Field', fieldID2, 'NumPoints', 30, 'ReadKey', readAPIKey);
gx = geoaxes;
geoplot(gx,data1,data2,'-*');
geobasemap(gx,'streets');
Edgar Baal
Edgar Baal el 9 de Ag. de 2021
Can you explain me how i work with this code? I also uploaded my Longitude an Latitude to ThingSpeak but now i dont know how to proceed. I dont know how to implement the map in my ThingSpeak channel and i also dont know how what i should do with the code you provided for us.
I am very thankful for every kind of assistance

Iniciar sesión para comentar.

Respuesta aceptada

Vinod
Vinod el 3 de Jun. de 2020
If you have a paid license of ThingSpeak, you can enable the "Auto Update" checkbox on the MATLAB visualization that will cause the visualization to be automatically updated up to once every 5 minutes.
If you don't have a paid license, you will need to manually refresh your browser page every 5 minutes (or less frequently) to have the map updated.

Más respuestas (1)

Alx Grm
Alx Grm el 29 de Mzo. de 2021
Hello i would like to make something similar to what you did but can you please explain how you made the matlab visualization and where to use that code?
Thank you.

Comunidades de usuarios

Más respuestas en  ThingSpeak Community

Categorías

Más información sobre Visualize Data en Help Center y File Exchange.

Etiquetas

Productos

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by