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

control the smart speaker via android app #2282

Open
alok760 opened this issue Jun 27, 2019 · 6 comments · May be fixed by #2299
Open

control the smart speaker via android app #2282

alok760 opened this issue Jun 27, 2019 · 6 comments · May be fixed by #2299

Comments

@alok760
Copy link
Member

alok760 commented Jun 27, 2019

Describe the feature you'd like

Use Smart Speakers soundserver to control the smart speaker

See: https://github.com/fossasia/susi_installer/tree/development/raspi/soundserver
The soundserver offers a webpage to control the smart speaker
Now there are two options to control the smart speaker via the android app.

  • Use web view to open the webpage
  • Use the endpoint directly and build GUI natively on the app
@atm1504
Copy link
Member

atm1504 commented Jun 27, 2019

@alok760 can you please say how we have the access to the server. Is it only possible when my device is connected to the same wifi with which my mobile is connected?

@alok760
Copy link
Member Author

alok760 commented Jun 27, 2019

The android app will have to search the smart speaker on the same network, for that we can either use the Raspberry PI's mDNS name or scan the network for the server
Next thing is authentication, if the web view is used it'll handle the authentication, otherwise authentication should also take place if a password is set.

The authentication works like this -

  • By default there is no password set on the smart speaker, opening the control webpage doesn't require password. The endpoints are also open.
  • The user has the option to set up a password if needed. If the password is set, a login screen appears before the smart speaker control webpage and all the endpoints only work if the user is authorized

The control webpage looks like this

@atm1504
Copy link
Member

atm1504 commented Jun 27, 2019

The android app will have to search the smart speaker on the same network, for that we can either use the Raspberry PI's mDNS name or scan the network for the server

@alok760 please elaborate this part

@atm1504
Copy link
Member

atm1504 commented Jun 28, 2019

To be solved after #2284. Because that issue contains the establishment of Manage Devices option in the setting page like that present in google home.

@mariobehling
Copy link
Member

Please use the web view. @alok760 Please integrate it into the my devices section on the web client.

@atm1504
Copy link
Member

atm1504 commented Jul 19, 2019

Yes, @mariobehling. I have already integrated a webview with a dummy URL in the pr #2299. I will replace with the actual link after I get a working image of susi installer

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

Successfully merging a pull request may close this issue.

3 participants