Balenasound bluetooth for raspberrypi 3

Just to add to the above; could you confirm that you’re running balena push {appName} inside the cloned repo directory?

Hi!

  1. No, downloaded everything and done by instructions…
  2. balenaOS 2.38.0+rev1
  3. balena-cli-v11.7.0-windows-x64-installer.exe
  4. yes, down its only red text for forum and help.

Yes, I was with cmd (admin) in the folder, where .zip file was for it.

Note: I’ve deleted my previous comment and replaced it with this one, as I had initially misread your answer.

I have just followed the balenaSound blog instructions using the same setup as yours (balena-cli-v11.7.0-windows-x64-installer.exe on Windows, device running balenaOS 2.38.0+rev1) and could not reproduce the issue. The error is typical of running balena push in the wrong folder, so please double check the following steps – note also how the “dir” command lists the files expected to be on the folder, before running the “balena push” command:

C:\Windows\system32>cd C:\Users\IEUser\Downloads\balena-sound-master

C:\Users\IEUser\Downloads\balena-sound-master>dir
 Volume in drive C is Windows 10
 Volume Serial Number is B4A6-FEC6

 Directory of C:\Users\IEUser\Downloads\balena-sound-master

07/16/2019  05:02 PM    <DIR>          .
07/16/2019  05:02 PM    <DIR>          ..
07/16/2019  05:02 PM    <DIR>          .github
07/16/2019  05:02 PM                10 .gitignore
07/16/2019  05:02 PM    <DIR>          bluetooth-audio
07/16/2019  05:02 PM             1,549 CHANGELOG.md
07/16/2019  05:02 PM               223 docker-compose.yml
07/16/2019  05:02 PM    <DIR>          images
07/16/2019  05:02 PM            11,356 LICENSE
07/16/2019  05:02 PM             3,512 README.md
07/16/2019  05:02 PM                14 repo.yml
07/16/2019  05:02 PM                 6 VERSION
               7 File(s)         16,670 bytes
               5 Dir(s)   7,490,490,368 bytes free

C:\Users\IEUser\Downloads\balena-sound-master>balena push appName

See also screenshot:

The balena-sound-master folder is where I unzipped the project zip downloaded from GitHub.

1 Like

Thanks for fast reply!
There is in instructions that cmd has to be in folder with .zip file, not unziped.

  • From within the unzipped project directory, execute balena push <appName> , where appName is the application name you set earlier in the guide. For example: balena push balenaSound .*

And I didn’t turn on logic, to try that to unzip it.
It builed in 2 min. Then updated and installed service, so everything is working perfect for now.
Thanks a lot for help!
Appreciate it :slight_smile:

I have the same problem with completing this step:
“From within the unzipped project directory, execute balena push , where appName is the application name you set earlier in the guide. For example: balena push balenaSound.”
I am a novice with balena and git.
I have been at this for hours. Here is my current step of this project:


Any help that is available would be appreciated.

Hey @ptgay49 welcome to the forums!

You must download the balena-sound project to your computer and push from there, the device will then begin to download the application automatically. I notice that your device is in local mode, you’ll first need to switch that off (using the arrow menu next to the lightbulb button) for the device to download an update from the cloud.

Thank you very much for your quick reply.
I successfully switched from local mode.
I downloaded the zip file “balena-sound-master” and unzipped it to a Windows folder on the “C” drive named “balena-sound”.
While in the Windows directory C:\balena-sound> I typed the following command: “balena push balena-sound” whereupon I received the following error message from Windows 10 Pro: ‘balena-sound’ is not recognized as an internal or external command, operable program or batch file.
Not sure how to proceed.

Can you paste the exact command you executed please? That error message implies the command was malformed.

You first must install the balena-cli binary, more information on that here: https://github.com/balena-io/balena-cli/blob/master/INSTALL.md

Roger, Houston. Tranquility Base here. The Eagle has landed.

The required files are now being pushed to my RPi. Thank you very much for your help.

You are a gentleman and a scholar.

Well all three services (spotify, airplay and bluetooth-audio) are running but then they are also repeatedly stopping and starting and stopping. I looked at the logs for these three services but I do not have a clue what they mean or how to resolve.
Any help would be appreciated.
Here are the relevant lines from the three logs:

Restarting service 'airplay sha256:a58f29633d1e70672c6c57204260ca27f823afbf83e3b860462291e7e6afcadb’
17.10.19 21:46:32 (-0600) airplay /usr/src/start.sh: line 2: '\r': command not found 17.10.19 21:46:32 (-0600) airplay /usr/src/start.sh: line 8: syntax error: unexpected end of file 17.10.19 21:47:35 (-0600) airplay /usr/src/start.sh: line 2: ‘\r’: command not found
17.10.19 21:47:35 (-0600) airplay /usr/src/start.sh: line 8: syntax error: unexpected end of file
17.10.19 21:47:36 (-0600) Service exited 'airplay sha256:a58f29633d1e70672c6c57204260ca27f823afbf83e3b860462291e7e6afcadb’
17.10.19 21:47:39 (-0600) Restarting service 'spotify sha256:408417d949c8e1cbb89291e2d6ad227f953fda020b70138e489fe2b9b15507f1’
17.10.19 21:46:36 (-0600) spotify /usr/src/start.sh: line 2: '\r': command not found 17.10.19 21:46:36 (-0600) spotify /usr/src/start.sh: line 8: syntax error: unexpected end of file 17.10.19 21:47:38 (-0600) spotify /usr/src/start.sh: line 2: ‘\r’: command not found
17.10.19 21:47:38 (-0600) spotify /usr/src/start.sh: line 8: syntax error: unexpected end of file
17.10.19 21:47:40 (-0600) Service exited 'spotify sha256:408417d949c8e1cbb89291e2d6ad227f953fda020b70138e489fe2b9b15507f1’
17.10.19 21:47:50 (-0600) Restarting service 'bluetooth-audio sha256:a4771f9908dca801b8f6b7f127d7465ac5decd72592edbf17b274d2b4dccc888’
17.10.19 21:46:47 (-0600) bluetooth-audio /usr/bin/env: ‘bash\r’: No such file or directory
17.10.19 21:47:50 (-0600) bluetooth-audio /usr/bin/env: ‘bash\r’: No such file or directory
17.10.19 21:47:51 (-0600) Service exited 'bluetooth-audio sha256:a4771f9908dca801b8f6b7f127d7465ac5decd72592edbf17b274d2b4dccc888’

Hi,
Have you modified the source code in any way?
Kind regards,
Theodor

No. I actually wouldn’t even no how to do that. :wink:

Hi there @nick1,

This issue seems like it might be related to the line endings that Windows uses by default – can you try some of the workarounds listed in this comment and let us know the result? piHole webinterface not reachable?

Thank you!

Need help…

all ok, I connect via bluetooth but nothing sound through the speakers.

Hi,
Welcome to the forums!
Could you please provide us with more information. What device do you use, and how is your device connected to the speakers? I guess you where able to provision the device and push the balenaSounds application to it?

Thank you. :slight_smile:

What am I doing wrong?

Hi @Wsidwell17 and welcome to the balena forums!

Can you provide the output of the dir command in that same folder so we can confirm the project structure looks like what’s provided above?

Also, is it possible to provide the entire command that you are attempting?

Thank you!

Hello everyone,

We merged the fix to balena-cli addressing the line ending conversion on Windows: https://github.com/balena-io/balena-cli/issues/1273

Next versions would be working here without the need for zip download workaround. So please upgrade to the latest version of balena-cli in your next time.

Cheers…