Commit Graph

172 Commits

Author SHA1 Message Date
Lloyd Bayley 30d47dfc93 Update BirdWeather ID procedure (#68)
* Update BirdWeather procedure

* Update config.php

Fixed an oops in the a href

* Update config.php

Add linebreak to make it look nicer
2024-05-21 09:22:39 +02:00
frederik 18ce5c7db9 add warning: changing database language on a running install will mess up the stats 2024-05-15 09:54:46 +02:00
frederik 3844f7da83 tidy input boxes 2024-04-09 17:52:39 +02:00
frederik 54a9a8041d tidy location settings 2024-04-09 17:52:39 +02:00
frederik 63d2da0910 tidy apprise 2024-04-09 17:52:39 +02:00
frederik 464b2240d8 convert to standard html 2024-04-09 17:52:39 +02:00
frederik b61a78ed55 fix: require_once 2024-03-29 13:21:18 +01:00
frederik abdffccc2e convert advanced.php config.php 2024-03-29 13:21:18 +01:00
frederik b58abdeb95 make sure input box fits the api key 2024-03-29 13:17:36 +01:00
frederik 3246b61c41 fix: don't send unsolicited stuff: this might break json 2024-03-14 11:55:31 +01:00
frederik b7225ca1d2 fix: use hostname like the python code does 2024-03-14 11:55:31 +01:00
frederik c8b15b65ce Merge branch 'sqlite-timeout' 2024-03-09 13:27:10 +01:00
frederik b0eb5e063f add busyTimeout() to deal with concurrency. open read-write only when needed 2024-03-09 13:04:07 +01:00
Lloyd Bayley 3b4da2e2b6 Update config.php 2024-03-09 01:16:59 +11:00
frederik e0484b8caf fix: make sure the UI reflects the change 2024-02-28 10:21:06 +01:00
frederik 421575423c fix: do not rely on /etc/timezone to get the time zone. timedatectl does not update it immediately (anymore), it only gets updated after a reboot 2024-02-24 11:31:36 +01:00
frederik 299c4cee28 add DATA_MODEL_VERSION to config.php 2024-02-19 16:54:25 +01:00
frederik a3a2ea6dc4 fix: avoid using escapeshellcmd() by injecting $body via STDIN. not very elegant, but keeps with the spirit of escapeshellcmd() 2024-02-18 10:59:22 +01:00
frederik c100d19da1 bookwork fix: make php version independant 2024-02-13 18:06:57 +01:00
frederik 3761d945a1 use only double quotes 2024-02-13 10:57:35 +01:00
ehpersonal38 d47719a443 make 2.4 the default model 2023-06-09 18:01:49 -04:00
ehpersonal38 fd7cdd4b57 Model Update: V2.4 2023-06-04 18:58:47 -04:00
ehpersonal38 a3c8e4efc0 fix confidencepct for test notification 2023-05-30 12:57:04 -04:00
ehpersonal38 5af7dd9ced Merge branch 'main' into feature/add-confidencepct-variable-to-apprise-notification 2023-05-30 12:30:14 -04:00
ehpersonal38 0ee4fbe260 Fix settings requiring refresh to display updated values after changes 2023-05-28 17:11:42 -04:00
ehpersonal38 f0be69d79a Revert "fix species list tester"
This reverts commit 4b6b75a649.
2023-05-28 13:40:19 -04:00
ehpersonal38 f050a60cc1 Revert "fix the things"
This reverts commit 88ccda11f3.
2023-05-28 13:40:16 -04:00
ehpersonal38 f47b9e040e resolve #934 2023-05-28 13:39:55 -04:00
ehpersonal38 88ccda11f3 fix the things 2023-05-25 15:54:54 -04:00
ehpersonal38 049b62d6ae add flowchart 2023-05-23 14:19:53 -04:00
ehpersonal38 4b6b75a649 fix species list tester 2023-05-23 13:52:32 -04:00
ehpersonal38 9c1f4175e2 Revert "Code Consolidation for API preparations & hard coded path replacements" 2023-05-19 20:03:02 -04:00
jaredb7 a80d39d7b6 Replace all authentication code with a function that does the auth for us
Makes things a little tidier and easier to change in the future, a custom message can be passed to authenticateUser() and this is output if the authentication fails.

Added protection around Include and Exclude species pages as these still accessible & data can still be written to include and exclude species.txt even with a password.
2023-05-13 01:07:19 +10:00
jaredb7 e99129f5f5 Config.php - Replace apprise.txt hard-coded paths with calculated paths 2023-05-10 23:05:22 +10:00
jaredb7 92bd190334 Authenticate user for all system actions
Wired in an additional check to verify user is authenticated before executing any code that makes changes to the system like saving settings or command execution.
This is a 2nd layer on top of the front end pages authenticating the user

Added in escaping of arguments for set date and change timezone just in case
2023-05-10 23:02:11 +10:00
jaredb7 eee84587f9 Merge branch 'BirdNET-pi-main' into New-UI-API
# Resolve Conflicts due to code movement:
#	homepage/views.php
#	scripts/config.php
#	scripts/play.php
2023-05-10 22:57:49 +10:00
ehpersonal38 4cc4406083 Update views.php 2023-05-09 13:58:24 -04:00
jaredb7 69c4a6d3b1 Move remaining files to use new code
Include and Exclude list updated to use the calculated path to their respective x_species_list.txt files

Move play.php over to also use the new calculated paths to disk_check_exclude

Spectrogram.php remove unused code & replace setting save code with new function

Stats.php removed old code, update paths to use calculated path.

Rename setSetting func to saveSetting
Remove old code from other pages
2023-05-09 20:29:57 +10:00
jaredb7 3fb6889364 Merge branch 'BirdNET-pi-main' into New-UI-API
Install langauge code was moved into a different file, updated changeLanguage() in common.php by removing sudo from 3K model language install.
2023-05-09 07:32:20 +10:00
ehpersonal38 8c4e457c1a removing sudo 2023-05-08 13:32:22 -04:00
jaredb7 b4977a62b6 Remove unused code from config.php 2023-05-08 23:32:56 +10:00
jaredb7 31730d58de Merge branch 'BirdNET-pi-main' into New-UI-API 2023-05-08 23:25:12 +10: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
gerritzen ef3916a043 Fixed year number 2023-05-03 23:58:49 +02:00
ehpersonal38 6d3857b86e Apprise ONLY notify for certain species 2023-05-02 15:51:10 -04:00
ehpersonal38 c016427083 Model Update: V2.3
note for me:
for f in BirdNET_GLOBAL_3K_V2.3_Labels_*.txt; do mv -- "$f" "labels_${f#BirdNET_GLOBAL_3K_V2.3_Labels_}"; done
2023-04-24 14:09:24 -04:00
ehpersonal38 c87d507b0b allow user to view Weekly Report page 2023-04-12 22:00:47 -04:00
ehpersonal38 f8e68551a3 Revert "Revert "Merge pull request #829 from lloydbayley/main""
This reverts commit 712f4b034a.
2023-04-07 21:24:49 -04:00
ehpersonal38 712f4b034a Revert "Merge pull request #829 from lloydbayley/main"
This reverts commit 3abc483ef5, reversing
changes made to 21beea2f2d.
2023-04-07 21:08:42 -04:00
lloydbayley a4b18fb066 Update config.php
Tidy Up UI
2023-04-07 23:22:47 +10:00