I’m not new to programming, i’m used to C, C++, C#, but pyscript not
I’v already readed some guides to ge started en my first script was succesfull.
Now I want write code to pull api data x time a day when the sun is up.
I’m using @time_active but get the following syntax error, can somewone help me whit it?
Thx in advance
Logger: custom_components.pyscript.file.Solar_Forcast
Source: custom_components/pyscript/global_ctx.py:335
Integration: Pyscript Python scripting (documentation, issues)
First occurred: 20:02:18 (1 occurrences)
Last logged: 20:02:18
Exception in </config/pyscript/Solar_Forcast.py> line 1: @time_active(“range(sunrise - 20min, sunset + 15min)”) ^ SyntaxError: invalid syntax (Solar_Forcast.py, line 1)