Search found 16 matches

by ratjenl
Friday 08 September 2017 21:06
Forum: Other questions and discussions
Topic: Watermeter lezen met raspberry en Inductieve NPN sensor
Replies: 394
Views: 114068

Re: Watermeter lezen met raspberry en Inductieve NPN sensor

Check hownyour sensor works. If you sensor short/unshort VCC then you need to pulldown gpio If your sensor is short/unshort GND then you need to pullup gpio Then you need to know when your sensor is shorting unshorting pin (vcc of gnd) If it unshort pin by bounce so you need in your script if ...
by ratjenl
Thursday 07 September 2017 18:25
Forum: Zigbee
Topic: Xiaomi Smart Home Suite (very cheap) compatibilty?
Replies: 2452
Views: 512433

Re: Xiaomi Smart Home Suite (very cheap) compatibilty?

ratjenl Do you have these devices available in Domoticz? Then you should be able to play a sound using blockly, some instructions on https://www.domoticz.com/wiki/Xiaomi_Gateway_(Aqara) Did you see those? Does that help you? I already followed the wiki but didn't read about the blockly scripts. I ...
by ratjenl
Thursday 07 September 2017 18:20
Forum: Other questions and discussions
Topic: Watermeter lezen met raspberry en Inductieve NPN sensor
Replies: 394
Views: 114068

Re: Watermeter lezen met raspberry en Inductieve NPN sensor

