Skip to content
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

Remove the pistar-reconnect script, and place calls in py script #3

Closed
wants to merge 2 commits into from

Conversation

W0CHP
Copy link

@W0CHP W0CHP commented Dec 2, 2022

This PR removes the pistar-reconnect shell script, and places the WiFi reconnect routines into the main pistar-remote python program, as per Andy's feedback on the original PR (which makes sense): AndyTaylorTweet#53 (comment)

All os.system() calls are consitent with the existing pistar-remote calls (e.g. remounting root filesystm [...only, no need to RW the boot part.]).

Chipster added 2 commits December 2, 2022 09:04
the WiFi reconnect routines into the main `pistar-remote` python
program, as per Andy's feedback on the original PR (which makes sense):
<AndyTaylorTweet#53 (comment)>

All `os.system()` calls are consitent with the existing `pistar-remote`
calls (e.g. remounting root filesystm [...only, no need to RW the boot part.]).
…ote` key-value pairs into `/etc/pistar-remote` for `KN2TOD`'s improvements.
@kn2tod
Copy link
Owner

kn2tod commented Dec 19, 2022

I purposely put the commands in a bash script external to the python program that invokes it so that adjustments could be made to the steps involved as the need arises. More error/retry logic might need to be added as it gets tested, for instance. And the external script file is a perfect mechanism (hook) to add (test) additional DMR command-triggered processes/events - like rewriting TG rules or logging messages or interacting with APRS - all without stopping/restarting the service task that other functions (commands) might depend on in the meanwhile. Flexibility in implementation, eh?

@kn2tod kn2tod closed this May 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants