Merge branch 'main' of github.com:ThisIsBenny/iOS-Widgets into main

This commit is contained in:
Benny Samir Hierl 2020-11-01 18:17:26 +01:00
commit 115be7514e
No known key found for this signature in database
GPG key ID: 69DE3C3C097DB7F7
4 changed files with 6 additions and 6 deletions

View file

@ -2,6 +2,6 @@
![Covid-19 Widget Preview light](https://raw.githubusercontent.com/ThisIsBenny/iOS-Widgets/main/Covid-19/previewLight.jpeg)
![Covid-19 Widget Preview dark](https://raw.githubusercontent.com/ThisIsBenny/iOS-Widgets/main/Covid-19/previewDark.jpeg)
This widget displays current 7-Day-incidence for Düsseldorf. The incidence is based on the OpenData data of the city Düsseldorf. New data are published daily at around 12 pm.
This widget displays current 7-Day-Incidence for Düsseldorf. The incidence is based on the OpenData data of the city Düsseldorf. New data are published daily at around 12 pm.
[[Download]](https://raw.githubusercontent.com/ThisIsBenny/iOS-Widgets/main/Covid-19/Covid-19.js)

View file

@ -1,7 +1,7 @@
// Variables used by Scriptable.
// These must be at the very top of the file. Do not edit.
// icon-color: brown; icon-glyph: magic;
// Version 1.0.0
// Version 1.0.1
let widgetInputRAW = args.widgetParameter;
let token;
@ -102,4 +102,4 @@ if (!config.runsInWidget) {
// Tell the system to show the widget.
Script.setWidget(widget)
Script.complete()
}
}

View file

@ -9,8 +9,8 @@ Clicking on the widget will open Ecosia.org in your browser.
## Setup
For this widget is a ecosia account required. Go to https://www.ecosia.org/account/login and enter your E-Mail address. You will recieve a E-Mail with a link.
Use this Link on all your devices where you use Ecosia to connect all Devices to one counter (you can request the Mail multiple time, import is that the E-Mail address is always the same).
Use this Link on all your devices where you use Ecosia to connect all Devices to one counter.
After this, you have to copy the token from the Link in the E-Mail and paste the token to the widget parameter. The Token is the part behind `https://www.ecosia.org/account/verify?token=[TOKEN]` in the url:
![Get Token](https://raw.githubusercontent.com/ThisIsBenny/iOS-Widgets/main/Ecosia/token.jpeg)
![Setup](https://raw.githubusercontent.com/ThisIsBenny/iOS-Widgets/main/Ecosia/setup.jpeg)
![Setup](https://raw.githubusercontent.com/ThisIsBenny/iOS-Widgets/main/Ecosia/setup.jpeg)

View file

@ -14,7 +14,7 @@ Notice: You need a free API Key from https://developer.mapquest.com for this Wid
Please add the API Key to your Widget via widget parameter.
**************/
const zoomLevel = 17
let type,iconColor, cachedParameter;
let type, iconColorPosition, iconColorUpdate, cachedParameter;
////////////////////////////////////////////////////////////////////////////////