How to create an editable map on thingspeak?

조회 수: 4 (최근 30일)
Mostafa Ibrahim
Mostafa Ibrahim 2020년 6월 3일
댓글: Edgar Baal 2021년 8월 9일
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
Mostafa Ibrahim
Mostafa Ibrahim 2020년 6월 3일
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 2021년 8월 9일
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

댓글을 달려면 로그인하십시오.

채택된 답변

Vinod
Vinod 2020년 6월 3일
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.

추가 답변 (1개)

Alx Grm
Alx Grm 2021년 3월 29일
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.

커뮤니티

더 많은 답변 보기:  ThingSpeak 커뮤니티

카테고리

Help CenterFile Exchange에서 Visualize Data에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by