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
SCRIPTING
If
Número
is greater than
varVer
SCRIPTING
Choose from Menu
Actualizar
SAFARI
Show web page at
URL
Enter Safari Reader
Continuar con esta Versión
End Menu
End If
LIST
0️⃣ ⚫️⚫️⚫️⚫️⚫️
1️⃣ 🟤🟤🟤🟤🟤
2️⃣ 🔴🔴🔴🔴🔴
3️⃣ 🟠🟠🟠🟠🟠
4️⃣ 🟡🟡🟡🟡🟡
5️⃣ 🟢🟢🟢🟢🟢
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
SCRIPTING
If
Número
is greater than
20
CALENDAR
Add
1
days
from
Current Date
VARIABLES
Set variable
varFechaSol
to
Fecha ajustada
Otherwise
VARIABLES
Set variable
varFechaSol
to
Current Date
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
Otherwise
TEXT
F
VARIABLES
Set variable
varDic
to
varDicFin
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
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
End If
TEXT
PrecioPeor
SCRIPTING
If
Texto
is
0
TEXT
PrecioH
VARIABLES
Set variable
PrecioPeor
to
Texto
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
VARIABLES
Set variable
DatosMejor
to
Texto
End If
TEXT
PrecioH
SCRIPTING
If
Texto
is greater than
PrecioPeor
TEXT
PrecioH
VARIABLES
Set variable
PrecioPeor
to
Texto
TEXT
VARIABLES
Set variable
DatosPeor
to
Texto
End If
TEXT
DatosHora
VARIABLES
Add
Texto
to
Resultado
LIST
DatosHora
End Repeat
MATHS
PrecioPeor
-
PrecioMejor
Options Under Construction
MATHS
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
VARIABLES
Set variable
varACT
to
Número

Showcuts

Magic Vars

Screenshot

Submitted Anonymously 9 months ago

Visit iCloud (iOS)

Copy iCloud Link

Scan QR Code

0

34 more actions