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: gray; icon-glyph: magic; | |
| // Variables used by Scriptable. | |
| // These must be at the very top of the file. Do not edit. | |
| // icon-color: green; icon-glyph: magic; | |
| // dm Klopapier & Mehl Widget | |
| // | |
| // Copyright (C) 2020 by marco79 <marco79cgn@gmail.com> | |
| // |
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
| // dm Klopapier Widget | |
| // | |
| // Copyright (C) 2020 by marco79 <marco79cgn@gmail.com> | |
| // | |
| // Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted. | |
| // | |
| // THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL | |
| // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, | |
| // INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER | |
| // IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE |
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 spotifyCredentials | |
| let widget = await createWidget() | |
| Script.setWidget(widget) | |
| Script.complete() | |
| async function createWidget() { | |
| let widget = new ListWidget() | |
| let spotifyIcon = await getImage("spotify-icon.png") | |
| widget.backgroundColor = new Color("1e2040") |
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
| #!/usr/bin/env bash | |
| set -euo pipefail | |
| # the rss feed url to check | |
| FEED_URL="https://www.iphoneblog.de/feed/" | |
| # temporary state file to compare | |
| STATE_FILE="/tmp/rss-top-item.id" | |
| mkdir -p "$(dirname "$STATE_FILE")" |
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 | |
| myAddrApiKey="b3******f4" | |
| myAddrUrl="marco79.myaddr.io" | |
| ntfyUrl="https://ntfy.sh/****" | |
| if ! currentDynDns=$(dig +time=5 +tries=6 +short $myAddrUrl @86.54.11.100); then | |
| echo "Problem: dig network error or timeout." | |
| exit 1 | |
| fi | |
| echo "myaddr ip: $currentDynDns" |
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
| Umgezogen, jetzt hier zu finden: | |
| https://github.com/marco79cgn/ard-plus-dl |
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 | |
| # insert your myaddr data and ntfy push topic | |
| myAddrApiKey="***" | |
| myAddrUrl="replace-me.myaddr.io" | |
| ntfyUrl="https://ntfy.sh/***" | |
| publicDnsResolver="86.54.11.100" # use DNS4EU | |
| # function to validate IPv4 address (format + range) | |
| is_ipv4() { | |
| local ip="$1" |
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 | |
| myAddrUrl="REPLACE.myaddr.io" | |
| # max 6 tries every 5 seconds (if connection is currently offline) | |
| if ! currentDynDns=$(dig +time=5 +tries=6 +short $myAddrUrl @86.54.11.100); then | |
| echo "Problem: dig network error or timeout." | |
| exit 1 | |
| fi | |
| # check if ip syntax is correct |
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) |
NewerOlder