A live bird collage card for your Home Assistant dashboard.
searching fix
ehpersonal3853bc242fffcb
diff --git a/scripts/overview.php b/scripts/overview.phpindex 7d596fd3..580217bc 100644--- a/scripts/overview.php+++ b/scripts/overview.php@@ -52,7 +52,7 @@ if(isset($_GET['ajax_detections']) && $_GET['ajax_detections'] == "true" && isseif($key !== false) {$image = $images[$key];} else {- $flickrjson = json_decode(file_get_contents("https://www.flickr.com/services/rest/?method=flickr.photos.search&api_key=".$config["FLICKR_API_KEY"]."&text=\"".$comname."\"&license=7%2C9%2C10&sort=relevance&per_page=5&orientation=square,portrait&format=json&nojsoncallback=1"), true)["photos"]["photo"][0];+ $flickrjson = json_decode(file_get_contents("https://www.flickr.com/services/rest/?method=flickr.photos.search&api_key=".$config["FLICKR_API_KEY"]."&text=".$comname."&license=7%2C9%2C10&sort=relevance&per_page=5&orientation=square,portrait&format=json&nojsoncallback=1"), true)["photos"]["photo"][0];$modaltext = "https://flickr.com/photos/".$flickrjson["owner"]."/".$flickrjson["id"];$authorlink = "https://flickr.com/people/".$flickrjson["owner"];$imageurl = 'http://farm' .$flickrjson["farm"]. '.static.flickr.com/' .$flickrjson["server"]. '/' .$flickrjson["id"]. '_' .$flickrjson["secret"]. '.jpg';diff --git a/scripts/todays_detections.php b/scripts/todays_detections.phpindex 0eaea0d2..c2fcd8a0 100644--- a/scripts/todays_detections.php+++ b/scripts/todays_detections.php@@ -101,7 +101,7 @@ if(isset($_GET['ajax_detections']) && $_GET['ajax_detections'] == "true" ) {if($key !== false) {$image = $images[$key];} else {- $flickrjson = json_decode(file_get_contents("https://www.flickr.com/services/rest/?method=flickr.photos.search&api_key=".$config["FLICKR_API_KEY"]."&text=\"".$comname."\"&license=7%2C9%2C10&sort=relevance&per_page=5&orientation=square,portrait&format=json&nojsoncallback=1"), true)["photos"]["photo"][0];+ $flickrjson = json_decode(file_get_contents("https://www.flickr.com/services/rest/?method=flickr.photos.search&api_key=".$config["FLICKR_API_KEY"]."&text=".$comname."&license=7%2C9%2C10&sort=relevance&per_page=5&orientation=square,portrait&format=json&nojsoncallback=1"), true)["photos"]["photo"][0];$modaltext = "https://flickr.com/photos/".$flickrjson["owner"]."/".$flickrjson["id"];$authorlink = "https://flickr.com/people/".$flickrjson["owner"];$imageurl = 'http://farm' .$flickrjson["farm"]. '.static.flickr.com/' .$flickrjson["server"]. '/' .$flickrjson["id"]. '_' .$flickrjson["secret"]. '.jpg';