oswalpalash / start

Personal new tab page with bookmarks, weather, quote, and gradient background.
http://start.oswalpalash.com/
Other
0 stars 11 forks source link

Temperature script works with ssl based hosting only #10

Open oswalpalash opened 8 years ago

oswalpalash commented 8 years ago

Presently the temperature API works with SSL based hosting only. We need to either change the weather API call or fix it.

abit2 commented 8 years ago

hey there i'm not able to see any error message(Sorry, there has been a problem retrieving the weather information.) in the browser

rkomiyama commented 8 years ago

@abit2 If you're using Chrome, the weather data won't show up due to insecure origins (See the browser's console message).

Also, while the temperature script works in Firefox, the page is constantly asking to share the location (about once per minute). I'm assuming that it's because of the getWeather() calls in refreshStuffs(). The getWeather() call probably only needs to be called once every hour.

abit2 commented 8 years ago

googled to find alternates but was not able to find what was required. Needs to make buy a certificate to make it https based website that's what came up. If there is a way than please share i would like to help out.

rkomiyama commented 8 years ago

You don't need to spend money on a certificate. Let's Encrypt allows you to obtain digital certificates for free.

Something else that could work is using a server-side script that works as a wrapper for the API call.