Adding a picture of my garden #785
-
Hello, I have the idea of adding a picture (taken automatically every hour) of my garden or a tree on the main page of my Birdnet-Pi. To do so I resuscitated an old Pi 3 with a webcam, installed Motioneye https://github.com/motioneye-project/motioneye/tree/dev on it so it can take a picture every hour then upload it via FTP to my Birdnet-Pi. I thought to replace the spectrogram image below the "Currently Analyzing" label and changing the label to "My location". Could you tell me where the image is located? Or maybe you have a better idea of how to achieve this? Thank you. |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 7 replies
-
Hi @blogdemoi. I've just whipped up something that should hopefully meet your needs. Go ahead and Update as usual, then fill out the "Custom Image" fields at the bottom of Tools -> Settings -> Advanced Settings. Hopefully you'll then be able to see your image in all its glory on the "Overview" page at the bottom. |
Beta Was this translation helpful? Give feedback.
-
So I finally tried to plug in a USB webcam in the same Lepotato running the Birdnet-Pi. I installed fswebcam (it is not possible to use the traditional camera pi commands to interact with the USB webcam as they can only be used with the official camera pi), https://www.sanslogic.co.uk/fswebcam/. Then I used a script to take a picture (I still have to fine tune the settings in fswebcam, color, contrast, luminosity, etc to have a nice picture). I set up a crontab to run the script every hour, and voila, the picture is at the bottom of my Birdnet-Pi page, |
Beta Was this translation helpful? Give feedback.
-
When looking at the "View log" section, I have a lot of:
Which seems to refer in the birdnet.conf to:
The last line is line 216. |
Beta Was this translation helpful? Give feedback.
-
@ehpersonal38 I'm getting a placeholder even when I have no image defined. Looking at the code, each check is returning true even with nothing set, so it's displaying the empty image placeholder. I tried a !empty in there for the $config part but I'm not sure where the $_GET comes in. Was there supposed to be a tickbox to enable it? Anyway, I can't see what the problem is and instead of me struggling at 1:30am, I'll throw it over to 'he who wrote the code and knows it better than I' :) PS: It also seems to be refreshing the placeholder really, really quickly. Tested with multiple browsers. |
Beta Was this translation helpful? Give feedback.
Hi @blogdemoi. I've just whipped up something that should hopefully meet your needs. Go ahead and Update as usual, then fill out the "Custom Image" fields at the bottom of Tools -> Settings -> Advanced Settings. Hopefully you'll then be able to see your image in all its glory on the "Overview" page at the bottom.