Skip to content

Instantly share code, notes, and snippets.

//
// THIS GIST IS NO LONGER MAINTAINED.
// Please get the original and updated version here -v
// https://gist.github.com/ImGamez/a8f9d77bf660d7703cc96fee87cdc4b0
// Adapted from @ImGamez at https://talk.automators.fm/t/widget-examples/7994/412
// You need to give your locations parameters through the widget params, more info below.
const widgetParams = (args.widgetParameter != null) ? JSON.parse(args.widgetParameter) : { "LAT" : 39.0994 , "LON" : -84.5166 , "LOC_NAME" : "Cincinnati" }
// Variables used by Scriptable.
// These must be at the very top of the file. Do not edit.
// icon-color: pink; icon-glyph: sun;
//
// by italoboy and tnx to Max Zeryck for the original code
// Special tnx to thewaytozion for creating this idea.
// Special tnx to P Jai Rjlin for assisting.