03-29-2022, 08:18 PM
(03-27-2022, 03:09 PM)fdlamotte Wrote: mepo is really great ! Thanks !
love the scriptability, here is a quick and dirty one to center map on the position given by pp gps you just have to name it mepo_something.sh and place it in your path and it will be automagically available from the main menu ;)
#!/bin/bash
DISPLAYNAME=" Relocate : gpspipe 5s"
gpspipe -w -x 5 | grep TPV | tail -n 1 | jq '"\(.lat) \(.lon)"' | sed "s/\"/center_on_coords /" | sed s/\"/\;/
Nice ! You found the undocumented but implemented and already usable feature for userscripts :D
And for centering map based on GPS we'll have something like this OOTB in mepo 0.5 - but that's an excellent hack in the meantime.