Commit Graph

72 Commits

Author SHA1 Message Date
frederik b0eb5e063f add busyTimeout() to deal with concurrency. open read-write only when needed 2024-03-09 13:04:07 +01:00
frederik ae9cd73407 fix: do not error out on a missing blacklisted_images.txt file 2024-02-18 14:35:23 +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 6b5282037c Merge branch 'BirdNET-pi-main' into New-UI-API 2023-05-17 20:04:19 +10:00
Louis Croisez 098e956e60 Makes DetectionsPanel disappear if it was already displayed, before displaying a new one 2023-05-09 10:02:57 +02: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 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 a97679633a add delete button to Today's Detections 2023-04-29 17:19:27 -04:00
ehpersonal38 2c77964b1a fix #876 2023-04-27 14:53:02 -04:00
ehpersonal38 5de300caa5 fix kiosk mode 2023-04-25 16:10:21 -04:00
jaredb7 2efc15eb94 Some element tag fixes and added a link to the recording when on mobile
On mobile a new icon has been added to allow the user to jump to the detection's recording. Allowing the user listed to the recording as no playback controls are available when on mobile.
This is the same function available for the most recent recording
2023-04-01 22:14:35 +10:00
ehpersonal38 af8e7d433f clarifying some language 2023-03-24 14:46:48 -04:00
ehpersonal38 5dec3cb76a Flickr new policy compliance, user agents are now required 2023-03-22 13:22:14 -04:00
ehpersonal38 865fba64f2 Add license URL to Flickr images 2023-03-16 13:50:49 -04:00
ehpersonal38 fbed94e209 Blacklist Flickr images from the web interface 2023-03-15 19:37:17 -04:00
ehpersonal38 aaffa6f5c5 Adding support for blacklisting certain Flickr images 2023-03-14 15:59:58 -04:00
ehpersonal38 534004acf6 Making charts more mobile friendly on "Today's Detections" 2023-03-07 18:10:24 -05:00
ehpersonal38 19c4f3d6aa Chart fixes / adding to Overview 2023-03-05 18:55:49 -05:00
ehpersonal38 504942006b Initial chart commit 2023-03-05 14:45:07 -05:00
ehpersonal38 53b5ad6868 Update todays_detections.php 2023-02-15 20:23:20 -05:00
ehpersonal38 c23c661fa7 issue #704 2023-01-20 14:37:41 -05:00
ehpersonal38 e2062362b8 Update todays_detections.php 2023-01-12 18:04:15 -05:00
ehpersonal38 18d933759c kiosk mode 2023-01-11 17:44:48 -05:00
ehpersonal38 35d8b5ea11 #489 2022-08-15 19:21:31 -04:00
ehpersonal38 0de565b80b copylink button title 2022-08-10 19:01:04 -04:00
ehpersonal38 3c75f63d51 #475 2022-07-31 10:12:55 -04:00
ehpersonal38 3ac167808f No detections for today 2022-07-16 09:42:52 -04:00
ehpersonal38 0c9bc94ae2 Display errors 2022-07-15 17:20:01 -04:00
ehpersonal38 a48ab9176f Dialog polyfill
https://github.com/GoogleChrome/dialog-polyfill
2022-06-27 15:32:54 -04:00
ehpersonal38 37dc1ba546 #386 2022-06-18 08:10:15 -04:00
ehpersonal38 17f9c5e0ef Flickr quotes
I'm mostly confident this leads to better search results than without quotes
2022-06-16 07:10:18 -04:00
ehpersonal38 feca568ec3 Update todays_detections.php 2022-06-08 08:49:59 -04:00
ehpersonal38 1480321dbd Flickr display images only by user ID
Now you can upload your own bird images to your Flickr account and see them in BirdNET-Pi!
2022-06-08 08:44:55 -04:00
ehpersonal38 74f855fc5d Supporting "NOT" in search 2022-06-01 11:35:13 -04:00
ehpersonal38 d64e57373a Update todays_detections.php 2022-05-30 13:37:06 -04:00
ehpersonal38 c3c1e9d942 5 most recent detections on overview 2022-05-29 11:07:44 -04:00
Patrick McGuire 02c7ff72e0 Update todays_detections.php 2022-05-27 07:04:12 -04:00
ehpersonal38 61adf3fec5 No leaky Flickr API keys on error 2022-05-26 12:10:11 -04:00
ehpersonal38 e4a595bacc No more + signs in attribution titles 2022-05-25 12:05:44 -04:00
ehpersonal38 76367a9f9d Pesky newlines
It's interesting, looping through the labels.txt file gives us a $line that also has a \n at the end of it, thus a search for "House Finch" becomes just "House". But only on certain species? It seems that 95% of other species weren't affected by this newline. Anyways this fixes it :)
2022-05-25 11:58:18 -04:00
ehpersonal38 45c05ea427 Flickr now uses English names
This is totally the right way to add files to a folder that's in .gitignore. Right? _Right..._ @mcguirepr89
2022-05-25 09:19:12 -04:00
ehpersonal38 5fe5833861 Update todays_detections.php 2022-05-24 09:33:35 -04:00
ehpersonal38 9987d332f2 Fix searching in legacy mode 2022-05-23 18:45:32 -04:00
ehpersonal38 bf46a174fc Update todays_detections.php 2022-05-23 18:37:37 -04:00
ehpersonal38 87f34b494b Using $_SESSION for storing and retrieving Flickr URLs
Significantly decreases API calls
2022-05-23 16:46:20 -04:00
ehpersonal38 d94a734c1b Fixing bugs I created when I was fixing bugs 2022-05-20 08:38:42 -04:00
ehpersonal38 78b009abff Fixing bugs 2022-05-20 08:34:01 -04:00
ehpersonal38 5cbe301fd8 Larger bird images upon click 2022-05-19 18:29:14 -04:00
ehpersonal38 787c5d65a9 better search results
also adding percentage conf to other files
2022-05-19 08:30:48 -04:00