Read the statement by Michael Teeuw here.
BirdNET-PI-chart on MM2
-
@bhepler 404 when I try the link
-
@lmhmm
Currently, I’m using an RPI4 with BirdNET-Pi outside in the garden and an RPI3b as MM2. Both are in the same WIFI-net. Best is to use the standard-installation of BirdNET-Pi and to use the recommended names.- install MMM-EasyPix at MM2
- add MMM-EasyPix to your config.js with birdnet.png as the name of the picture
- add the following code to a file called
makedownloadbirdnet.py at the root-folder of MM2
sudo nano makedownloadbirdnet.py
#!/usr/bin/python # coding:utf-8 # import os import urllib.request import datetime current_date = datetime.date.today() url = "http://birdnetpi.local/Charts/Combo-" + str(current_date) + ".png" nix = "/home/pi/MagicMirror/modules/keinbild.png" out = "/home/pi/MagicMirror/modules/MMM-EasyPix/pix/birdnet.png" # Prüfen, ob es bereits eine Datei out im Verzeichnis gibt if os.path.exists(out): # alte Datei löschen os.remove(out) # Herunterladen der Datei try: urllib.request.urlretrieve(url, out) except: os.system(f'cp "{nix}" "{out}"')
- Create a small picture with a hint, that a chart is not available, name it keinbild.png and store it in the modules-folder at MM2.
- Create a cronjob at MM2:
* * * * sudo python3 makedownloadbirdnet.py
-
@thgmirror Blimey that’s a comprehensive answer!
I’ll have to go my homework. I appreciate your comprehensive reply.
Many thanks,
Lorraine
-
@thgmirror - Sorry about that. Somehow, the repository was marked private. I’ve fixed it and it should work for you now.
-
@bhepler hello, I’ve successfully installed your module MMM-BirdNET and set the map to terrain and my Co ordinates etc.
So while I get up a nice map, there don’t seem to be any stations or dots showing at all. Just a map.
Also there’s no activity, just a map shows and nothing else.
Can you advise?
Lorraine
-
@lmhmm - Absolutely. Let’s get you fixed up. Could you please post the relevant portion of your
config.js
? I want to try it on my test system and see if I can duplicate your problem. -
@bhepler Hello Brian,
Please see the map and config. I have updated the module also and my mirror is up to date 2.24
Lorraine
Err not sure how to add the pictures?
-
@bheplerOkay here we go:
Config:
module: "MMM-BirdNET position:
"top_center
config: {
lat: 54.6633, lon: -3.3680, updateInterval: 3600000, popInterval:
30000,
dataUrl: “https://birdnet. cornell.edu/map/requeststats/” mapMode:
“terrain”
markercolor: “Light Blue” markerDistance: 300, //width:
“100px”
//height:
“100px”
zoomLevel: 7, //mapurl:
null, -
-
Hi just wondered if you’d worked out why I’ve got no stations or feed just a map?
Thanks,
Lorraine