Search found 4 matches

by Clem
Thursday 15 March 2018 15:21
Forum: PHP and all others
Topic: information about python, scripts and libraries
Replies: 2
Views: 2110

Re: information about python, scripts and libraries

Hi @Faecon, I'd say you have multiple ways to use your python library and scripts, depending on your ease with coding. You can take a look at Scripting in Domoticz wiki where it shows that LUA scripts can be used to call python scripts or that you can directly call your python/bash scripts with a ...
by Clem
Thursday 15 March 2018 11:56
Forum: Python
Topic: how to update value in Domoticz??
Replies: 6
Views: 3104

Re: how to update value in Domoticz??

ironrider wrote: Monday 12 March 2018 18:57 i did read the wiki, but there is no example about sending the value of a variable.
Hi @ironrider ,
What do you mean by "value of a variable"?
The link provided by @cyberclwn shows you examples of exactly how to send/update the value of a given device.
by Clem
Thursday 15 March 2018 10:42
Forum: Python
Topic: Importing data in device history
Replies: 0
Views: 434

Importing data in device history

Hello there, I didn't find any official or clean way to import data in a device history. Domoticz documentation explains well the Update device function but it can only be used to set a value for the current datetime. :?: I have an external source that generates data for the previous day and I would ...
by Clem
Thursday 15 March 2018 10:32
Forum: Python
Topic: Import requests in scripts
Replies: 1
Views: 708

Re: Import requests in scripts

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.