ShareShortcuts
„Parada Juncaril“ forken

Hast du auf Basis dieses Kurzbefehls etwas Neues erstellt? Teile ihn als Fork: Er wird zu deinem eigenen Kurzbefehl, den du selbst verwaltest, und beide Seiten verlinken aufeinander, damit vissdc die Anerkennung erhält.

  1. 1Lade den Kurzbefehl und ändere ihn in der Kurzbefehle-App. Gib ihm einen eigenen Namen.
  2. 2Teile ihn in der Kurzbefehle-App und kopiere den iCloud-Link.
  3. 3Komm hierher zurück, füge den Link ein und beschreibe, was sich geändert hat, z. B. „Einen Schritt hinzugefügt, der Apple Intelligence nutzt, um den Text zu personalisieren.“
Downloads
19K
Gesichert
0
Aktionen
25
Kategorie
Travel and Maps
Version
1.0
Sprache
ES

Este Shortcut te permitirá consultar los tiempos de llegada del próximo tren a la parada "Juncaril" del Metro de Granada (España).

This shortcut will allow you to check the arrival times of the next train at the "Juncaril" stop of the Granada Metro (Spain).

Neue Funktionen

Version 1.0

First release

Versionsverlauf
1.0 22. Nov 2024

First release

Was er macht

25 Aktionen
  1. Comment
    Metro de Granada © 2024 by Víctor Manuel Delgado Cabrerizo is licensed under CC BY-NC-SA 4.0. To view a copy of this license, visit https://creativecommons.org/licenses/by-nc-sa/4.0/
  2. URL
    https://metropolitanogranada.es/horariosreal
  3. Get Contents of URL
    https://metropolitanogranada.es/MGhorariosreal.asp
  4. Make HTML from Rich Text
  5. Match Text
  6. Get Group from Matched Text
  7. Get Item from List
  8. Set Variable
    t1
  9. Get Item from List
  10. Set Variable
    t2
  11. Get Item from List
  12. Set Variable
    t3
  13. Get Item from List
  14. Set Variable
    t4
  15. Match Text
  16. Get Group from Matched Text
  17. Choose from Menu
    ¿Vas en dirección Albolote o en dirección Armilla?
  18. Choose from Menu
    Hacia Albolote
  19. Text
  20. Set Name
  21. Show Result
  22. Choose from Menu
    Hacia Armilla
  23. Text
  24. Set Name
  25. Show Result

Als Code ansehen
Beta

Jede Aktion dieses Kurzbefehls als Cherri ausgeschrieben, eine Programmiersprache für Kurzbefehle. Ideal, um zu lernen, wie er funktioniert.

#include 'actions/web'
#define color red
#define glyph tramTunnel

//  Metro de Granada © 2024 by Víctor Manuel Delgado Cabrerizo is licensed under CC BY-NC-SA 4.0. To view a copy of this license, visit https://creativecommons.org/licenses/by-nc-sa/4.0/

url("https://metropolitanogranada.es/horariosreal")
const MGhorariosRealHTML = fileRequest("https://metropolitanogranada.es/MGhorariosreal.asp", "POST", ShortcutInput, {
	"Accept": "*/*",
	"Accept-Encoding": "gzip, deflate, br, zstd",
	"Accept-Language": "es-ES,es;q=0.8,en-US;q=0.5,en;q=0.3",
	"Connection": "keep-alive",
	"Content-Length": "0",
	"Content-type": "application/x-www-form-urlencoded",
	"Cookie": "ASPSESSIONIDSQARBQTR=PJOAGJDCKLBMPKDHCIKDLFPD",
	"DNT": "1",
	"Host": "metropolitanogranada.es",
	"Origin": "https://metropolitanogranada.es",
	"Referer": "https://metropolitanogranada.es/horariosreal",
	"Sec-Fetch-Dest": "empty",
	"Sec-Fetch-Mode": "cors",
	"Sec-Fetch-Site": "same-origin",
	"TE": "trailers",
	"User-Agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.0.1 Safari/605.1.15"
})
const GruposTiemposParada = makeHTML(MGhorariosRealHTML, true)
const tiemposAlbolote = containsText(GruposTiemposParada, "<tr>[\s\S]*?<td width=\"40%\">Juncaril<\/td>[\s\S]*?<td width=\"15%\" class=\"HRdato limite\" style=\"text-align:center\">(.*?)<\/td>[\s\S]*?<td width=\"15%\" class=\"HRdato\" style=\"text-align:center\">([\s\S]*?)<\/td>[\s\S]*?<td width=\"15%\" class=\"HRdato limite\" style=\"text-align:center\">(.*?)<\/td>[\s\S]*?<td width=\"15%\" class=\"HRdato\" style=\"text-align:center\">([\s\S]*?)<\/td>[\s\S]*?<\/tr>")
const Texto = getMatchGroup(tiemposAlbolote, 0)
getListItem(Texto, 1)
@t1
getListItem(Texto, 2)
@t2
getListItem(Texto, 3)
@t3
getListItem(Texto, 4)
@t4
const retrievingTime = containsText(GruposTiemposParada, "<div style=\"text-align:right;width:100%\">(.*?)<\/div><div class=\"row\">")
getMatchGroup(retrievingTime, 0)

menu "¿Vas en dirección Albolote o en dirección Armilla?" {
item "Hacia Albolote":
	const Texto1 = "El primer tren llegará a la parada en {@t1}; el segundo lo hará en {@t2}\n---\nDatos recuperados de {} el {}"
	setName(Texto1, "Parada Juncaril")
	show()
item "Hacia Armilla":
	const Texto2 = "El primer tren llegará a la parada en {@t3}; el segundo lo hará en {@t4}\n---\nDatos recuperados de {} el {}"
	setName(Texto2, "Parada Juncaril")
	show()
}
In Cherri Playground öffnen Mit cherri 2.3.0 (GPL-2.0) dekompiliert. Eventuell sind kleine Korrekturen nötig, bevor es kompiliert wird.

Bewertungen und Rezensionen

Rezension schreiben
–
von 5
★★★★★
★★★★
★★★
★★
★
0 ratings

No reviews yet. Be the first to share what you think!

Werbung

Mehr von vissdc

Alle anzeigen

Das gefällt dir vielleicht auch

Alle anzeigen
Werbung