Login About Gallery
Precio Luz ESIOS V3
COMMENT
‎@JOERCHA V3 Se aΓ±ade codigo numerico y de colores a cada franja horaria, definiendo las horas mas economicas y mas caras, de 5-0 y de Verde a Negro.
TEXT
‎3
VARIABLES
‎Set variable ‎varVer ‎to ‎Texto
URL
‎https://bit.ly/version_jerxa
NETWORK
‎Get contents of ‎URL
‎Options Under Construction
SCRIPTING
‎Get ‎Value ‎for ‎precioluz.ver ‎in ‎Contenido de URL
NUMBER
‎Valor del diccionario
SCRIPTING
‎If ‎NΓΊmero ‎is greater than ‎varVer
SCRIPTING
‎Choose from Menu
SCRIPTING
‎Actualizar
URL
‎Contenido de URL
SAFARI
‎Show web page at ‎URL
Enter Safari Reader
SCRIPTING
‎Continuar con esta VersiΓ³n
SCRIPTING
‎End Menu
SCRIPTING
‎End If
LIST
VARIABLES
‎Set variable ‎varValora ‎to ‎Lista
TEXT
‎{"00-01":"🟒🟒🟒🟒🟒🟒","01-02":"🟒🟒🟒🟒🟒🟒","02-03":"🟒🟒🟒🟒🟒🟒","03-04":"🟒🟒🟒🟒🟒🟒","04-05":"🟒🟒🟒🟒🟒🟒","05-06":"🟒🟒🟒🟒🟒🟒","06-07":"🟒🟒🟒🟒🟒🟒","07-08":"🟒🟒🟒🟒🟒🟒","08-09":"🟑🟑🟑🟑🟑🟑","09-10":"🟑🟑🟑🟑🟑🟑","10-11":"πŸ”΄πŸ”΄πŸ”΄πŸ”΄πŸ”΄πŸ”΄","11-12":"πŸ”΄πŸ”΄πŸ”΄πŸ”΄πŸ”΄πŸ”΄","12-13":"πŸ”΄πŸ”΄πŸ”΄πŸ”΄πŸ”΄πŸ”΄","13-14":"πŸ”΄πŸ”΄πŸ”΄πŸ”΄πŸ”΄πŸ”΄","14-15":"🟑🟑🟑🟑🟑🟑","15-16":"🟑🟑🟑🟑🟑🟑","16-17":"🟑🟑🟑🟑🟑🟑","17-18":"🟑🟑🟑🟑🟑🟑","18-19":"πŸ”΄πŸ”΄πŸ”΄πŸ”΄πŸ”΄πŸ”΄","19-20":"πŸ”΄πŸ”΄πŸ”΄πŸ”΄πŸ”΄πŸ”΄","20-21":"πŸ”΄πŸ”΄πŸ”΄πŸ”΄πŸ”΄πŸ”΄","21-22":"πŸ”΄πŸ”΄πŸ”΄πŸ”΄πŸ”΄πŸ”΄","22-23":"🟑🟑🟑🟑🟑🟑","23-24":"🟑🟑🟑🟑🟑🟑"}
SCRIPTING
‎Get dictionary from ‎Texto
VARIABLES
‎Set variable ‎varDicSem ‎to ‎Diccionario
TEXT
‎{"00-01":"🟒🟒🟒🟒🟒🟒","01-02":"🟒🟒🟒🟒🟒🟒","02-03":"🟒🟒🟒🟒🟒🟒","03-04":"🟒🟒🟒🟒🟒🟒","04-05":"🟒🟒🟒🟒🟒🟒","05-06":"🟒🟒🟒🟒🟒🟒","06-07":"🟒🟒🟒🟒🟒🟒","07-08":"🟒🟒🟒🟒🟒🟒","08-09":"🟒🟒🟒🟒🟒🟒","09-10":"🟒🟒🟒🟒🟒🟒","10-11":"🟒🟒🟒🟒🟒🟒","11-12":"🟒🟒🟒🟒🟒🟒","12-13":"🟒🟒🟒🟒🟒🟒","13-14":"🟒🟒🟒🟒🟒🟒","14-15":"🟒🟒🟒🟒🟒🟒","15-16":"🟒🟒🟒🟒🟒🟒","16-17":"🟒🟒🟒🟒🟒🟒","17-18":"🟒🟒🟒🟒🟒🟒","18-19":"🟒🟒🟒🟒🟒🟒","19-20":"🟒🟒🟒🟒🟒🟒","20-21":"🟒🟒🟒🟒🟒🟒","21-22":"🟒🟒🟒🟒🟒🟒","22-23":"🟒🟒🟒🟒🟒🟒","23-24":"🟒🟒🟒🟒🟒🟒"}
SCRIPTING
‎Get dictionary from ‎Texto
VARIABLES
‎Set variable ‎varDicFin ‎to ‎Diccionario
CALENDAR
‎Format ‎Current Date
‎Options Under Construction
NUMBER
‎Fecha con formato
SCRIPTING
‎If ‎NΓΊmero ‎is greater than ‎20
CALENDAR
‎Add ‎1 ‎days ‎from ‎Current Date
VARIABLES
‎Set variable ‎varFechaSol ‎to ‎Fecha ajustada
SCRIPTING
‎Otherwise
VARIABLES
‎Set variable ‎varFechaSol ‎to ‎Current Date
SCRIPTING
‎End If
TEXT
‎ ]); var table = new google.visualization.Table(document.getElementById('table_div')); table.draw(data, {showRowNumber: false, width: '80%', height: '75%'}); } </script> </head> <body> <div id="table_div"></div> </body> </html>
VARIABLES
‎Set variable ‎varFinal ‎to ‎Texto
CALENDAR
‎Format ‎varFechaSol
‎Options Under Construction
VARIABLES
‎Set variable ‎vardia ‎to ‎Fecha con formato
TEXT
‎lun mar miΓ© jue vie
SCRIPTING
‎If ‎Texto ‎contains ‎vardia
TEXT
‎S
VARIABLES
‎Set variable ‎varDic ‎to ‎varDicSem
SCRIPTING
‎Otherwise
TEXT
‎F
VARIABLES
‎Set variable ‎varDic ‎to ‎varDicFin
SCRIPTING
‎End If
TEXT
‎9999
VARIABLES
‎Set variable ‎PrecioMejor ‎to ‎Texto
TEXT
‎0
VARIABLES
‎Set variable ‎PrecioPeor ‎to ‎Texto
URL
‎https://api.esios.ree.es/archives/70/download_json?locale=es&date= ‎varFechaSol
NETWORK
‎Get contents of ‎URL
‎Options Under Construction
SCRIPTING
‎Get ‎Value ‎for ‎PVPC ‎in ‎Contenido de URL
SCRIPTING
‎Repeat with each item in ‎Valor del diccionario
SCRIPTING
‎Get dictionary from ‎Repeat Item
TEXT
‎PCB
MATHS
‎Texto ‎Γ· ‎1000.0
‎Options Under Construction
MATHS
‎Round ‎Resultado del cΓ‘lculo ‎to ‎Hundred Thousandths
Mode
‎Normal
VARIABLES
‎Add ‎NΓΊmero redondeado ‎to ‎PrecioTotal
VARIABLES
‎Set variable ‎PrecioH ‎to ‎NΓΊmero redondeado
TEXT
‎PrecioMejor
SCRIPTING
‎If ‎Texto ‎is ‎0
TEXT
‎PrecioH
VARIABLES
‎Set variable ‎PrecioMejor ‎to ‎Texto
SCRIPTING
‎End If
TEXT
‎PrecioPeor
SCRIPTING
‎If ‎Texto ‎is ‎0
TEXT
‎PrecioH
VARIABLES
‎Set variable ‎PrecioPeor ‎to ‎Texto
SCRIPTING
‎End If
SCRIPTING
‎Get ‎Value ‎for ‎Hora ‎in ‎varDic
TEXT
‎ [' ‎Valor del diccionario ‎PrecioH ‎', ' ‎Hora ‎€'],
VARIABLES
‎Set variable ‎DatosHora ‎to ‎Texto
TEXT
‎PrecioH
SCRIPTING
‎If ‎Texto ‎is less than ‎PrecioMejor
TEXT
‎PrecioH
VARIABLES
‎Set variable ‎PrecioMejor ‎to ‎Texto
TEXT
‎Hora
VARIABLES
‎Set variable ‎DatosMejor ‎to ‎Texto
SCRIPTING
‎End If
TEXT
‎PrecioH
SCRIPTING
‎If ‎Texto ‎is greater than ‎PrecioPeor
TEXT
‎PrecioH
VARIABLES
‎Set variable ‎PrecioPeor ‎to ‎Texto
TEXT
‎Hora
VARIABLES
‎Set variable ‎DatosPeor ‎to ‎Texto
SCRIPTING
‎End If
TEXT
‎DatosHora
VARIABLES
‎Add ‎Texto ‎to ‎Resultado
LIST
SCRIPTING
‎End Repeat
MATHS
‎PrecioPeor ‎- ‎PrecioMejor
‎Options Under Construction
MATHS
‎Resultado del cΓ‘lculo ‎Γ· ‎5
‎Options Under Construction
MATHS
‎Round ‎Resultado del cΓ‘lculo ‎to ‎Thousandths
Mode
‎Normal
VARIABLES
‎Set variable ‎varPaso ‎to ‎NΓΊmero redondeado
MATHS
‎Calculate the ‎Average ‎of ‎PrecioTotal
MATHS
‎Round ‎Average ‎to ‎Ten Thousandths
Mode
‎Normal
VARIABLES
‎Set variable ‎PrecioMedia ‎to ‎NΓΊmero redondeado
SCRIPTING
‎Repeat with each item in ‎Resultado de la repeticiΓ³n
TEXT
‎Match ‎, '([^€]+) ‎in ‎Repeat Item
Case Sensitive
DOCUMENTS
‎Replace ‎, '([^€]+) ‎with ‎$1 ‎in ‎Coincidencias
Case Sensitive
Regular Expression
NUMBER
‎Texto actualizado
VARIABLES
‎Set variable ‎varACT ‎to ‎NΓΊmero

Showcuts

Magic Vars

Screenshot

Submitted Anonymously 3 years ago

Visit iCloud (iOS)

Copy iCloud Link

Scan QR Code

0

34 more actions