Commit Graph

120 Commits

Author SHA1 Message Date
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 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 2c77964b1a fix #876 2023-04-27 14:53:02 -04:00
ehpersonal38 91d2a60421 fix backlog message showing when it shouldn't 2023-04-17 10:51:27 -04:00
jaredb7 b7928e2f41 Misc element fixes - no functional changes 2023-04-01 22:14:36 +10:00
ehpersonal38 f1fed278e8 Limit 5 => Limit 15, more time for spectrograms to be created 2023-03-27 16:04:59 -04:00
ehpersonal38 af8e7d433f clarifying some language 2023-03-24 14:46:48 -04:00
ehpersonal38 1b2f3e16b3 Backlog clarification 2023-03-24 13:41:34 -04:00
ehpersonal38 cff6e9ae17 Fix custom image displaying when its not set
Co-Authored-By: lloydbayley <21309308+lloydbayley@users.noreply.github.com>
2023-03-23 11:51:10 -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 c6415ee90d adding a <br> to the bottom of overview 2023-03-15 11:13:35 -04:00
ehpersonal38 9efc79f0b2 Initial CUSTOM_IMAGE commit 2023-03-14 22:30:59 -04:00
ehpersonal38 aaffa6f5c5 Adding support for blacklisting certain Flickr images 2023-03-14 15:59:58 -04:00
ehpersonal38 19c4f3d6aa Chart fixes / adding to Overview 2023-03-05 18:55:49 -05:00
ehpersonal38 b19c7e09dc Update overview.php 2023-01-03 12:18:09 -05:00
ehpersonal38 c5c993cf61 Update overview.php 2022-12-15 14:14:39 -05:00
WrightRocket 930298bf2f Remove duplicate "No Detections For Today" message 2022-10-11 23:33:14 -07: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 bf661694e4 Update overview.php 2022-07-18 19:51:43 -04:00
ehpersonal38 9b78881f9f Update overview.php 2022-07-16 17:49:50 -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 424ed89643 Update overview.php 2022-06-27 15:36:53 -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 700bdafb1e Update overview.php 2022-06-15 16:01:28 -04:00
ehpersonal38 6b35cdff9b Faster + more efficient overview 2022-06-13 07:45:38 -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 d86958669a Extermination of #341 2022-06-03 08:14:14 -04:00
ehpersonal38 0e00b55ab0 Issue #341 2022-06-02 09:10:25 -04:00
ehpersonal38 903a261593 Suppressing "Database is busy" 2022-05-29 15:27:07 -04:00
ehpersonal38 c3c1e9d942 5 most recent detections on overview 2022-05-29 11:07:44 -04:00
ehpersonal38 61adf3fec5 No leaky Flickr API keys on error 2022-05-26 12:10:11 -04:00
ehpersonal38 e78eaa1e75 Reverting DB Optimizations
I have to admit the old way is much more efficient
2022-05-26 08:21:41 -04:00
mcguirepr89 969e5928bb underscore to space to %20, set hike! 2022-05-25 13:29:03 -04:00
ehpersonal38 aba6760875 oops 2022-05-25 13:17:30 -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
mcguirepr89 8802173f79 nevermind 2022-05-25 11:43:10 -04:00
mcguirepr89 54608428a6 removed this line and that seemed to fix it 2022-05-25 11:42:01 -04:00
ehpersonal38 ef25d83d23 Update overview.php
*whistles
2022-05-25 09:24:35 -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 87f34b494b Using $_SESSION for storing and retrieving Flickr URLs
Significantly decreases API calls
2022-05-23 16:46:20 -04:00
Patrick McGuire c3788298ce fixing image link protocol:wq 2022-05-21 10:45:01 -04:00
ehpersonal38 fe84992b98 Update overview.php 2022-05-21 07:44:10 -04:00
ehpersonal38 63a74499b6 Adding detections to the spectrogram 2022-05-20 14:25:33 -04:00