I am not sure what I have:) sorry. Below is what I think you are asking for. You can email me at john.c.weiser@... if I am not understanding what you are asking. Sorry, I am new to the pi
toggle quoted message
Show quoted text
On Wed, Aug 11, 2021 at 10:52 AM icrewuh60s < kj7wpn@...> wrote: Hi John, just curious - do you have
#Update GPS maidenhead for conky */1 * * * * /home/pi/bin/conky/grid
in your crontab?
Also, what does the /home/pi/bin/conky/grid file look like?
On Wed, Aug 11, 2021 at 02:55 PM, km4ack wrote:
cat /run/user/$UID/gridinfo.txt
Basically the same result (although I know nothing about the pi so it could mean more to you:) )
|
no need to apologize John, I'm fairly new too, just trying to help. You answered my question as the 'grid' command is generating a gridsquare, which is good but it's also supposed to write the 'FILE=/run/user/$UID/gridinfo.txt' which you are saying it's not. so, I wanted to look inside the /home/pi/bin/conky/grid file to see where it was outputing that file. if you right-click on the 'grid' file do you have the option to Open With and then choose a text editor like Geany or Text Editor? If you can, then you will see where it is supposed to output the gridinto.txt file. mine looks like:
#!/bin/bash
#script get maidenhead from GPS for display in conky #called by cronjob #04FEB2021 KM4ACK
GRID=$($HOME/bin/conky/get-grid) GRIDCH=$(echo $GRID | grep -i JJ00) FILE=/run/user/$UID/gridinfo.txt
if [ -z "$GRIDCH" ] then echo $GRID > $FILE else echo "NO GPS" > $FILE fi
?
toggle quoted message
Show quoted text
I am not sure what I have:) sorry. Below is what I think you are asking for. You can email me at john.c.weiser@... if I am not understanding what you are asking. Sorry, I am new to the pi
On Wed, Aug 11, 2021 at 10:52 AM icrewuh60s < kj7wpn@...> wrote: Hi John, just curious - do you have
#Update GPS maidenhead for conky */1 * * * * /home/pi/bin/conky/grid
in your crontab?
Also, what does the /home/pi/bin/conky/grid file look like?
On Wed, Aug 11, 2021 at 02:55 PM, km4ack wrote:
cat /run/user/$UID/gridinfo.txt
Basically the same result (although I know nothing about the pi so it could mean more to you:) )
|
Mine seems to only have some of that. Would you recommend added the stuff yours has to mine??
toggle quoted message
Show quoted text
On Wed, Aug 11, 2021 at 1:17 PM icrewuh60s < kj7wpn@...> wrote: no need to apologize John, I'm fairly new too, just trying to help. You answered my question as the 'grid' command is generating a gridsquare, which is good but it's also supposed to write the 'FILE=/run/user/$UID/gridinfo.txt' which you are saying it's not. so, I wanted to look inside the /home/pi/bin/conky/grid file to see where it was outputing that file. if you right-click on the 'grid' file do you have the option to Open With and then choose a text editor like Geany or Text Editor? If you can, then you will see where it is supposed to output the gridinto.txt file. mine looks like:
#!/bin/bash
#script get maidenhead from GPS for display in conky #called by cronjob #04FEB2021 KM4ACK
GRID=$($HOME/bin/conky/get-grid) GRIDCH=$(echo $GRID | grep -i JJ00) FILE=/run/user/$UID/gridinfo.txt
if [ -z "$GRIDCH" ] then echo $GRID > $FILE else echo "NO GPS" > $FILE fi
?
I am not sure what I have:) sorry. Below is what I think you are asking for. You can email me at john.c.weiser@... if I am not understanding what you are asking. Sorry, I am new to the pi
On Wed, Aug 11, 2021 at 10:52 AM icrewuh60s < kj7wpn@...> wrote: Hi John, just curious - do you have
#Update GPS maidenhead for conky */1 * * * * /home/pi/bin/conky/grid
in your crontab?
Also, what does the /home/pi/bin/conky/grid file look like?
On Wed, Aug 11, 2021 at 02:55 PM, km4ack wrote:
cat /run/user/$UID/gridinfo.txt
Basically the same result (although I know nothing about the pi so it could mean more to you:) )
|
yeah, copy /paste what's in mine over your file... not sure at all why your's looks like that but good to know for Jason to see. Save it and maybe restart conky? You can see though the line that is supposed to write out the gridinfo.txt file is missing (among other things)
toggle quoted message
Show quoted text
Mine seems to only have some of that. Would you recommend added the stuff yours has to mine??
On Wed, Aug 11, 2021 at 1:17 PM icrewuh60s < kj7wpn@...> wrote: no need to apologize John, I'm fairly new too, just trying to help. You answered my question as the 'grid' command is generating a gridsquare, which is good but it's also supposed to write the 'FILE=/run/user/$UID/gridinfo.txt' which you are saying it's not. so, I wanted to look inside the /home/pi/bin/conky/grid file to see where it was outputing that file. if you right-click on the 'grid' file do you have the option to Open With and then choose a text editor like Geany or Text Editor? If you can, then you will see where it is supposed to output the gridinto.txt file. mine looks like:
#!/bin/bash
#script get maidenhead from GPS for display in conky #called by cronjob #04FEB2021 KM4ACK
GRID=$($HOME/bin/conky/get-grid) GRIDCH=$(echo $GRID | grep -i JJ00) FILE=/run/user/$UID/gridinfo.txt
if [ -z "$GRIDCH" ] then echo $GRID > $FILE else echo "NO GPS" > $FILE fi
?
I am not sure what I have:) sorry. Below is what I think you are asking for. You can email me at john.c.weiser@... if I am not understanding what you are asking. Sorry, I am new to the pi
On Wed, Aug 11, 2021 at 10:52 AM icrewuh60s < kj7wpn@...> wrote: Hi John, just curious - do you have
#Update GPS maidenhead for conky */1 * * * * /home/pi/bin/conky/grid
in your crontab?
Also, what does the /home/pi/bin/conky/grid file look like?
On Wed, Aug 11, 2021 at 02:55 PM, km4ack wrote:
cat /run/user/$UID/gridinfo.txt
Basically the same result (although I know nothing about the pi so it could mean more to you:) )
|
btw John,? The "
# " at the beginning on the line "creates" a comment line and
is NOT executed.? If that helps.
so, it looks like you have the right commands.? (I may have
missed something going from screen to screen)
and NO, I am not an expert, either.? Just that #'s are
comments (and good)...
73, steve WB3LGC
On 8/11/21 2:22 PM, John Weiser wrote:
toggle quoted message
Show quoted text
Mine seems to only have some of that. Would you
recommend added the stuff yours has to mine??
On Wed, Aug 11, 2021 at 1:17
PM icrewuh60s < kj7wpn@...> wrote:
no need to apologize John, I'm fairly new
too, just trying to help. You answered my question as
the 'grid' command is generating a gridsquare, which
is good but it's also supposed to write the
'FILE=/run/user/$UID/gridinfo.txt' which you are
saying it's not. so, I wanted to look inside the
/home/pi/bin/conky/grid file to see where it was
outputing that file.
if you right-click on the 'grid' file do you have
the option to Open With and then choose a text editor
like Geany or Text Editor? If you can, then you will
see where it is supposed to output the gridinto.txt
file. mine looks like:
#!/bin/bash
#script get maidenhead from GPS for display in
conky
#called by cronjob
#04FEB2021 KM4ACK
GRID=$($HOME/bin/conky/get-grid)
GRIDCH=$(echo $GRID | grep -i JJ00)
FILE=/run/user/$UID/gridinfo.txt
if [ -z "$GRIDCH" ]
then
echo $GRID > $FILE
else
echo "NO GPS" > $FILE
fi
?
I am not sure what I have:) sorry. Below is what
I think you are asking for. You can email me at john.c.weiser@...
if I am not understanding what you are asking.
Sorry, I am new to the pi
On Wed, Aug 11, 2021
at 10:52 AM icrewuh60s < kj7wpn@...>
wrote:
Hi John, just curious - do you have
#Update GPS maidenhead for conky
*/1 * * * * /home/pi/bin/conky/grid
in your crontab?
Also, what does the /home/pi/bin/conky/grid
file look like?
On Wed, Aug 11, 2021 at 02:55 PM, km4ack
wrote:
cat /run/user/$UID/gridinfo.txt
Basically the same result (although I know
nothing about the pi so it could mean more to
you:) )
|
so I added your items to the file and it didnt do anything. I restarted and nothing. I went into Conky preferences and restarted conky and nothing. I went into the grid file and selected open/execute and nothing happens. I went back into Conky preferences and restarted and now it says NO GPS. After a few minutes it finally populates the gridsquare. That being said, I restarted and it seems like I had to do all this again.
Not sure if that helps but it appears to be working now, although I am not sure which of the things above I did actually make it work:)
toggle quoted message
Show quoted text
On Wed, Aug 11, 2021 at 1:33 PM icrewuh60s < kj7wpn@...> wrote: yeah, copy /paste what's in mine over your file... not sure at all why your's looks like that but good to know for Jason to see. Save it and maybe restart conky? You can see though the line that is supposed to write out the gridinfo.txt file is missing (among other things)
Mine seems to only have some of that. Would you recommend added the stuff yours has to mine??
On Wed, Aug 11, 2021 at 1:17 PM icrewuh60s < kj7wpn@...> wrote: no need to apologize John, I'm fairly new too, just trying to help. You answered my question as the 'grid' command is generating a gridsquare, which is good but it's also supposed to write the 'FILE=/run/user/$UID/gridinfo.txt' which you are saying it's not. so, I wanted to look inside the /home/pi/bin/conky/grid file to see where it was outputing that file. if you right-click on the 'grid' file do you have the option to Open With and then choose a text editor like Geany or Text Editor? If you can, then you will see where it is supposed to output the gridinto.txt file. mine looks like:
#!/bin/bash
#script get maidenhead from GPS for display in conky #called by cronjob #04FEB2021 KM4ACK
GRID=$($HOME/bin/conky/get-grid) GRIDCH=$(echo $GRID | grep -i JJ00) FILE=/run/user/$UID/gridinfo.txt
if [ -z "$GRIDCH" ] then echo $GRID > $FILE else echo "NO GPS" > $FILE fi
?
I am not sure what I have:) sorry. Below is what I think you are asking for. You can email me at john.c.weiser@... if I am not understanding what you are asking. Sorry, I am new to the pi
On Wed, Aug 11, 2021 at 10:52 AM icrewuh60s < kj7wpn@...> wrote: Hi John, just curious - do you have
#Update GPS maidenhead for conky */1 * * * * /home/pi/bin/conky/grid
in your crontab?
Also, what does the /home/pi/bin/conky/grid file look like?
On Wed, Aug 11, 2021 at 02:55 PM, km4ack wrote:
cat /run/user/$UID/gridinfo.txt
Basically the same result (although I know nothing about the pi so it could mean more to you:) )
|
glad its working now. I'm not sure of the timing of all of this and how its supposed to work and when, but your 'grid' file was definitely?missing the commands to write out the gridinfo.txt file which conky relies on. Maybe your 'grid' file was an older version, I don't know? Maybe Jason can chime in when he has an opportunity.
toggle quoted message
Show quoted text
so I added your items to the file and it didnt do anything. I restarted and nothing. I went into Conky preferences and restarted conky and nothing. I went into the grid file and selected open/execute and nothing happens. I went back into Conky preferences and restarted and now it says NO GPS. After a few minutes it finally populates the gridsquare. That being said, I restarted and it seems like I had to do all this again.
Not sure if that helps but it appears to be working now, although I am not sure which of the things above I did actually make it work:)
On Wed, Aug 11, 2021 at 1:33 PM icrewuh60s < kj7wpn@...> wrote: yeah, copy /paste what's in mine over your file... not sure at all why your's looks like that but good to know for Jason to see. Save it and maybe restart conky? You can see though the line that is supposed to write out the gridinfo.txt file is missing (among other things)
Mine seems to only have some of that. Would you recommend added the stuff yours has to mine??
On Wed, Aug 11, 2021 at 1:17 PM icrewuh60s < kj7wpn@...> wrote: no need to apologize John, I'm fairly new too, just trying to help. You answered my question as the 'grid' command is generating a gridsquare, which is good but it's also supposed to write the 'FILE=/run/user/$UID/gridinfo.txt' which you are saying it's not. so, I wanted to look inside the /home/pi/bin/conky/grid file to see where it was outputing that file. if you right-click on the 'grid' file do you have the option to Open With and then choose a text editor like Geany or Text Editor? If you can, then you will see where it is supposed to output the gridinto.txt file. mine looks like:
#!/bin/bash
#script get maidenhead from GPS for display in conky #called by cronjob #04FEB2021 KM4ACK
GRID=$($HOME/bin/conky/get-grid) GRIDCH=$(echo $GRID | grep -i JJ00) FILE=/run/user/$UID/gridinfo.txt
if [ -z "$GRIDCH" ] then echo $GRID > $FILE else echo "NO GPS" > $FILE fi
?
I am not sure what I have:) sorry. Below is what I think you are asking for. You can email me at john.c.weiser@... if I am not understanding what you are asking. Sorry, I am new to the pi
On Wed, Aug 11, 2021 at 10:52 AM icrewuh60s < kj7wpn@...> wrote: Hi John, just curious - do you have
#Update GPS maidenhead for conky */1 * * * * /home/pi/bin/conky/grid
in your crontab?
Also, what does the /home/pi/bin/conky/grid file look like?
On Wed, Aug 11, 2021 at 02:55 PM, km4ack wrote:
cat /run/user/$UID/gridinfo.txt
Basically the same result (although I know nothing about the pi so it could mean more to you:) )
|
There is one exception in shell scripts to the " # " -- is a comment rule.
In a shell script, if the FIRST line begins with " #! " it's known as the "shebang".? It has special meaning -- here is a great explanation:?
|
so I added your items to the file and it didnt do anything. I restarted and nothing. I went into Conky preferences and restarted conky and nothing. I went into the grid file and selected open/execute and nothing happens. I went back into Conky preferences and restarted and now it says NO GPS. After a few minutes it finally populates the gridsquare. That being said, I restarted and it seems like I had to do all this again.
?
Not sure if that helps but it appears to be working now, although I am not sure which of the things above I did actually make it work:)
John, It looks like you may have updated an older version of BAP. The way the GPS was read and displayed in Conky changed a couple of version back and your original /home/pi/bin/conky/grid file appears to have the older version installed. Let's check a couple of more things and see if we can figure out why it isn't stating at boot every time. Keep in mind that it will read NO GPS until the GPS has a lock on the satellites. This could take several minutes after a reboot depending on your GPS and whether you are inside or outside. Please run the following commands and post the results: cat /home/pi/bin/conky/gridcrontab -l
--
73, de KM4ACK
|
|
|
Jason,
here are my results from the commands you wanted me to run:
toggle quoted message
Show quoted text
so I added your items to the file and it didnt do anything. I restarted and nothing. I went into Conky preferences and restarted conky and nothing. I went into the grid file and selected open/execute and nothing happens. I went back into Conky preferences and restarted and now it says NO GPS. After a few minutes it finally populates the gridsquare. That being said, I restarted and it seems like I had to do all this again.
?
Not sure if that helps but it appears to be working now, although I am not sure which of the things above I did actually make it work:)
John,
It looks like you may have updated an older version of BAP. The way the GPS was read and displayed in Conky changed a couple of version back and your original /home/pi/bin/conky/grid file appears to have the older version installed. Let's check a couple of more things and see if we can figure out why it isn't stating at boot every time. Keep in mind that it will read NO GPS until the GPS has a lock on the satellites. This could take several minutes after a reboot depending on your GPS and whether you are inside or outside. Please run the following commands and post the results:
cat /home/pi/bin/conky/grid crontab -l
--
73, de KM4ACK
|
|
|
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
|
|
|
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
toggle quoted message
Show quoted text
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
|
|
|
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
toggle quoted message
Show quoted text
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
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
|
|
|
On Fri, Aug 13, 2021 at 11:29 AM, Peter wrote:
Thought I would jump in and assist here. It's the next line of code following:
It can be placed there or at the end of the file. Either way will work. ? --
73, de KM4ACK
|
|
|
Seems to work now. Thanks Gentlemen! When I restarted it didnt seem to work. I am sure i am just impatient so I went to the ham radio menu and selected conky and it worked. Thanks for all your help!
toggle quoted message
Show quoted text
On Fri, Aug 13, 2021 at 11:29 AM, Peter wrote:
Thought I would jump in and assist here. It's the next line of code following:
It can be placed there or at the end of the file. Either way will work. ? --
73, de KM4ACK
|
|
|