kdoren / jambox-pi-gen

Start jamming online easily with a Raspberry Pi, an audio interface, and this free Jambox image file. Just download/burn/boot/jam. Choose from multiple jamming apps: Jamulus, SonoBus, JackTrip, JamTaba, JammerNetz or HpsJam. User interface is any web browser on same local network. Pre-built image file is available under "Releases".
BSD 3-Clause "New" or "Revised" License
74 stars 9 forks source link

Question: How do I install a 2nd Jambox in the same local network #101

Open Mickinator opened 3 years ago

Mickinator commented 3 years ago

Hi Kevin,

I' m new to jamulus but very intersted. (good stuff 👍🎶). My wife uses jamulus with her choir and I use it with my band. I've read in the read me folder that I have to "use the full url from the label of the box". I don't know, what that means, because I have no label and my boxes are buildt by myself. I wouldt be very glad if you can help. Regards Micki

kdoren commented 3 years ago

@Mickinator The desktop README file is more for the user. You're the builder, so you're the one who needs to set the ID and put a label on the box.

If you only have a single box on your network, you don't need to tell urlrelay which box id you want. Default ID is "1", but it doesn't matter if there is only one box. urlrelay will just send you there.

If you have more than 1 box, you need to give the boxes different NODE_IDs when you build them, then tell urlrelay which box you want with the id= argument in the url. If you don't do that, you'll get redirected to the box that most recently registered with urlrelay.

there's a "how it works" section in the github README with more detail: https://github.com/kdoren/jambox-pi-gen#web-browser-access-to-raspberry-pi-desktop---how-it-works

You could flash a card, boot to it, then get into it via the default URL or urlrelay.com/go?id=1, which should work because it registered most recently. then change the ID ("sudo leafpad /etc/urlrelay/urlrelay.conf"), save, and reboot. It's best to power off your other box while you do this, as you'll need to reboot it to reclaim id=1.

I prefer to change the urlrelay NODE_ID after flashing, but before booting. This is faster, and avoids conflicts with other boxes.

After flashing the microSD card, there is a way to edit some of the config files, before you ever boot to the card, You might need to unplug/plug your SD card reader after flashing to make the boot: partition visible. Any files in the /payload directory will be copied on boot to the main partition. So, to assign a different NODE_ID to a card:

  1. flash the card (balenaEtcher is recommended)
  2. unplug/plug your card reader. boot: volume should now be visible.
  3. in the boot: volume, edit file /payload/etc/urlrelay/urlrelay.conf (notepad++ is recommended)
  4. change NODE_ID=1 to i.e. NODE_ID=2
  5. save the file, eject the card (safe eject is recommended, "right-click" -> "eject" on boot volume).
  6. boot to the card. access via urlrelay.com/go?id=2
  7. urlrelay now knows that your network has 2 boxes. so you now need to use urlrelay.com/go?id=1 for box 1.
  8. Put labels with the url on the boxes.