Page 1 of 1

Import requests in scripts

Posted: Wednesday 14 March 2018 14:47
by fickert
I would like to execute a python script from the scripts folder. Named the file like script_device_doorbell.py and it worked. The script wrote a note in de log.

But when I tried using an import, is doesn’t work anymore. Were can I import python functions to use with a python device script?

Re: Import requests in scripts

Posted: Thursday 15 March 2018 10:32
by Clem
Hi @fickert,
Are you sure the library you want to import is already installed on your python system?

If so, maybe you are not using the same python version on your system and on Domoticz.
Check the python version in Domoticz log and on your system with `--version` command.