-
Notifications
You must be signed in to change notification settings - Fork 0
gharris999/LCWA
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Issues addressed in this wgh_mods03 branch: Refactored test_speed1_3.py ookla speedtest code so that the ookla cli binary reports results in json and test_speed1_3.py parses the json to populate the speedfile CSV. This allows test_speed1_3.py to work with any past (and hopefully any future) version of the speedtest binary. Further enhancements to logging. A self.Logging message that includes the word 'exception' now prints a stack trace and the exception information. ====================================== Latest mod: Checks to see when systemd-timesyncd.service last synced the system time, thereby invalidating our previous ntp-offset query, forcing a new GetNTPOffset() ====================================== This branch, wgh_mods03 has been tested on the LC14 rPi4b, using the Andi original SDCard installation of the OS and running with no needed additions or modifications to the system under the crontab entries that call the scripts in src/scripts. This fork/branch can be tested on an "Andi Pi" via SSHing into the pi and substituting this repo/branch for Andi's: sudo su cd /home/pi/git # Stop the running code: pkill -9 -f 'test_speed1_3.py' # Save the original andi repo: mv speedtest speedtest.old # Clone the Gordon fork, branch wgh_mods03: git clone --branch=wgh_mods03 https://github.com/gharris999/LCWA.git speedtest # Generate the keyfile: cd speedtest/scripts ./lcwa_dec.sh you_know_which_file # Fix-up permissions cd /home/pi chown -R pi:pi . # Run the code: sudo -u pi /home/pi/git/speedtest/scripts/restart.sh # View the logs (requires apt-get install multitail) LCWA_LOGDIR='/home/pi' LCWA_LOGFILE="${LCWA_LOGDIR}/run_speedtes_restart.log" LCWA_ERRFILE="${LCWA_LOGDIR}/run_speedtest_restart_error.log" LCWA_DATADIR='/home/pi/speedfiles' FNAME_DATE="$(date +%F)" LCWA_CSVFILE="${LCWA_DATADIR}/$(hostname | cut -c -4)_${FNAME_DATE}speedfile.csv" multitail -i "$LCWA_LOGFILE" -i "$LCWA_ERRFILE" -i "$LCWA_CSVFILE"