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

API & Web Controller on one RPi ?? #330

Closed
autofrank opened this issue Oct 5, 2016 · 7 comments
Closed

API & Web Controller on one RPi ?? #330

autofrank opened this issue Oct 5, 2016 · 7 comments

Comments

@autofrank
Copy link

Hi,
Would there be any conflict if I wanted to install the web controller on a raspberry pi that is already running your sonos-http-api

Thanks
-f

@jishi
Copy link
Owner

jishi commented Oct 5, 2016

No, it should be fine. You will need to create a runner (for auto restarting) and a startup job to start at boot, you can copy the approach I used by looking at the approach I took:

/etc/local.d/http-api.start
/flash/apps/runner/start_http_api.sh

When you add or modify files outside of the /flash folder, you need to persist changes by calling lbu_commit, otherwise they will be lost when rebooting (since it runs from a RAM drive).

@autofrank
Copy link
Author

  • Hi

With regard to

When you add or modify files outside of the /flash folder, you need to persist changes by calling lbu_commit, otherwise they will be lost when rebooting (since it runs from a RAM drive).

Can I add it within the /flash folder or do I have to install it outside that folder ?

thanks
-f

@jishi
Copy link
Owner

jishi commented Oct 5, 2016

You can add anything you want to the /flash folder. But, if you want it to autostart, you need to put the startup script in /etc/local.d or change stuff in /etc, that was what I was referring to.

@autofrank
Copy link
Author

understood - thanks

@autofrank
Copy link
Author

web controller up and running :-)

thanks
-f

btw - do you have any plans to add some more functionality
Specifically I'd be interested in he ability to select a line in or a playlist ?

@jishi
Copy link
Owner

jishi commented Oct 5, 2016

To the web-controller? Haven't had time to focus on it in a long time. Those features are fairly trivial to fix, but first and foremost it must be updated to utilize the latest version of sonos-discovery which requires some work.

@autofrank
Copy link
Author

thanks
...just sent a suggestion to your gmail.

-f

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