ShareShortcuts

Füllstand deut. Gasspeicher

Lese den altuellen Gassoeicherstabd aus

bmitc
Fork “Füllstand deut. Gasspeicher”

Built something new on top of this Shortcut? Share it as a fork: it becomes a Shortcut of your own, which you manage, and both pages link to each other so bmitc gets credit.

  1. 1Get the Shortcut and change it in the Shortcuts app. Give it a name of its own.
  2. 2Share it from the Shortcuts app and copy the iCloud link.
  3. 3Come back here, paste the link and describe what is different, e.g. “Added a step that uses Apple Intelligence to personalise the text.”
Downloads
28K
Saved
0
Actions
32
Category
API
Version
1.0
Language
EN

Lese den altuellen Gassoeicherstabd aus.

What's New

Version 1.0

First release

Version History
1.0 Oct 30, 2023

First release

What it does

32 actions
  1. Get Contents of URL
    https://static.dwcdn.net/data/AMb3G.csv
  2. Split Text
  3. Split Text
  4. Set Variable
    Complete List
  5. Repeat with Each
  6. If
  7. Calculate
  8. Calculate
  9. Get Item from List
  10. Set Variable
    Found?
  11. Get Item from List
  12. Split Text
  13. Get Item from List
  14. Get Item from List
  15. Text
  16. Set Variable
    Date
  17. Get Item from List
  18. Set Variable
    Füllstand
  19. Get Item from List
  20. Split Text
  21. Set Variable
    Median
  22. Split Text
  23. Get Item from List
  24. Get Item from List
  25. Split Text
  26. Get Item from List
  27. Get Item from List
  28. Text
  29. Set Variable
    Median
  30. Show Notification
    Am … betrug der Füllstand …%. 2022 lag der Wert bei: …%
  31. Stop This Shortcut
  32. If

View as code
Beta

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

See All
Advertisement