-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Script to programmatically control hotspot services #23
base: master
Are you sure you want to change the base?
Conversation
You should only need to stop/start MMDVMHost and DStarRepeater since those interact with the radio, the rest of the services are the network end of the system and can stay running. You would also need to stop the ".timer" for each of those and also the pistar-watchdog service - its job is to keep all the daemons running. There is most of a script in place already for keeper operations that uses bluetooth to detect the keeper's cellphone - if the phone is in proximity, continue - if not, replace the public callsign with the private one. This could be adapted to give the choice to just kill the radio services. |
Sorry for the delayed reply. Ham radio is only a hobby and sometimes other things take priority ... I am aware of the The But
My requirements would be fulfilled if
So would a re-work of On the other hand: Isn't all of this quite a lot of effort for something that can be handled by a simple and straight-forward shell script containing a couple of |
…ervices. The scripts does the same as, for example, the pistar-update script does before and after running the update.
As there's no resolution (merge or reject comment) and also no further feedback for more than a month, I assume this is somehow not really wanted, even though it would still be fully optional to use the script. So I'll find another solution for the OMs of our local radio club and me. Please feel free to close this PR. I'm not angry about it and I'm really thankful for all the work that has already been spent on Pi-Star. |
…es_sbin into serviceUpDownScript
The requirement
As, in Germany, we're not allowed to run private stations in unattended mode, I would like to bring the hotspot services (and thus radio transmissions) up and down programmatically while keeping the RPI itself running 24/7.
I want to do this based on cron schedule. But also remote-controlled by other ways. For example integrated in some home automation (which knows how to detect whether I'm at home) via
ssh
command.Proposed solution
So I checked what
pistar-update
,pistar-remote
and others are doing and concluded that thesystemctl stop ...
would be a way forward.I'm not clear whether my approach is the best way to shut down the hotspot (or at least the radio). However, I wanted to share this with the community. I'm surely open for any other suggestions that fit the above requirements.
Request for feedback
If this separate script is an acceptable way forward and if the owners agree, I would submit another PR which removes the code duplication and calls the
pistar-services
instead ofsystemctl stop ...
at least at all the places where services are supposed to be controlled all together.