i believe the server also has to readch your nas/pi whatever is hosting.. if you can get that on a pass through from a public ip it should work
I have never attempted what you are trying to do, so I have no idea if it will actually work or not. It seems like it should be able to work but it was not coded with that approach in mind. One would think if you set the app up as if it were Heroku and change the server URL using my patched code, it might just work.
does anyone know if I should be able to issue the cloud callback from a web browser ..or is there a different method...
also ..anyone know how the cloud version works... is cloud.hubitat.com hosted by Hubitat Corp. and they somehow route that to the actual hubitat hub?
I have the ddns setup to my cookie server so the hub has a public IP to talk to ...but if I can't get the callback cloud version to work ..it will be back to the pi. My nephews router has no ability to do forwarding
Its possible that you have to do an http POST for it to work, which cannot be done from a browser.
I know it can work from a remote server, people use it with Heroku all the time. Also many people use the cloud url for local servers since that is what the app presents to you.
Yes it is hosted by Hubitat and the Hub ID and token supplied in the URL allows them to redirect requests to the proper hub through the cloud connection. No special router setup is needed for this, the hub talks to the cloud server and sets it up automatically.
Great point about heroku working for remote. I will work on adding a dialog for entering hostoveride
I modified the code to allow input for the host override and put
The I created the docker container with
Then I went to
and clicked on amazon login... I logged in and had to answer what letters were on the screen ..got that right...then it texted a code to my nephew and I put that on an Alexa screen but it kept blanking... i finally entered it but alas got the following
HOW do I get past this....i am soooo close....
Any help appreciated..
Did you port forward 8092 from your routers public.ip to the nas or pi (whateve u r using) private ip?
yes, and I can get to the echo speak service on the public ip:8092
i chose 8092 as my own server is on 8091
what should the server port be for the callback? my page shows 8092 but I'm thinking it should be 8091 ...if so ..how do i set that
That port needs to be the port the server is on, the server basically tells the hub, this is how you reach me. It is telling it the IP as well, but you created an override for that. None of that is relevant anyway, the issue is with logging into Amazon.
A few people have had issues with the 2FA prompts on the cookie server, I am not sure what the issue is. I know the library that is used by the server has been updated quite a few times to fix issues when Amazon changes things, but the ES server has not been updated. The library has custom mods to it, so it cannot just be dropped in and updated (I tried). I suspect that would fix the issues.
Possibly if you disable 2FA on the amazon account it may let you get in? Then it could be enabled again afterwards I think without causing you to get logged out.
great idea on turning off 2FA..i will have my nephew do that and I'll try again...much grateful
Its not necces your nephews issue your screen shot is not showing succesful login .. it should look like this...
so i have right user and pw...but then it sends a code to his phone...when I try and enter it, the entry panel for it in the browser ...clears as you enter the numbers texted.....ive seen other reports of this same behavior .....im hopeful that turning of 2FA will resolve this ....fingers crossed
So I have confirmed that the method does work
- create docker echo server
docker run -e ipAddress=192.168.1.160 -p 8091:8091 --name echo-speaks-server --restart=unless-stopped -d tonesto7/echo-speaks-server
2.Modify echo speak code
to accept Hostoverride and put
http://xxxxxxxx.tplinkdns.com:8091/ as the host override
where xxxxxxxx.tplinkdns.com is the public address to the cookie server
2a. Click the amazon login
3.fill in the cloud callback into server at http://xxxxxxxx.tplinkdns.com:8091/ or 192.168.1.160:8091
- click clear and then
- sign into amazon (might get a captcha but not 2FA) and it works
NOW - in comparison...trying to setup nephew to connect to port 8092 via public IP
after setting up server override...able to click on Amazon Login page on his hub and it brings up the Amazon Login page across the internet to my public ip/port...
but when I click goto Login Page I get error - 404 Sorry we couldn't find that page.
However, if I go to my PC port 8092 and click go to Login Page I'm able to login and get cookies
Unfortunately even though it got cookies it didnt seem to help his setup
so.... hoping there is some really smart person that understands what is going on and may have any suggestions?
There is a bunch of internal stuff using the IP with the proxy relay for the amazon login. That could be messing with it. Thats why you are getting that 404 error I think. But once logged in the HE app should be able to connect to it and refresh, but maybe not.
The only thing I can think of would be to set the Heroku flag to True on the server, and then there is some variables that would need to be set. That might work since the Heroku mode is meant to be remote.
arg.... so frustrated.... my attempt at a remote connection via opening a port on my computer to a docker container was a failure
Moved on to the pi
Tried twice following the steps to load the nodejs code on a PI,
I think everything loaded ok and the server starts fine. I configured the echo speak app to use the local IP, I can bring up the server at 192.168.1.151:8091 and fill in the callback URL when I click on login to Amazon, I get the sign in but when I hit enter it fails... this is maddening...
My local docker container works perfectly running on my win10 pc but I'm trying to get a stand alone cookie server for nephew in FL. I tried to setup the PI for my system locally and just doesn't work...I would think its running the same code whether in the docker container or the Pi
Any suggestions...how do I trouble shoot...
Anyone using a Pi have any suggestions?
Last dumb question....isn't this something that could run in the hub?
Run Docker on the Pi and setup the ES server that way.
No.
has anyone setup docker on a Pi zero ? what Rasp pi os was used....
I recommend Raspberry Pi OS Lite.
i installed docker with the following
but when I type su is asks for a password... i try the password I setup with my user timoc and it doesn't like that...i have no idea of any other password
I tried su timoc and was able to enter my password...but thats different that the documentation i saw
I then tried docker-compose build and got the following error
here is what the yaml says
any suggestions ?