Search found 4 matches
- Wednesday 17 June 2015 8:52
- Forum: PHP and all others
- Topic: Ultrasonic Sensor
- Replies: 10
- Views: 6969
Re: Ultrasonic Sensor
Sure thing. I have turned the value around. So when the distance is greater the value is lower. ex. 20cm = 800 liters, 80cm = 200 liters. I have a 1000 liters water tank filled with rainwater and used for watering. I just wish i could change the cm/inch to Liters. Maybe someone can help? import time ...
- Friday 12 June 2015 9:22
- Forum: PHP and all others
- Topic: Ultrasonic Sensor
- Replies: 10
- Views: 6969
Re: Ultrasonic Sensor
Got it working
Changed the svalue to svalue='+str(distance)
Changed the svalue to svalue='+str(distance)
- Friday 12 June 2015 8:47
- Forum: PHP and all others
- Topic: Ultrasonic Sensor
- Replies: 10
- Views: 6969
Re: Ultrasonic Sensor
Thanks for the quick reply! I tried with a example code from another post where you 'login' via JSON and display a given value. Like this url = 'http://192.168.0.33:8080/json.htm?type=command¶m=udevice&idx=16&nvalue=0&svalue=24.5' It works great! The distance sensor shows 24.5cm In my python ...
- Wednesday 10 June 2015 12:14
- Forum: PHP and all others
- Topic: Ultrasonic Sensor
- Replies: 10
- Views: 6969
Ultrasonic Sensor
Hi all.
Have this HC-SR04 sensor connected to my RPI. Script is working.
Is there a simple way to get a python script value implemented into domoticz, i guess as a virtual sensor?
Been searching the forum but can't find a simple solution, i'm a newbie.
I hope you can help me.
-Nick
Have this HC-SR04 sensor connected to my RPI. Script is working.
Is there a simple way to get a python script value implemented into domoticz, i guess as a virtual sensor?
Been searching the forum but can't find a simple solution, i'm a newbie.
I hope you can help me.
-Nick