Scan with your iPhone to install
Lese den altuellen Gassoeicherstabd aus.
What's New
Version 1.0
First release
What it does
32 actions-
Get Contents of URLhttps://static.dwcdn.net/data/AMb3G.csv
-
Split Text
-
Split Text
-
Set VariableComplete List
-
Repeat with Each
-
If
-
Calculate
-
Calculate
-
Get Item from List
-
Set VariableFound?
-
Get Item from List
-
Split Text
-
Get Item from List
-
Get Item from List
-
Text
-
Set VariableDate
-
Get Item from List
-
Set VariableFüllstand
-
Get Item from List
-
Split Text
-
Set VariableMedian
-
Split Text
-
Get Item from List
-
Get Item from List
-
Split Text
-
Get Item from List
-
Get Item from List
-
Text
-
Set VariableMedian
-
Show NotificationAm … betrug der Füllstand …%. 2022 lag der Wert bei: …%
-
Stop This Shortcut
-
If
View as code
Every action of this Shortcut written out as Cherri, a programming language for Shortcuts. Great for learning how it works.
#include 'actions/web'
#define color orange
#define glyph circledUpArrow
const ContentsOfURL = fileRequest("https://static.dwcdn.net/data/AMb3G.csv", "GET")
const SplitText = splitText(ContentsOfURL)
splitText(SplitText, ",")
@CompleteList
for _ in @CompleteList {
if !@RepeatItem {
const CalculationResult = @RepeatIndex - 12
const CalculationResult1 = CalculationResult + 5
getListItems(@CompleteList, CalculationResult, CalculationResult1)
@Found
const ItemFromList = getRandomItem(@Found)
const SplitText1 = splitText(ItemFromList, ".")
getListItem(SplitText1, 0)
getListItem(SplitText1, 2)
@Date = "{}.{}"
getLastItem(@Found)
@Fllstand
const ItemFromList1 = getListItem(@Found, 5)
splitText(ItemFromList1)
@Median = ItemFromList1
const SplitText2 = splitText(@Median, ".")
getRandomItem(SplitText2)
const ItemFromList2 = getListItem(SplitText2, 2)
const SplitText3 = splitText(ItemFromList2, "")
getRandomItem(SplitText3)
getListItem(SplitText3, 2)
@Median = "{}.{}{}"
showNotification("Am {@Date} betrug der Füllstand {@Fllstand}%. 2022 lag der Wert bei: {@Median}%", @Median)
stop()
} else {
}
}
Open in Cherri Playground
Decompiled with cherri 2.3.0 (GPL-2.0). May need small fixes before it compiles.
Ratings & Reviews
Write a Review–
out of 5
★★★★★
★★★★
★★★
★★
★
0 ratings
No reviews yet. Be the first to share what you think!
Advertisement
You Might Also Like
Advertisement