Hello,
I’m using Blynk to monitor multiple fixed devices, and on the web dashboard, there’s a map widget in the top right corner, as shown in the attached image.
I’d like to use it to indicate the location of each device. Since my devices are stationary, I obtained their latitude and longitude coordinates from Google Maps and am sending them via the GPS datastream.
Blynk.virtualWrite(V6, -27.120722, -49.533417); // Send to V6 (map)
However, I’m unable to update the location displayed on the map widget. Can anyone help me identify what might be going wrong or guide me on how to properly update the map location? I’m using the latest version of Blynk.
Thanks for the help!
You need to create locations in the web console then allocate the devices to one of those locations.
Pete.
Thanks, Pete! I created the the locations, but I couldn’t allocate my devices to them. I only found a field to add users. Can you help me with this?
Hmm, that’s a very good question!
I have devices linked to locations, but can’t see how to do that now.
Also, I might have steered you in the wrong direction, as I was thinking of this map in the device view, not a dashboard widget…
In the template view, have you set-up a metadata item called Location, and looked at advanced settings?
Pete.
Pete,
I was referring to this map in the upper right corner. I thought I could use it to indicate the location of the device.
In the template, I configured it like this
Your screenshot shows the template datastream settings.
My question was about metadata settings.
Pete.
I have this setting in the metadata:

I was talking about a metadata item called Location, not Coordinates.
Pete.
Excellent! Well done on figuring it out, sorry I wasn’t more help.
Pete.
Your help was essential to help me. I hadn’t found anything in the blynk tutorials.
1 Like