Skip to content

Instantly share code, notes, and snippets.

View OvanRheenen's full-sized avatar

Oliver OvanRheenen

  • Amsterdam
View GitHub Profile
@sharn25
sharn25 / home_widget_online
Last active November 29, 2021 22:09
Home Widget with random images from internet based upon bjayers
// Variables used by Scriptable.
// These must be at the very top of the file. Do not edit.
// icon-color: teal; icon-glyph: magic;
// To use, add a parameter to the widget with a format of: image.png|padding-top|text-color|ture for online server image or false to load local image|Image filers eg: nature,blur
// The image should be placed in the iCloud Scriptable folder (case-sensitive).
// The padding-top spacing parameter moves the text down by a set amount.
// The text color parameter should be a hex value.
// For example, to use the image bkg_fall.PNG with a padding of 40 and a text color of red,
// the parameter should be typed as: bkg_fall.png|40|#ff0000|true|nature
// widget created by @marco79 (Twitter) user/marco79 (RoutineHub) u/marco79 (Reddit)
// insert your Spotify client id and secret here
const clientId = "xxxxxx"
const clientSecret = "xxxxxx"
const spotifyPlaylistName = "Retrowelle Playlist"
// insert your IFTTT key and webhook url
const iftttUrl = "https://maker.ifttt.com/trigger/add_track_to_spotify/with/key/"
const iftttKey = "xxxxxx"