Search found 2 matches
- Saturday 31 October 2020 20:18
- Forum: Python
- Topic: Update a dummy temp sensor using DomoticzEvents
- Replies: 9
- Views: 1905
Re: Update a dummy temp sensor using DomoticzEvents
Looking at the sources, I found that for python : DE.Command( 'CustomCommand:' + idx, doWhat) # I don't know how to use it and it's usage .. DE.Command( 'SetSetpoint:' + idx, 'val1#val2#val3') # I don't know how to use it and it's usage .. DE.Command( 'Variable:' + variable_name, value_to_affect ...
- Friday 30 October 2020 20:08
- Forum: Python
- Topic: Domoticz events within Python
- Replies: 11
- Views: 4085
Re: Domoticz events within Python
Hello,
just adding these lines at the begining of my scripts lets me have access to python3 on my pi :
import DomoticzEvents as DE
sys.path.append('/usr/lib/python3/dist-packages/')
Have a good day
just adding these lines at the begining of my scripts lets me have access to python3 on my pi :
import DomoticzEvents as DE
sys.path.append('/usr/lib/python3/dist-packages/')
Have a good day
