¿ªÔÆÌåÓý

ctrl + shift + ? for shortcuts
© 2025 Groups.io

Re: No Gridsquare in Conky but cgps gives me good information.


 

Thought I would jump in and assist here. It's the next line of code following:

*/5 * * * * sudo /usr/bin/autohotspotN >/dev/null 2>&1


Peter, WA1PB


On Fri, Aug 13, 2021, 10:42 AM John Weiser <john.c.weiser@...> wrote:
Where in the following do I add those two lines? After the end ees server? Somewhere else? Just want to make sure I am adding it to the right place




On Fri, Aug 13, 2021 at 9:29 AM km4ack <jason.oleham@...> wrote:
Your grid file appears to be fine but you are missing an entry from your crontab. To edit the crontab, run:
crontab -e
if it asks you to choose and editor, choose "nano easiest"
Now paste the following two line at the bottom of the file:

#Update GPS maidenhead for conky
*/1 * * * * /home/pi/bin/conky/grid

It is HIGHLY recommend that you use copy/paste. If you must enter manually, every character including spaces is CRITICAL. After adding the two lines above press
ctrl+s (to save)
ctrl+x (to exit)

Now a quick explanation:
The crontab entry runs the /home/pi/bin/conky/grid script every minute. The grid script captures the grid from the GPS and writes it to a file in RAM. Conky then reads the file from RAM and displays the grid on the desktop. Because the file that contains the grid is held in RAM, it gets erased with every reboot. As such, you will continue to see "NO GPS" in Conky until the GPS has a lock and the scripts have a few minutes after the lock to be run in the background when you boot the Pi.

--
73, de KM4ACK
|
|

Join [email protected] to automatically receive all group messages.