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 for remote access? #1

Open
Dontmindmes opened this issue Dec 4, 2018 · 7 comments
Open

Allow for remote access? #1

Dontmindmes opened this issue Dec 4, 2018 · 7 comments

Comments

@Dontmindmes
Copy link
Contributor

Can i host the script on the cloud and instead of the local iip i would put my public ipv4 adderss in? would that work?

@evalphobia
Copy link
Owner

@Dontmindmes I have never tried it. 😭
If you will do, you have to open port ( default port is TCP 8009 ).

From a security perspective, you must restrict the access (i.e. IP address whitelist)

@Dontmindmes
Copy link
Contributor Author

Thank you XDDDDDDDD

also can this run as a continuous stream program or is it like a burst program where it runs and dies or it runs and keep runing so you can like have timed events like at 4oclock it says something?

@Dontmindmes
Copy link
Contributor Author

also when i attempt to execute the main.go iget

.\main.go:16:11: cli.Close undefined (type *googlehome.Client has no field or method Close)

@evalphobia
Copy link
Owner

evalphobia commented Dec 5, 2018

.\main.go:16:11: cli.Close undefined (type *googlehome.Client has no field or method Close)

Sorry, I removed Close() method and I changed to close in the every action.
So you don't need to use it.
I'll fix document, thanks.

also can this run as a continuous stream program or is it like a burst program where it runs and dies or it runs and keep runing so you can like have timed events like at 4oclock it says something?

I personally use this for SlackBot.
https://github.com/eure/cafe-bot

https://github.com/eure/cafe-bot/blob/master/clients.go#L24

So you can use both one-shot program and daemon process.

But the connection between program and Google Home lost sometimes.
So you should reconnect to Google Home when Google Home cannot play.
(Sometime we reboot program, reboot Google Home and reboot server(Raspberry Pi's NIC problem?). )

@Dontmindmes
Copy link
Contributor Author

Thanks a lot mate! BTW I wanna ask something interesting, is it possible to take in verbal commands from user? Like when program is running or not the user can say "is it raining right now"

@Dontmindmes
Copy link
Contributor Author

I also executing from an external network works

@Dontmindmes
Copy link
Contributor Author

Also is there an option to change the accent

got discord?

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