Commit Graph

33 Commits

Author SHA1 Message Date
frederik a48bda055b convert service_controls.php system_controls.php 2024-03-29 13:21:18 +01:00
Nachtzuster 017734037a Merge pull request #18 from lloydbayley/main
Change repo in System Controls
2024-03-09 17:48:26 +01:00
Lloyd Bayley a192039980 Update system_controls.php 2024-03-10 00:30:57 +11:00
frederik 1d2c2d6faa make casual git checking non-blocking-y, also check every 24h 2024-03-09 13:17:49 +01:00
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
Louis Croisez 7117d097fa Correction made in 'sudo -u' command 2023-04-24 15:36:54 +02:00
Louis Croisez 6f674d1c2f Modified way for getting current commit hash - more robust because now it works for branches 2023-04-24 15:30:58 +02:00
Louis Croisez 63326ea01a Added clickable BirdNET-Pi version info in the SystemControls web page 2023-04-22 12:43:36 +02:00
ehpersonal38 7e825d6009 Handle # of commits behind by, in case the main branch is amended/rebased 2023-03-07 18:20:51 -05:00
ehpersonal38 292e63c76c better update count 2023-02-15 11:54:03 -05:00
ehpersonal38 9ffdc928bf update timer 2022-08-05 15:01:34 -04:00
ehpersonal38 2151ac2181 no need to check the length 2022-07-06 16:31:59 -04:00
mcguirepr89 7bfe241e57 removed all sudo git instances 2022-06-02 06:40:42 -04:00
ehpersonal38 23a1e7a1d4 Trying and catching 2022-05-31 12:24:39 -04:00
mcguirepr89 76fc74d96e needs to be run as user to see the results 2022-05-30 10:08:06 -04:00
ehpersonal38 a2715ddc14 Update system_controls.php 2022-05-29 11:09:21 -04:00
ehpersonal38 201f705517 If behind by more than 50 commits, show update badge on "Tools" 2022-05-27 15:32:43 -04:00
ehpersonal38 5c2aab01e4 Show # of commits local repo is behind by, on Sys Controls 2022-05-26 10:26:02 -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 99f5b39822 clear_all_data warning 2022-04-12 10:10:38 -04:00
mcguirepr89 f69f04d19d changes that remove the default pi user 2022-04-11 17:29:00 -04:00
mcguirepr89 b9e52aa8a7 adding privacy_mode settings 2022-04-09 14:34:06 -04:00
mcguirepr89 8a6f67ff75 removed unnecessary style links (for alternative stlye sheets?) 2022-03-08 15:58:48 -05:00
mcguirepr89 834ea5e49a fixing clear_all_data errors 2022-03-08 11:37:10 -05:00
mcguirepr89 419b9da314 adding service controls 2022-03-08 10:08:59 -05:00
mcguirepr89 bb9fad48be made update work 2022-03-07 18:14:09 -05:00
mcguirepr89 b7c0c1bd78 testing another installation 2022-03-07 13:54:03 -05:00
mcguirepr89 e09c1fafb6 getting ready for Nils! 2022-03-04 12:11:05 -05:00
mcguirepr89 ecb0d0511d testing updater 2022-02-16 09:49:23 -05:00
mcguirepr89 6fada3f135 testing updater 2022-02-16 09:41:27 -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