Commit Graph

84 Commits

Author SHA1 Message Date
frederik 189ef116d0 Add ram drive support in the ui 2024-02-13 18:06:57 +01:00
frederik 18c51f80d1 fix: un-escape quotes before writing to file 2024-02-13 10:57:35 +01:00
frederik da80128436 remove obsolete services 2024-02-13 10:57:35 +01:00
ehpersonal38 5336736b38 reinstate scrollbars 2023-06-01 22:30:24 -04:00
ehpersonal38 f050a60cc1 Revert "fix the things"
This reverts commit 88ccda11f3.
2023-05-28 13:40:16 -04:00
ehpersonal38 509a63e4f4 fix # of updates needed text overflow if > 99 2023-05-27 21:44:58 -04:00
ehpersonal38 88ccda11f3 fix the things 2023-05-25 15:54:54 -04:00
lloydbayley ed9b7c8055 Security Fixes, Mainly 2023-05-22 23:55:11 +10: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 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 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
ehpersonal38 712121e432 warn user on every page if lon/lat aren't set 2023-04-17 11:05:46 -04:00
ehpersonal38 9359f78a59 more cache busting
Co-Authored-By: Jared <799998+jaredb7@users.noreply.github.com>
2023-04-10 21:26:15 -04:00
jaredb7 94481bf915 Update service restart command to support multi service resstart
When restarting the Livestream service, the IceCast2 is restarted too, after fixing command to restart IceCast only it's status returned (since it's the last service)

Added in a small loop to try get both the service names so we can get the status of both.
2023-04-09 21:59:59 +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
jaredb7 7972452d61 Merge branch 'BirdNET-pi-main' into Misc-Fixes-and-Enhancements__mcguirepr89- 2023-04-07 08:50:29 +10:00
ehpersonal38 815e744755 nocache for this update 2023-04-06 14:46:55 -04:00
jaredb7 e695852d19 Make PHP use the systems timezone setting
The timezone in the PHP INI file could differ from the timezone set on the system itself and result incorrect time display on webpages and wherever date functions are used.

Simple fix to read the systems timezone and make PHP use the correct one.
2023-04-02 00:27:08 +10:00
ehpersonal38 e799b7154a Patching minor XSS vulnerability
The update output shows the name of the current commit your local installation is on. So if a commit is named <script>alert("xss");</script>, for example, that code will execute when someone updates their installation.

Not a huge deal since we'd notice if someone made a rogue pull request with any commit names like that before ever accepting it into the repo.
2023-03-07 18:57:50 -05:00
ehpersonal38 77356659a2 Switching <b> for font-weight:bold 2023-03-07 18:26:55 -05: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 5e40772b42 More colorizing 2023-03-06 18:21:26 -05:00
ehpersonal38 73bd2a4e2c Fixing colorize bugs - it works now! 2023-03-06 18:10:14 -05:00
ehpersonal38 60700ac2bc Trying to colorize diff --stat in Update output 2023-03-06 16:51:02 -05:00
ehpersonal38 292e63c76c better update count 2023-02-15 11:54:03 -05:00
ehpersonal38 b11ae6c10f issue #704 2023-01-20 14:37:26 -05:00
ehpersonal38 18d933759c kiosk mode 2023-01-11 17:44:48 -05:00
ehpersonal38 9ffdc928bf update timer 2022-08-05 15:01:34 -04:00
ehpersonal38 29358943ba password obfuscation in advanced 2022-07-24 13:17:17 -04:00
ehpersonal38 2151ac2181 no need to check the length 2022-07-06 16:31:59 -04:00
Patrick McGuire f383ef1343 Merge branch 'main' into weekly-report 2022-07-06 07:25:07 -04:00
ehpersonal38 d13ee9865a transition for earlier commit 2022-07-04 18:01:36 -04:00
ehpersonal38 82523b0a3a Styling when clicked page is loading 2022-07-04 11:31:56 -04:00
ehpersonal38 e19c7c6ba3 silence update indicator 2022-06-30 16:28:52 -04:00
ehpersonal38 b6bf1bedca More stats, formatting 2022-06-29 17:09:38 -04:00
ehpersonal38 9c58e58d90 Weekly Report start 2022-06-27 14:28:31 -04:00
mcguirepr89 992bb2c5a7 open databasemaintenance in new window 2022-06-25 15:02:59 -04:00
ehpersonal38 c16d5f2c0c Attempt at clearing cache 2022-06-22 13:03:57 -04:00
ehpersonal38 daf8469b42 "You cannot" styling 2022-06-11 09:54:29 -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
ehpersonal38 3949eff99e Update views.php
Thank you!

Co-Authored-By: Patrick McGuire <60325264+mcguirepr89@users.noreply.github.com>
2022-05-30 13:31:53 -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 4ec7348901 More update clarity 2022-05-26 10:27:26 -04:00
ehpersonal38 ddfec7222c Spectro things
Putting Spectrogram more towards the left makes sense to me, that way from left to right it's current detections -----> past detections.
2022-05-24 12:59:27 -04:00
mcguirepr89 cdbadbb45c starting this to get some help 2022-05-23 18:41:16 -04:00
ehpersonal38 8749c342aa hehe 2022-05-23 13:22:26 -04:00