Commit Graph

101 Commits

Author SHA1 Message Date
Alexandre a0087b2911 Limit play.php to 40 items at a time (#280) 2025-04-06 08:54:46 +02:00
Alexandre 32e2bf5621 Always show the commands (#322)
* Always show the commands

* Show all commands

* Fix

* Update play.php

* Under misguided fix

* Redo logic
2025-04-05 10:47:00 +02:00
Alexandre 5257f326fa Values in k above 1000 2024-11-09 17:09:22 +01:00
Alexandre e15229dbed Add counts to sort by occurrence 2024-11-09 17:09:22 +01:00
Alexandre 305e1813d0 UI : Convert checkbox to toggleswitch (#209)
* Convert checkbox to toggleswitch

* Keep previous code layout

* Improve layout : gray border, dark toggle

* Avoid changing unneeded things

* Updated layout

* Better transparency

* Use ✓ instead of ON

* Improve alignment and font size
2024-10-12 11:29:46 +02:00
Alexandre 96df8e781d Feat : sort species by max confidence (#198)
* Add sort by occurence button

* sort_conf icon

* Optimized svg
2024-09-30 20:50:59 +02:00
Alexandre a9c8d9a235 Fix : set testbtn as css style for species change dropdown (align with all dropdown) (#129) 2024-07-02 21:16:10 +02:00
Alexandre b959325605 Feat : proposal to standardize behavior of click on Com_Name and Sci_Name (#116)
* Align with 3 logos : wikipedia ; info_site ; minigraph

* Add info & wiki.png

* Rename wikipedia.png to wiki.png

* Show icons on recent detections

* icons with white background

* Align icons with scientific name to center common name

* Add icons

* Not sure what this makes

* Correct link to info_site

* Restore initial cleaner layout

* Have same behavior for title than the overview

* Add icons of info and wikipedia to recordings

* Add icons

* Clean

* Improve icons size

* Add icons to species stats

* Put icons near sci_name

* Remove pictures from mobile on main page for small screens

* Other solution for mobile

* Improve visibility on smaller screen and consistency

* Improve visibility on smaller screen and consistency

* Improve readability on small screens

* Improve readability on small screens

* Set image size for smaller screens

* Make scientific name in italics

* Sci_name in italics

* Add sci_name in Italics for consistency

* Inline icons with scientific text for consistency

* Italics for todays scientific name
2024-06-29 10:15:30 +02:00
Alexandre c55cff6e45 Update play.php 2024-06-27 11:55:06 +02:00
Alexandre 954319ded3 Avoid unecessary change 2024-06-26 16:22:07 +02:00
Alexandre e58c067a0e Merge branch 'Nachtzuster:main' into patch-5 2024-06-25 08:19:21 +02:00
Alexandre ed68f06617 Feat : Add site_info to the title of the species accessed through Recordings or Unique species (#113)
* Add description to title

* Update play.php

* Add get_sci_name function

* Implement get_sci_name

* Removed as less relevant

* Add info_site also when opening from filenames

* Correct

* Restore initial name

* Need to use labels.txt for right language

* Use $_labels in get_sci_name
2024-06-23 09:52:20 +02:00
Alexandre 8fa422adcf Update php + dark css @hiemstra87
Co-Authored-By: Hiemstra87 <145980686+hiemstra87@users.noreply.github.com>
2024-06-20 14:45:09 +02:00
Alexandre 75b5dc57ee Add class="sortbutton" 2024-06-20 12:32:23 +02:00
Alexandre 218b5ea619 Use css for sortbuttons style
Thanks #hiemstra87 https://github.com/Nachtzuster/BirdNET-Pi/pull/115

Co-Authored-By: Hiemstra87 <145980686+hiemstra87@users.noreply.github.com>
2024-06-20 12:07:39 +02:00
Alexandre 2fd75ccafc Feat : change specie detected (#62)
* Add changedetection function

* Create birdnet_changeidentification.sh

* Add files via upload

* Use a modal box for display of the species

* Allow filtering on safari ios

* Reset the dropdown if cancelled

* Fix : click outside modal box to cancel it in safari ios

* Switch modal style to style.css

* Switch modal style to style.css

* Improves modal rendition on small screens

* Use ./scripts/labels.txt instead of hardcoded home

* Added physical cancel button

* ensure user pi executes the scripts

https://github.com/Nachtzuster/BirdNET-Pi/pull/62

* Specify exec if not explicit

https://github.com/Nachtzuster/BirdNET-Pi/pull/62

* Try another way to define the variables

https://github.com/Nachtzuster/BirdNET-Pi/pull/62

* Align shebang with other scripts

https://github.com/Nachtzuster/BirdNET-Pi/pull/62

* Allow different HOME

https://github.com/Nachtzuster/BirdNET-Pi/pull/62

* Update birdnet_changeidentification.sh

* Align way to call sudo -u $user with other birdnet-pi code

https://github.com/Nachtzuster/BirdNET-Pi/pull/62

* Align with proposal

https://github.com/Nachtzuster/BirdNET-Pi/pull/62

* Successfully converted message

https://github.com/Nachtzuster/BirdNET-Pi/pull/62

* Align "safe" variables logic to helpers.py

* Make birdnet_changeidentification.sh executable

* Force confidence to 1.001

* Set confidence to 0

https://github.com/Nachtzuster/BirdNET-Pi/pull/62
2024-05-30 11:30:09 +02:00
Alexandre 14eb89f38d Add line break between shell and sqlite error outputs (#60) 2024-05-15 10:10:13 +02:00
frederik 6e6e9eab08 fix: do not crash if disk_check_exclude.txt is not created yet 2024-05-15 09:28:25 +02:00
Alexandre 43fcc09f4f Feat : play.php output file or database deletion errors to user (#49)
* Checks sqlite deletion before deleting file, error output

* Restore initial logic

* Update play.php

* Update play.php

* Readd output

* Redirect err to output and parallelize deletions

* Update play.php
2024-05-13 09:30:51 +02:00
frederik 1c41fc3d8f properly replace quotes 2024-04-23 19:26:08 +02:00
frederik 752ba555a8 make sure we get quotes back 2024-04-23 19:25:45 +02:00
frederik e5a7294381 play.php: cleanup html 2024-04-09 17:52:39 +02:00
frederik ec134fa2e3 prevent directory traversal 2024-03-29 13:21:18 +01:00
frederik 12efcc0249 convert play.php 2024-03-29 13:21:18 +01:00
frederik ed42cbf1e2 rework deletion: we _do_ need to open read-write here 2024-03-09 13:17:49 +01:00
frederik b0eb5e063f add busyTimeout() to deal with concurrency. open read-write only when needed 2024-03-09 13:04:07 +01:00
frederik be8a98bf59 fix: do not unset the session 2024-03-09 10:16:52 +01:00
frederik 6da33df8e9 fix: do not error out when disk_check_exclude.txt does not exist yet 2024-02-24 11:38:09 +01: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 1bb17f9705 Update play.php 2023-05-09 15:06:14 -04:00
ehpersonal38 4cc4406083 Update views.php 2023-05-09 13:58:24 -04:00
jaredb7 7169a172d6 Merge branch 'BirdNET-pi-main' into New-UI-API 2023-05-09 20:34:37 +10: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
ehpersonal38 53fa65e364 Merge pull request #896 from croisez/main
Modified play script to substitute href of <a> tag in case that <vide…
2023-05-08 17:52:22 -04:00
Louis Croisez d1e0d91711 removed unnecessary logs 2023-05-08 17:56:14 +02:00
Louis Croisez efe52a4638 Modified play script to substitute href of <a> tag in case that <video> tag is absent. This is for the ShiftFreq feature 2023-05-08 17:50:56 +02:00
jaredb7 bf0131cf27 Query Consolidate Code for API Preparations
All SQL Queries were moved into their respective functions and parameterized, there were some slight logic changes in the front end pages to accommodate data being returned differently but existing functionality is maintained

A common function is used to execute the queries and looks after binding any parameterized values that have been supplied.

Other code for deleting / protecting detection's, frequency shift, Flickr API call etc have also been moved into common.php to be used later by the API

Two new functions getDirectory and getFilePath were introduced in aims and make it easier to relocate files. This will be worked into all existing php files to replace hardcoded paths
2023-05-07 11:59:50 +10:00
ehpersonal38 f30e48356c better purge exclude language 2023-05-02 12:45:35 -04:00
ehpersonal38 31cc358243 Removing /tmp/ file creation for pitch shifting
Co-Authored-By: croisez <1774281+croisez@users.noreply.github.com>
2023-03-21 20:02:45 -04:00
ehpersonal38 1a0bf359b3 Fix permissions issues, pt. 2 2023-03-21 17:41:36 -04:00
ehpersonal38 b5c4160c9c Split "Recordings" species list into 3 columns to take up less vertical space 2023-03-12 19:42:38 -04:00
ehpersonal38 d257b144a1 Making recordings actually usable for huge amounts of detections 2023-02-15 13:46:38 -05:00
Louis Croisez b49f8f730d Bugfixes + added choice between ffmpeg and sox tools 2022-10-03 16:06:44 +02:00
Louis Croisez 88a9b63458 Added config parameters for frequency shift feature 2022-10-02 19:05:54 +02:00
Louis Croisez 3dfd740944 Adding feature: shifting down in frequency for earing impairment people 2022-10-02 16:31:29 +02:00
ehpersonal38 b5dabf937a Update play.php 2022-08-10 19:04:09 -04:00
ehpersonal38 0de565b80b copylink button title 2022-08-10 19:01:04 -04:00