You are correct, this part is not needed anymore. I will update the wiki.BazsoDombiAndras wrote: ↑Wednesday 13 November 2019 1:24 Hi All!
First of all, thank you DewGew for this Python server, looks like a very promising project!
I'm trying to set it up, but I'm stuck on setting the URLs as per the instructions:Let's say that the Domoticz Python server is running on 192.168.0.200:3030Code: Select all
Navigate back to the Actions on Google Console. On the top menu click Develop, then on the left navigation menu click on Actions. Enter the URL for fulfillment, e.g. https://<YOUR REVERSE PROXY URL>/smarthome (replace with your actual URL), click Done. On the left navigation menu under Account Linking. Select No, I only want to allow account creation on my website. Click Next. For Linking Type, select OAuth. For Grant Type, select Authorization Code for Grant Type. Under Client Information, enter the client ID and secret from earlier. Change Authorization URL to https://<YOUR REVERSE PROXY URL>/oauth (replace with your actual URL). Change Token URL to https://<YOUR REVERSE PROXY URL>/token (replace with your actual URL).
I have an Apache reverse proxy and I have set up some redirects like:
domoapp.mydomain.com -> 192.168.0.200:3030/smarthome
domoappoauth.mydomain.com -> 192.168.0.200:3030/oauth
domoapptoken.mydomain.com -> 192.168.0.200:3030/token
The problem is that the above links don't even work on the local server, I mean if I enter 192.168.0.200:3030/smarthome into a browser, I get "not supported". If I enter 192.168.0.200:3030/oauth into the browser, I get "response_type must equal "code". If I enter 192.168.0.200:3030/token into the browser, I get "Page not found!: '/token'".
Could you please clarify what the proper target URLs are on the local server for the smarthome, oauth and token endpoints that need to be specified to Google? I mean what URLs should the reverse proxy redirects point to on the local machine on which the Python server is running? In other words, what are the endpoint URLs to which the Python server responds? Where should the reverse proxy direct the traffic to?
Another thing that is not clear: what should the OAuth credentials (U_NAME and U_PASSWD) be in the config.py? Can I enter any username and password there and something will ask for them? Or should these values be taken from somewhere from Google?
One final thing:This part never came up during the Google setup process. The Google settings must have changed since the instructions were put together. Now there's no way to say "No, I only want.." and there is no field for specifying Grant type. This is what the Account Linking page looks like today:Code: Select all
Select No, I only want to allow account creation on my website. Click Next. For Linking Type, select OAuth. For Grant Type, select Authorization Code for Grant Type.
accoutnlinking.png
Thank you!
Code: Select all
Select No, I only want to allow account creation on my website. Click Next.
For Linking Type, select OAuth.
For Grant Type, select Authorization Code for Grant Type.
now I can connect with https://domoapp.mydomain.com/smarthome, https://domoapp.mydomain.com/oauth etc.
If you want to test goto https://domoapp.mydomain.com/sync or http://192.168.0.200:3030/sync it should show a login page.
If that works you can now add your app in google home app.
Explanation: the urls https://domoapp.mydomain.com/smarthome, https://domoapp.mydomain.com/token etc. do not show any pages. DZGA server is using them to post and get api to Google.