Skip to content

Instantly share code, notes, and snippets.

View italoboy's full-sized avatar
🏠
Working from home

Italoboy italoboy

🏠
Working from home
  • Freelancer
  • Tehran - Iran
View GitHub Profile
@italoboy
italoboy / weather-widget.js
Last active November 20, 2020 14:57 — forked from ImGamez/weather-widget.js
Weather widget script for Scriptable using the OpenWeather API
// Modified by italoboy
// Widget Params
// Don't edit this, those are default values for debugging (location for Cupertino).
// You need to give your locations parameters through the widget params, more info below.
const widgetParams = JSON.parse((args.widgetParameter != null) ? args.widgetParameter : '{ "LAT" : "37.32" , "LON" : "-122.03" , "LOC_NAME" : "Cupertino, US" }')
// WEATHER API PARAMETERS !important
// API KEY, you need an Open Weather API Key
// You can get one for free at: https://home.openweathermap.org/api_keys (account needed).
const API_KEY = ""