Can't set custom location

Hi, I’m trying to use setCustomLocation from Node SDK, but I’m getting “Request error: Internal Server Error”. Is this functionality supported on openBalena? I would like to use it to store the location of my devices and show them on a map. For this particular application, I can’t use balenaCloud because there’s no internet access on the devices, it has to be everything on-premise.

Thanks in advance!

Hi @gmerciel,
At the moment open balena doesn’t not have support for device location & custom locations and that’s the reason that the SDK methods are failing.
As a workaround, you can use device tags for associating this extra information with the device.

I would also like to let you know that balena also offers on-premise installations for no-internet-access use cases like the one you described.
Would you be interested having one of our solution engineers to reach you about that?

Kind regards,
Thodoris

Thanks a lot Thodoris. Using device tags as a workaround sounds like a good idea.

About the on-premise offer, it would be great if I could have more information. I could also explain with more details the use case.

Thanks again!

Hi again @gmerciel,
I will give a note to one of our solution engineers and they will reach you about that on your forums email.

Kind regards,
Thodoris

Hi, @thgreasi . I want to use device location feature. Even though you said that open balena dosen’t support it. Can you give some suggestion to help me get that?

Hi @xavierchan, you’d need to retrieve the device location somehow and maintain that information. At balena we use device’s IP address to perform Geocoding and persist the location in the balenaCloud database. Each time the device reports a new IP address, we make a new Geocoding query to retrieve the new coordinates. You could look into building something similar. Then as Thodoris suggested here, you might store the location data as device tags.

Alternatively, you could add GPS tracker hardware to your device to track the location. We have an example project illustrating this scenario here: https://github.com/balena-io-playground/gps-tracker

Also we are tracking the feature request here: https://github.com/balena-io/open-balena-api/issues/258
Feel free to express your interest there and subscribe to notifications.

Let us know how you end up building this.
Cheers…