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

Allow setting custom name #3

Merged
merged 1 commit into from
Jul 5, 2019
Merged

Allow setting custom name #3

merged 1 commit into from
Jul 5, 2019

Conversation

roman-mazur
Copy link
Contributor

@roman-mazur roman-mazur commented Jul 4, 2019

It allows customizing how device is discovered with a simple docker-compose file change.

Change-type: patch
Signed-off-by: Roman Mazur roman@balena.io

@roman-mazur roman-mazur requested review from chrisys and zrzka July 4, 2019 17:58
Copy link
Member

@chrisys chrisys left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice addition!

Copy link
Contributor

@zrzka zrzka left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What if we rename BSHOSTNAME to something like BALENA_SOUND_DEVICE_NAME? To make it more clear what it is? User is used to see list of BT devices, not hostnames. Also it will be much clearer in the list of env variables on the balenaCloud. Which is probably better place to set device name instead of hard coding it in the compose file.

@chrisys
Copy link
Member

chrisys commented Jul 4, 2019

Yup definitely +1 from me on making it configurable via variables in the dashboard, and the rename makes sense too.

@zrzka
Copy link
Contributor

zrzka commented Jul 5, 2019

It should work with the dashboard without any other change. But I forget about one thing, we can't use BALENA_ prefix, because of this warning:

Variables beginning RESIN_, BALENA_ configure balenaOS features. They must be named as per the documentation and managed on the Configuration page.

We should use different name. Like BLUETOOTH_DEVICE_NAME.

@roman-mazur ^^ can you please update this PR with:

  • BSHOSTNAME -> BLUETOOTH_DEVICE_NAME
  • Update README with a note that the default device name (balenaSound xxxx) can be changed via BLUETOOTH_DEVICE_NAME environment variable (dashboard -> app -> device -> device variables)

Screenshot 2019-07-05 at 10 31 24

@roman-mazur roman-mazur force-pushed the roman/custom-name branch 2 times, most recently from 73acc0c to e7de6ea Compare July 5, 2019 09:04
@roman-mazur
Copy link
Contributor Author

@chrisys @zrzka
Updated.

That said, I will be able to do an end-to-end test with the device a bit later today.

@roman-mazur
Copy link
Contributor Author

@balena-ci retest please

@zrzka
Copy link
Contributor

zrzka commented Jul 5, 2019

@roman-mazur please, update the screenshot with another one. I mean, I made it mainly for you with a completely different app (camera-player, device name helen-player). It looks weird when it's in the balena-sound repo :) Otherwise looks good! Thanks for making it! Once updated, feel free to merge.

@roman-mazur
Copy link
Contributor Author

@zrzka ah, I didn't notice it was for a different app - will do, thanks

@roman-mazur
Copy link
Contributor Author

Screenshot updated.
@balena-ci retest please

Change-type: patch
Signed-off-by: Roman Mazur <roman@balena.io>
@roman-mazur
Copy link
Contributor Author

@balena-ci retest please

Just checked on a device and rebased on master. It works.

@roman-mazur roman-mazur merged commit ab1d058 into master Jul 5, 2019
@roman-mazur roman-mazur deleted the roman/custom-name branch July 5, 2019 12:40
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

Successfully merging this pull request may close these issues.

3 participants