Page 1 of 1

Auto-update Stripped.csv in System Cron?

Posted: Thu Feb 04, 2021 10:56 pm
by M6XRM
Hi folks.

A couple of times every week, i go thru the process of manually updating the "Stripped.csv" database that feeds the operator info fields on our Nextion screens.
Although i have got it down pretty quick now, it's still a bit of a faff, and i was wondering if there was a way to get Pi-Star to fetch the .csv file i prepare as a daily event in System Cron? It would save me a bit of time for sure. All i would have to do is point a Cron job to where the new .csv is stored on the internet, and then write it to where it is stored on the Rpi...in this case /usr/local/etc/stripped.csv

Hope somebody may have an idea.

Cheers & 73...

Richie.

Re: Auto-update Stripped.csv in System Cron?

Posted: Thu Feb 04, 2021 11:29 pm
by KG6RUT
maybe look here: /usr/local/sbin/pistar-daily.cron

Re: Auto-update Stripped.csv in System Cron?

Posted: Fri Feb 05, 2021 12:29 pm
by M6XRM
KE7FNS wrote: Fri Feb 05, 2021 12:39 am You need to make sure whoever is hosting that file is ok with you pulling the data daily.
Currently, i host my own .csv file which i pull down and edit from KF5IW's database weekly.

What i need to figure out is how to trigger the automation of Pi-star pulling to down and overwriting it.
Currently, with the manual way of doing it, i have to reboot at the end to implement the change also....so there is an extra challenge.

Was kind hoping someone would have said "Oh...i've done that" by now, and share their script and where to put it.

Re: Auto-update Stripped.csv in System Cron?

Posted: Fri Feb 05, 2021 3:54 pm
by KG6RUT
When you figure it out let us know....I use his files too :)

I would think wget or curl would do the job...

Re: Auto-update Stripped.csv in System Cron?

Posted: Fri Feb 05, 2021 8:25 pm
by f1rmb
Hi,

kill -USR1 <pid>


It works also with killall.


Cheers.
---
Daniel

Re: Auto-update Stripped.csv in System Cron?

Posted: Fri Feb 05, 2021 8:46 pm
by f1rmb
KE7FNS wrote: Fri Feb 05, 2021 8:40 pm That makes total sense.

Thanks. :D
You're welcome ;-)


Cheers.
---
Daniel