Change Rooms on a Schedule
Change Rooms on a Schedule
I have been doing a bit of looking but not finding anything. Is there a way to script pi-star so it will automatically change rooms based on a schedule? For instance, I want my pi-star to link to the local net on Sunday nights then go back my normal room after the net is over. Is there a way to do that?
Re: Change Rooms on a Schedule
The old answer would be to write a script to modify the startup destination on the YSFGateway config file, and restart the service... not really very nice, this is like having to park your car to change radio station...
But now there is some remote control features built into YSFGateway, so yes you can script it
I'll write a cli tool for this shortly that will take the effort out of it, you can then call that with cron, thats all there will be to it
But now there is some remote control features built into YSFGateway, so yes you can script it
I'll write a cli tool for this shortly that will take the effort out of it, you can then call that with cron, thats all there will be to it
Re: Change Rooms on a Schedule
Thanks! That would be awesome! I did figure out a way, but like you said it's editing the config file and restarting the ysf service. A simple command would make this so much easier.
Re: Change Rooms on a Schedule
Wish granted.... at least on Pi-Star v4.x
Does what it says on the tin, and does so without restarting the service.
It also has some friends that came along with it
Code: Select all
pi-star@pi-star-ysf(ro):~$ sudo pistar-ysflink
To unlink from any connected reflector, use: pistar-ysflink unlink
To link to YSF31672, use: pistar-ysflink ysf31672
To link to FCS002-90, use: pistar-ysflink fcs00290
It also has some friends that came along with it
Code: Select all
pi-star@pi-star-ysf(ro):~$ sudo pistar-p25link
To unlink from any connected TG, use: pistar-p25link unlink
To link to TG31672, use: pistar-p25link 31672
pi-star@pi-star-ysf(ro):~$ sudo pistar-nxdnlink
To unlink from any connected TG, use: pistar-nxdnlink unlink
To link to TG31672, use: pistar-nxdnlink 31672
Re: Change Rooms on a Schedule
Oh and I should add, these change the connected YSF/P25/NDXN reflector without restarting the service - even if there is a QSO happening, it swaps the link on the spot
Re: Change Rooms on a Schedule
Do I need to update to a certain version? When trying I get the message "Remote Commands not enabled..."
Last edited by WX0MIK on Wed May 06, 2020 1:24 pm, edited 1 time in total.
Re: Change Rooms on a Schedule
All the developement is ongoing in the current 4.1 / 4.1.1 releases.
Sent from my SM-G935F using Tapatalk
Sent from my SM-G935F using Tapatalk
Andrew M1DNS.
Pi-star Admin Team.
Pi-star Admin Team.
Re: Change Rooms on a Schedule
I'm on 4.1.1, I get the following message "Remote Commands not enabled..." Is there a setting I need to change or am I not at the right version yet.
Re: Change Rooms on a Schedule
see the announcement here: viewtopic.php?f=23&t=2689
In short, update, head to the config page and press apply, you dont need to actually change anything at all, just applying the config will add in the extra config lines and you should be good to go
Re: Change Rooms on a Schedule
Thanks! It's working now.