Locationd snap configuration using gadget

Hi Experts,
I am trying to access locationd.monitor command on Dell edge 3002 gateway which comes with Ubuntu Core OS.The command is returning 0 values to me.I think I need to do the configuration for the locationd snap to make it work.As per the documentation this configuration needs to be done through Gadget SNAP https://docs.ubuntu.com/core/en/stacks/location/location-service/docs/configure-from-gadget
I am not aware where is the gadget snap installed on the gateway and how can I access it.The gadget documentation is looking little confusing to me and I can understand how can I use it to do the configuration.
Please if anyone can guide me on the same.

Also I am writing a python script on the gateway which needs access to GPS tracking data.I plan to use locationd snap somehow in my code to get the data.My own snap would be created from the python code which would need GPS data in its execution.It would be great if someone in the community can guide me on the same.

Thanks for the help in advance.

The gadget is created prior to building an image, if you have a preinstalled system you probably just want to use snap set/get to set the options (i dont know much about locationd though) instead of building your own gadget and/or image…

1 Like

@deloitte, as @ogra said you can simply use set/get. For your reference:

https://docs.ubuntu.com/core/en/stacks/location/location-service/docs/reference/configuration

1 Like

Hi Thank you for the reply, but even after doing all the necessary configurations for locationd snap on Dell gateway 3002 it is still it is not working for me.I get the below response only on executing locationd.monitor:
Enabled position/heading/velocity updates…
0.00000 0.00000 n/a n/a n/a 0.00000 0.00000

Any idea what I might be the issue,