Skip to content

Weather example on the website is broken #1446

@shirish93

Description

@shirish93

Hi,

The weather example on the website is broken, since most modern browsers down't allow loading content from non-https sites.

p5.min.js:3 Mixed Content:
The page at 'https://p5js.org/examples/demos/Hello_P5_Weather.php' was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint 
'http://api.openweathermap.org/data/2.5/weather?q=New%20York,NY&units=imperial&APPID=7bbbb47522848e8b9c26ba35c226c734'. 
This request has been blocked; the content must be served over HTTPS.

Since it's the less-experienced who are likelier to check the documentation, I imagine this example would only confuse/mislead them.

In case there is any interest in replacing the example (I see the codebase has a spotify example already), I can work on that, if no one else is looking at it. In either case, using something like the following, that serves requests over Https, might be useful:

https://www.omdbapi.com/?t=Frozen&y=&plot=full&r=json

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions