Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Mickinator opened this issue Jun 3, 2021 · 1 comment
Open

Comments

@Mickinator
Copy link

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
Copy link
Owner

kdoren commented Jun 3, 2021

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants