Commit Graph

20 Commits

Author SHA1 Message Date
ehpersonal38 9c1f4175e2 Revert "Code Consolidation for API preparations & hard coded path replacements" 2023-05-19 20:03:02 -04:00
jaredb7 ac9a0e4cbe Consolidate code in remaining pages, setting page updates
The Config and Advanced setting pages received changes to use the new setSetting() function which looks after creating or updated the setting in the required config files.
Optionally it also specification of a command to run after saving the settings.
Some variables like models, audio formats and frequency shift tools were also moved into common.php

Service Controls page received changes with the replacement of the actual command to execute with a sort of shorthand human friendly version e.g. service <action> <service_name> -- service restart livestream.service

These commands map to the original commands in serviceMaintenance() so this could be called through the API without needing the full-blown commend.
views.php was updated to accommodate this also

System Controls page received a small change to make the process checking for new git updates or getting the last commit hash a single function call.

Include and Exclude species updated to use getFilePath() to generate a path to the required file instead of the hard coded path

Views.php also received similar treatment with replacing some hard coded paths with generated paths, but logic changes to handle the change in running service commands
2023-05-08 23:24:15 +10:00
jaredb7 d16d4f60a3 Fix error when restarting the Live Stream service
Changed command to use systemctl to restart the icecast2 service, the error wasn't fatal but just made it look like restarting the live stream service had failed.
2023-04-08 11:14:04 +10:00
ehpersonal38 fce0c08095 Update service_controls.php 2022-07-22 18:51:02 -04:00
ehpersonal38 8961c9d45f Print service status on Service Controls 2022-07-20 16:41:37 -04:00
mcguirepr89 6162e524b1 more accurate button label now 2022-05-28 17:05:29 -04:00
mcguirepr89 ca7c2078dc those warning are no longer needed 2022-05-26 09:16:54 -04:00
mcguirepr89 426aba1d69 adding time expectations for Clear All Data 2022-05-24 17:14:58 -04:00
mcguirepr89 cdbadbb45c starting this to get some help 2022-05-23 18:41:16 -04:00
mcguirepr89 aaeda89f14 spectrogram, species stats, and log now have navigation bar
changed all POSTs to GET
2022-04-15 12:01:46 -04:00
mcguirepr89 3ff8a0bcd4 added "Stop Core Services" button 2022-04-07 09:58:49 -04:00
mcguirepr89 347d994bac disable/enable/start/stop livestream now also
controls icecast2
2022-04-04 16:17:41 -04:00
mcguirepr89 4fbeeff371 added streamlit to controlable services 2022-03-14 20:07:15 -04:00
mcguirepr89 8a6f67ff75 removed unnecessary style links (for alternative stlye sheets?) 2022-03-08 15:58:48 -05:00
mcguirepr89 419b9da314 adding service controls 2022-03-08 10:08:59 -05:00
mcguirepr89 bb60d19975 setting expectations 2022-02-16 14:47:19 -05:00
mcguirepr89 a02680a46d verbose restart so you know its working 2022-02-16 09:31:34 -05:00
mcguirepr89 ee252f118b testing service_controls 2022-02-16 08:02:48 -05:00
mcguirepr89 073e718cac removing unneeded scripts and adding extractions to logging 2022-02-15 13:48:05 -05:00
mcguirepr89 1cd1dbeecf rearranging the tools page to add system_controls and service_controls 2022-01-31 12:34:57 -05:00