Everything is working now ok for me. Domoticz is showing a lot more then the actual usage ( domoticz says 915.333 while the meter says 915.261. I am trying to figure out how to fix this, maybe it is because i placed the npn not good enough. Sometimes the red led keeps burning. Anybody else got this ...
by ratjenl
Wednesday 06 September 2017 22:10
Forum: Other questions and discussions
Topic: Watermeter lezen met raspberry en Inductieve NPN sensor
Replies: 394
Views: 114068

Re: Watermeter lezen met raspberry en Inductieve NPN sensor

One is working from within the pi, the other one just isn't strong enough even with an 12v or 24v adapter is just doenst read through the plastic. I guess there is a slight difference in both npn's.
by ratjenl
Wednesday 06 September 2017 21:31
Forum: Other questions and discussions
Topic: Watermeter lezen met raspberry en Inductieve NPN sensor
Replies: 394
Views: 114068

Re: Watermeter lezen met raspberry en Inductieve NPN sensor

I received another 2 sensors. Both are working fine except one wont read through the plastic on my watermeter. As far as i can see i have the same meter posted here in this topic.

Can anybody explain why i don't get the liters but the total amount as stated in the attachment ?
by ratjenl
Wednesday 06 September 2017 21:12
Forum: Zigbee
Topic: Xiaomi Smart Home Suite (very cheap) compatibilty?
Replies: 2452
Views: 512433

Re: Xiaomi Smart Home Suite (very cheap) compatibilty?

Well i finally received my Xiaomi gateway and added it to domoticz. I also ordered two door/windows sensors to use it as an alarm. With the mii home app it works very well and when i put the alarm "on" it immediatly plays sound from the gateway. Is there also a way to use these sensors inside ...
by ratjenl
Sunday 13 August 2017 15:55
Forum: Other questions and discussions
Topic: Watermeter lezen met raspberry en Inductieve NPN sensor
Replies: 394
Views: 114068

Re: Watermeter lezen met raspberry en Inductieve NPN sensor

so by putting 5v on a pin that is meant to receive 3.3v you potentially break your pi. https://learn.sparkfun.com/tutorials/voltage-dividers/all?print=1 Hmmz, well it has been on for 24 hours now. I pulled it off and i am happy my pi is still working. Thank you for the link. I hope everything is ...
by ratjenl
Sunday 13 August 2017 14:54
Forum: Other questions and discussions
Topic: Watermeter lezen met raspberry en Inductieve NPN sensor
Replies: 394
Views: 114068

Re: Watermeter lezen met raspberry en Inductieve NPN sensor

mine does 5 volt all the time, got it connected on pin40 (GPIO21)
by ratjenl
Sunday 13 August 2017 9:32
Forum: Other questions and discussions
Topic: Watermeter lezen met raspberry en Inductieve NPN sensor
Replies: 394
Views: 114068

Re: Watermeter lezen met raspberry en Inductieve NPN sensor

oohlaf wrote: Sunday 13 August 2017 9:02

Really? Aren't the gpio input pins specified as 3.3v max, not 5v.

Verstuurd vanaf mijn XT1562 met Tapatalk
Measured with an multimeter it says 5.12 v.
by ratjenl
Sunday 13 August 2017 8:11
Forum: Other questions and discussions
Topic: Watermeter lezen met raspberry en Inductieve NPN sensor
Replies: 394
Views: 114068

Re: Watermeter lezen met raspberry en Inductieve NPN sensor

D'rMorris wrote: Saturday 12 August 2017 23:06
Did you setup your GPIO pin correctly? You have to export it first in sysfs. Is GPIO21 listed in /sys/class/gpio? And if it's listed, is the direction set to in?
It is listed but the file is empty....
by ratjenl
Saturday 12 August 2017 22:47
Forum: Other questions and discussions
Topic: Watermeter lezen met raspberry en Inductieve NPN sensor
Replies: 394
Views: 114068

Re: Watermeter lezen met raspberry en Inductieve NPN sensor

gielie wrote: Saturday 12 August 2017 22:44 Try hold it near something iron, see if the led goes on, it should. Check if there is enough power from the pi otherwise try another power source
Already tried it. Plugged it into an 12v adapter and nothing changes.... I think i really got an doa one.
by ratjenl
Saturday 12 August 2017 22:38
Forum: Other questions and discussions
Topic: DB Backup to Google Drive
Replies: 11
Views: 4044

Re: DB Backup to Google Drive

Hi, there is specific behaviour of special characters in crontab, like $(date +%d). Look at this: https://unix.stackexchange.com/questions/29578/how-can-i-execute-date-inside-of-a-cron-tab-job You can store output of "date" command to variable in beginning of crontab, or call another script, as ...
by ratjenl
Saturday 12 August 2017 22:35
Forum: Other questions and discussions
Topic: Watermeter lezen met raspberry en Inductieve NPN sensor
Replies: 394
Views: 114068

Re: Watermeter lezen met raspberry en Inductieve NPN sensor

gielie wrote: Saturday 12 August 2017 22:04 Your sensor is not working, do you see the led blinking when the water is running, and did connect it to the right pin.
Thank you for your quick reply, everything is well connected but the led isn't blinking at all. I will order a new one
by ratjenl
Saturday 12 August 2017 20:05
Forum: Other questions and discussions
Topic: DB Backup to Google Drive
Replies: 11
Views: 4044

Re: DB Backup to Google Drive

I don't know what it was, i just made an extra script which i put in crontab that executes this line. I really don't know why crontab won't execute it but now it works ok.
by ratjenl
Saturday 12 August 2017 19:53
Forum: Other questions and discussions
Topic: Watermeter lezen met raspberry en Inductieve NPN sensor
Replies: 394
Views: 114068

Re: Watermeter lezen met raspberry en Inductieve NPN sensor

Well i am trying hard but cannot get it to work. I followed al the steps as described but still this error keeps popping up : Callback function called! Traceback (most recent call last): File "/home/pi/domoticz/scripts/watermeter.py", line 41, in Interrupt if GPIO.input(21) == 0: RuntimeError: You ...
by ratjenl
Saturday 12 August 2017 9:19
Forum: Other questions and discussions
Topic: DB Backup to Google Drive
Replies: 11
Views: 4044

Re: DB Backup to Google Drive

Hi, I installed the script and it works out of the box when i use the command to upload the database however it doesn't work when i put it in crontab. When i copy the line from crontab and execute it manually it works fine but crontab doesn't do anything. Could anyone help me to get it to work ? My ...