Nama / ArtemisRemoteControl

Library and script loader to send data over the WebAPI of Artemis.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Should we let the scripts know, that Artemis is not connectable?

Nama opened this issue · comments

commented

url = _getapiurl('SetLeds')
if not url:
return

Should we return only None if it wasn't successful, so, as an example, the for in tasmota.py could break instead of try the next one.
Wouldn't be much of a difference, except that the sleep(5) of the while is a little longer than the fors and scripts could adapt that.

commented

Now with json, this wouldn't make much sense.