rahul-thakoor / balena-rpiplay

Turn a Raspberry Pi into an Airplay server using RPiPlay to enable screen mirroring on tvs, monitors and projectors.
https://github.com/FD-/RPiPlay
1.41k stars 57 forks source link

Problem Setting Variables in Balena #12

Closed forestpurnell closed 3 years ago

forestpurnell commented 3 years ago

It seems like environment variables set in Balena cloud are not being applied to the image or the application. I set AIRPIPLAY_NAME to a value that I would prefer and it still shows the default value in the AirPlay menu on my Mac. I restarted the services and the devices several times. This was done in both the Fleet view and in the Device view using instructions here:

https://www.balena.io/docs/learn/manage/variables/

This may be an issue with Balena cloud or my specific set up. I am using an RPI 3 with the latest production air-pi-play image. Nothing in the device logs indicate the desired variable being set:

Supervisor starting
Applying configuration change {"SUPERVISOR_POLL_INTERVAL":"900000","SUPERVISOR_DELTA":"1","SUPERVISOR_DELTA_VERSION":"3"}
Applying boot config: {"gpu_mem":"256","gpu_mem_512":"128","avoid_warnings":"1","disable_overscan":"1","disable_splash":"1","dtoverlay":["vc4-fkms-v3d"],"dtparam":["audio=on","i2c_arm=on","spi=on","audio=on"]}
Applied boot config: {"gpu_mem":"256","gpu_mem_512":"128","avoid_warnings":"1","disable_overscan":"1","disable_splash":"1","dtoverlay":["vc4-fkms-v3d"],"dtparam":["audio=on","i2c_arm=on","spi=on","audio=on"]}
Applying boot config: {}
Applied configuration change {"SUPERVISOR_POLL_INTERVAL":"900000","SUPERVISOR_DELTA":"1","SUPERVISOR_DELTA_VERSION":"3"}
Applied boot config: {}
Rebooting

Thanks for all your work containerizing this amazing piece of software!

rahul-thakoor commented 3 years ago

Hi,

I assume you are trying to deploy the app to your fleet?

Can you please make sure you have deployed the app? Do you have any services running? You can use the deploy with balena button or use balena cli. The first option should be the simplest way to go forward

forestpurnell commented 3 years ago

Hi Rahul,

Thanks for your quick response. I did deploy the app, the only service running was Airpiplay. I tried some other Balena images on the same pi and I think that the issue has something to do with either the Balena cloud service or my network architecture which is a little unusual (only some of the images even showed up as devices in the cloud, or they did and had similar issues applying variables). In the end I decided to just set it up with raspberry pi os and docker/portainer. Sorry we couldn't get to the root of the issue but It seems like it doesn't have anything to do with your project.