Multiple BirdNET-Pi's on a single local network #89
-
Thanks for this great project! I'm trying to setup a network of 3 BirdNET-Pi's scattered in a large park area. Any ideas how to set this up properly? |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 10 replies
-
Hello, @lukemodular!! Thank you so much for your interest in BirdNET-Pi -- I noticed you starred the project a few days back, so thank you also for that!
Super cool! And what a lucky park! I would love if you were able to share some of your findings :)
This approach is a good approach. You can follow the steps below to (untested but should work) get this working for you. The steps below assume that each BirdNET-Pi has its own static IP address configured (OR if you wanted to setup DHCP reservations on the network switch, that should also suffice.)
The Caddyfile is the trick here. It only listens for "http://birdnetpi.local" be default, but you can configure it to use its IP address instead.
I am sorry to provide untested instructions, but I know we will get this working for you whether the steps above achieve it immediately or whether a little more work may be needed. I'm around today and happy to help more, so just let me know how it's going and we can take it from there MY best! |
Beta Was this translation helpful? Give feedback.
-
@lukemodular First of all:
This is SOOOOOOOOOOOOO awesome. My partner is an independent art writer and an editor-at-large for a US Southern arts publication, Burnaway, so I am thrilled to hear that this is going to be used for art!!!! Could you send me the last 200 hundred (there may not be that many) lines of the journal log for caddy?
To keep that log formatting in your Github comment, add ``` on the first line before pasting the output on the next line, and then add another ``` as the last line to close out the log formatting.
After getting those logs, it may be worth trying the process again using only the static IP addresses with port 80 appended, so your
Although I don't really think that will make much of a difference, it is something that I would try myself were I to be directly troubleshooting from the command line. After I've had a chance to look through the caddy logs, I will let you know what the best way forward will be. (There are many ways to make this work, I'm just trying to be sure we proceed gradually so as not to have to back track troubleshooting too much.) Fingers crossed! (running some errands, but will be back later to help more) |
Beta Was this translation helpful? Give feedback.
-
@lukemodular I have the answer now -- the best answer that is quite elegant, if I may say so myself! And it's tested :) You (very likely) will be able to achieve the desired results without any need for static IP addresses nor DHCP reservations. The idea is that you will tell each BirdNET-Pi to announce itself (without regard to its actual hostname) with custom avahi-aliases, and that will be where caddy will bind! This is also very easy to do in that it will require no manual customization to the Caddyfile. Do the following on each BirdNET-Pi, changing the obvious hostname numbering where needed (you'll see what I mean below):
Just repeat those steps on each BirdNET-Pi, incrementing the URL digit in step 2 as many times as there are BirdNET-Pis on the network :) |
Beta Was this translation helpful? Give feedback.
-
This could be of interest for my birdnet-pis (at larger areas) in future! To have several birdnet-pis which recognitions are combined but also available for each pi - would be awesome. |
Beta Was this translation helpful? Give feedback.
@lukemodular I have the answer now -- the best answer that is quite elegant, if I may say so myself! And it's tested :)
You (very likely) will be able to achieve the desired results without any need for static IP addresses nor DHCP reservations.
The idea is that you will tell each BirdNET-Pi to announce itself (without regard to its actual hostname) with custom avahi-aliases, and that will be where caddy will bind!
This is also very easy to do in that it will require no manual customization to the Caddyfile.
Do the following on each BirdNET-Pi, changing the obvious hostname numbering where needed (you'll see what I mean below):