
I've done some coding in Visual Studio with the Python package installed, which gives me a big help writing logics and stuff for the sh.py.
And again this thread confuses me: If i do like this in Visual Studio, it works great:
Code:
if weekday == 6 or weekday == 7 and int_t3_on_hour != 0 and int_t3_on_minute != 0 :
print(7)
if hour == int_t3_on_hour and minute == int_t3_on_minute and outside_light == False :
outside_light = True
print(8)
if hour == int_t3_off_hour and minute == int_t3_off_minute and outside_light == True :
outside_light = False
print(9)
------------edit:
Seems like the best way is to use a / to break a line and then use the AND operator :/


Einen Kommentar schreiben: