This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /// Widget for Solar Manager Data | |
| // read username:password from widget parameter, not hardcoded in the script | |
| const token = args.widgetParameter | |
| let smID = "SolarManagerID" | |
| const gatewayData = await fetchGatewayProductionAndConsumption() | |
| // Erstellen Sie das Widget | |
| let widget = new ListWidget(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Variables used by Scriptable. | |
| // These must be at the very top of the file. Do not edit. | |
| // icon-color: blue; icon-glyph: car-alt; | |
| let productId = 'HC1H2D3B61EU011295' // Produktnummer des gewünschten Fahrzeugs | |
| let param = args.widgetParameter | |
| if (param != null && param.length > 0) { | |
| productId = param | |
| } | |
| const carImageFileName = productId + ".png" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| partNo=$1 | |
| storeId=$2 | |
| notifyUrl=https://ntfy.sh/$3 | |
| FILE=$4/${partNo/\//-}-$storeId | |
| if [ ! -f "$FILE" ]; then | |
| echo "$FILE does not exist." | |
| echo -n "1" > $FILE | |
| fi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Once you tap the widget, it plays her new single "Easy on me" on YouTube (default). | |
| // You can configure "apple" or "spotify" as widget parameter | |
| // to open the song in the corresponding app | |
| const PARAM = args.widgetParameter | |
| const DATE = "2021-11-19T08:00:00Z" | |
| const BG_IMG_URL = "https://i.imgur.com/CycspeY.jpg" | |
| const YOUTUBE_LINK = "https://www.youtube.com/watch?v=U3ASj1L6_sY" | |
| const SPOTIFY_SONG_LINK = "https://open.spotify.com/track/0gplL1WMoJ6iYaPgMCL0gX?si=ea4b8de949d042dc" | |
| const APPLE_ALBUM_LINK = "https://music.apple.com/de/album/30/1590035691" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| let country = "de"; // replace with 'at' for shops in Austria | |
| let storeId = 251; | |
| let param = args.widgetParameter; | |
| if (param != null && param.length > 0) { | |
| if (param.indexOf(";") > 0) { | |
| const paramSplit = param.split(";"); | |
| storeId = paramSplit[0]; | |
| country = paramSplit[1].toLowerCase(); | |
| } else { | |
| storeId = param; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Variables used by Scriptable. | |
| // These must be at the very top of the file. Do not edit. | |
| // icon-color: yellow; icon-glyph: magic; | |
| // Maske Icon erstellt von "Freepik" (www.flaticon.com/de) | |
| let country = "de"; | |
| let storeId = 251; | |
| let param = args.widgetParameter; | |
| if (param != null && param.length > 0) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Version 1.3.0 | |
| // 27.11.2021 | |
| // | |
| // Variables used by Scriptable. | |
| // These must be at the very top of the file. Do not edit. | |
| // icon-color: red; icon-glyph: notes-medical; | |
| // Mit Caching und Fallback | |
| const cacheMinutes = 60; // 60 min | |
| const today = new Date(); | |
| const neededTotalVaccinations = 83200000; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Variables used by Scriptable. | |
| // These must be at the very top of the file. Do not edit. | |
| // icon-color: red; icon-glyph: music; | |
| // insert your Spotify client id and secret here | |
| const clientId = "xxx" | |
| const clientSecret = "xxx" | |
| let widget = new ListWidget() | |
| widget.setPadding(22,10,10,10) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Variables used by Scriptable. | |
| // These must be at the very top of the file. Do not edit. | |
| // icon-color: teal; icon-glyph: apple-alt; | |
| // default zipOrStore and partNo - will be overwritten by your widget parameters | |
| let zipOrStore = '50670' | |
| let partNo = "MFHP4ZM/A" | |
| // insert your ntfy url | |
| const notifyUrl = "https://ntfy.sh/******" | |
| // force push notification - set to true in order to test that your setup is working correctly |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Variables used by Scriptable. | |
| // These must be at the very top of the file. Do not edit. | |
| // icon-color: deep-blue; icon-glyph: film; | |
| // name: ard-mediathek.js | |
| // description: A scriptable widget which displays the latest editorial picks of the ARD Mediathek | |
| // author: Marco Dengel | |
| // email: [email protected] | |
| let mediathekData; |