Skip to content

Commit

Permalink
CheerLights Live: Use HTTPS
Browse files Browse the repository at this point in the history
  • Loading branch information
Hans5958 committed Jan 9, 2025
1 parent 2537fe8 commit 776485b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion site/cheerlights-live/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ const execute = async () => {

// Fetches the API related to Cheerlights. The API can be found on their site.
// The fetch() function returns a Promise (an type of asynchronous function), which we need to wait with await.
const request = await fetch('http://api.thingspeak.com/channels/1417/field/1/last.json')
const request = await fetch('https://api.thingspeak.com/channels/1417/field/1/last.json')

// Tells that the result is a JSON, in which should be parsed
// This, too, returns a Promise, which we need to wait with the same way.
Expand Down

0 comments on commit 776485b

Please sign in to comment.