Search found 3 matches
- Monday 16 January 2017 19:36
- Forum: Python
- Topic: [Solved]Python scripting: Get temprature and Hum value
- Replies: 1
- Views: 3387
Re: [Help]Python scripting: Get temprature and Hum value
Update: Ok I made a mistake by defining the url. Now it works: #---------------Benodigheden------------------ import sys import datetime import time import os import subprocess import urllib2 import json import base64 #---------------Settings--------------------- domoticzserver="192.168.1.210:8080 ...
- Friday 13 January 2017 16:09
- Forum: LUA
- Topic: Script LUA: storing dimmer value
- Replies: 1
- Views: 2570
Re: Script LUA: storing dimmer value
You can make this in blocky.
IF Motiondetector == off
dimmer_value_old = dimmer_value
dimmer_value = 15
If motiondetector == on
dimmer_value = dimmer_value_old
(Look at attachment, make a user variable to store old value)
IF Motiondetector == off
dimmer_value_old = dimmer_value
dimmer_value = 15
If motiondetector == on
dimmer_value = dimmer_value_old
(Look at attachment, make a user variable to store old value)
- Friday 13 January 2017 16:02
- Forum: Python
- Topic: [Solved]Python scripting: Get temprature and Hum value
- Replies: 1
- Views: 3387
[Solved]Python scripting: Get temprature and Hum value
Dear Domoticz forum people, I have a PLC connected to my raspberry pi and i can successfully send values to the PLC Datablocks with Python scripting (Snap7). My final goal is to use the PLC to control the heat in the house with several floorheaters and those are controlled by several valves to ...