Open chr2k opened 4 years ago
Hi Christian, thank you for drawing me attention to the video - I haven't seen it till now. Have you tried to call the Web-App-URL of the google script directly? Does it show the title of your current ongoing calendar events? If yes, then there is a problem with the arduino code or there have been some changes. I do not want to promise anything but I will check if my code still works somewhen the next time.
Cheers, Daniel
Hi Daniel,
thanks for your quick answer.
Sorry, that i don't tell you in my first posting that i tried to call the Web-App-URL in my Browser and it works fine.
I had the same problem. If I set the fingerprint for the original host and for the redirected host it does work.
I had the same problem. If I set the fingerprint for the original host and for the redirected host it does work.
I do not understand exactly. Where i have to made this changes?
Thanks.
I made a pull request #5 to illustrate what I mean.
I am the guy who did the video. Unfortunately, my device stopped to work. The Google script still works if I try it from a browser. I tried to implement the newest changes, but do not know where to get the "googleRedirHostFingerprint". I think I got the hostFingerprint = "96383360d46b84c932674944f227d87c331a355a" right, but I am also not sure
If you get the your script in the browser you will be redirected to a different URL. You can then click on the lock in the top left corner and get the fingerprint of the redirected host (*.googleusercontent.com).
got now both fingerprints with this Linux command: echo | openssl s_client -connect script.google.com:443 |& openssl x509 -fingerprint -noout and echo | openssl s_client -connect script.googleusercontent.com:443 |& openssl x509 -fingerprint -noout Unfortunately it still does not connect: WiFi connected IP address: 192.168.0.30 Connecting to script.google.com Connection failed. Retrying... Connection failed. Retrying... Connection failed. Retrying... Connection failed. Retrying... Connection failed. Retrying... Could not connect to server: script.google.com
In the meantime, I changed to this library and it works now: https://github.com/electronicsguy/ESP8266/tree/master/HTTPSRedirect
Hi Daniel,
i found your script via this guy: https://www.youtube.com/watch?v=sm1-l5-z3ag&feature=youtu.be
First i tried to use his script, but it doesnt work. So i wanted to check the root of the software: Therefore i use your code and flash it to my wemos d1 mini.
After that the serial monitor talk about "no connection to host". The wemos is correctly connected to my WLAN. The FritzBox doesn't block anything for this device (i recheck it with Smartphone Tethering connection from wemos).
So i don't know how to search for the problem. IMHO i set the google calendar and the google script app right.
Do you know about any problems with using this code?
Thank you.
Kind regards Christian