¿ªÔÆÌåÓý

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

73Linux Build & Fetch Solar


 

I recently pulled a long forgotten Build-A-Pi (3B+) out for some updates and noticed 73Linux is the new format. Decided to just do a new build. Install & updates went off without a hitch. As I was wrapping up I remembered there was a way to add solar data to the Conky pane. Followed the video on Youtube from 12/22/2020 as I didn't see an updated version. Ended up with two issues...
?
First, when I manually run fetchsolar in the terminal to initially populate the fields I see the values plus some empty boxes:
?
Second, even though I added the new/related crontab entry, these values don't appear when the Pi boots up.
?
Did I miss a step or two? Thanks.
?
- N1DAE


 
Edited

Solved the failure to populate at startup with an added @reboot line in the crontab. Does anyone have a thought regarding the small boxes?


 

/g/KM4ACK-Pi/topic/88592007#msg6997
--
73, de KM4ACK
|
|


 

I appreciate the link and don't know how I missed that post in a search... my apologies.


 

The script in the link is different, so do I have to replace the entire script with the newer one?


 

Couldn't really make sense of the posts in the linked 2022 thread as I didn't want images or think significant changes should be needed just get rid of the boxes. They appear to be caused by a stray carriage return (CR) left in the related text files. As someone still getting my feet wet with Linux, with a bit of research and some careful experimentation, a fairly simple solution was found.
?
After , you don't have to replace the entire fetchsolar script. The only thing required is an easy edit to one line in each of the "clean up" sections (aindex, kindex, sflux, & sunspots). You can see where this file resides in the video starting about the 9:30 mark. The changes are highlighted in bold:
?
original: sed -i 's/<\/aindex>//' $DIR/aindex.txt
new: sed -i 's/<\/aindex>.*//' $DIR/aindex.txt
?
original: sed -i 's/<\/kindex>//' $DIR/kindex.txt
new: sed -i 's/<\/kindex>.*//' $DIR/kindex.txt
?
original: sed -i 's/<\/solarflux>//' $DIR/sflux.txt
new: sed -i 's/<\/solarflux>.*//' $DIR/sflux.txt
?
original: sed -i 's/<\/sunspots>//' $DIR/sunspots.txt
new: sed -i 's/<\/sunspots>.*//' $DIR/sunspots.txt
?
Jason, please feel free to add these changes to the github pi-scripts fetchsolar file.


 

Worked like a charm.?

Thank You