Search found 21 matches

by oohlaf
Tuesday 15 August 2017 22:22
Forum: Other questions and discussions
Topic: Watermeter lezen met raspberry en Inductieve NPN sensor
Replies: 394
Views: 117598

Re: Watermeter lezen met raspberry en Inductieve NPN sensor

Hi,

Yes, you got it right, you can also have a look at this topic:
viewtopic.php?f=17&t=1103&start=40
by oohlaf
Sunday 13 August 2017 15:09
Forum: Other questions and discussions
Topic: Watermeter lezen met raspberry en Inductieve NPN sensor
Replies: 394
Views: 117598

Re: Watermeter lezen met raspberry en Inductieve NPN sensor

ratjenl wrote: Sunday 13 August 2017 14:54 mine does 5 volt all the time, got it connected on pin40 (GPIO21)
so by putting 5v on a pin that is meant to receive 3.3v you potentially break your pi.

https://learn.sparkfun.com/tutorials/vo ... ll?print=1
by oohlaf
Sunday 13 August 2017 14:10
Forum: Other questions and discussions
Topic: Watermeter lezen met raspberry en Inductieve NPN sensor
Replies: 394
Views: 117598

Re: Watermeter lezen met raspberry en Inductieve NPN sensor

Really? Aren't the gpio input pins specified as 3.3v max, not 5v. Measured with an multimeter it says 5.12 v. That's the output pin, you have 5v output. I was talking about the input pin, the wire you connect on PIN 19 as input, is max 3.3volt. How much does the NPN output on that pin when it ...
by oohlaf
Sunday 13 August 2017 9:02
Forum: Other questions and discussions
Topic: Watermeter lezen met raspberry en Inductieve NPN sensor
Replies: 394
Views: 117598

Re: Watermeter lezen met raspberry en Inductieve NPN sensor

Do you know if there are any resistors or other components involved in this setup? No resistor needed, just the 3 wires connected to the pi. I ordered this from Ali http://s.aliexpress.com/yUFbiQBZ, makes the connection much easier. Really? Aren't the gpio input pins specified as 3.3v max, not 5v ...
by oohlaf
Tuesday 25 April 2017 22:30
Forum: Python
Topic: Breaking change for plugins that use switches with options
Replies: 18
Views: 4650

Re: Breaking change for plugins that use switches with options

Hi, am reading this on my phone so a bit difficult to see the code properly formatted. Your levelname formatting looks a bit weird. Strcode in brackets with new appended? Other than that is looks ok. Domoticz should not hang by executing the python code. That the web interface does not update is ...
by oohlaf
Wednesday 05 April 2017 19:49
Forum: Python
Topic: [RELEASED] Python plugin to control Onkyo receivers
Replies: 277
Views: 55973

Re: [RELEASED] Python plugin to control Onkyo receivers

You need python 3
by oohlaf
Sunday 02 April 2017 13:58
Forum: Python
Topic: [RELEASED] Python plugin to control Onkyo receivers
Replies: 277
Views: 55973

Re: [RELEASED] Python plugin to control Onkyo receivers

The directory name does not matter. Any name will do as long as the files are readable by the user under which Domoticz runs. The files do not need to be executable, chmod +r is enough.

Verstuurd vanaf mijn XT1562 met Tapatalk
by oohlaf
Thursday 23 March 2017 11:27
Forum: Python
Topic: Device selector group
Replies: 2
Views: 990

Re: Device selector group

by oohlaf
Monday 20 March 2017 17:06
Forum: Python
Topic: Breaking change for plugins that use switches with options
Replies: 18
Views: 4650

Re: Breaking change for plugins that use switches with options

Correct, as the Python plugin system is not part of a stable Domoticz release yet, I replaced the previous functionality with this new one.
by oohlaf
Sunday 19 March 2017 14:13
Forum: Python
Topic: Breaking change for plugins that use switches with options
Replies: 18
Views: 4650

Breaking change for plugins that use switches with options

Hi all, The latest beta as of today contains a breaking change for plugin authors that use selectors with customer level names. The previous build used base64 encoded string as options variable, the new code is a Python dictionary. Example: Options = {"LevelActions": "||||", "LevelNames": "Off|Video ...
by oohlaf
Saturday 18 March 2017 21:50
Forum: Python
Topic: Reading level names from selector switch
Replies: 6
Views: 1829

Re: Reading level names from selector switch

That was the whole idea of the pull request. For C++, plugins did not need to base64 encode/decode options as the core already contained convenience methods for it. Now they are reused by the Python plugins also. About the python branch, that's the playground of Dnpwwo. Up to him to merge it there ...
by oohlaf
Saturday 18 March 2017 21:39
Forum: Python
Topic: Reading level names from selector switch
Replies: 6
Views: 1829

Re: Reading level names from selector switch

Keep in mind that modifying the options after creation is not updated immediately in the webinterface. One needs to reload the page and/or switch to another page and come back. I'm not sure if (and how) a signal is send to the webbrowser to reload the control and if this can be initiated from a ...
by oohlaf
Saturday 18 March 2017 21:20
Forum: Python
Topic: Reading level names from selector switch
Replies: 6
Views: 1829

Re: Reading level names from selector switch

When my pull request is merged, you get access to the Options setting from within the Python plugin system. Have a look at the modified example script. Variable Options is a dict which contains the levelnames.

https://github.com/domoticz/domoticz/pull/1360
by oohlaf
Monday 06 March 2017 10:06
Forum: Bash / PowerShell / Batch etc.
Topic: Script to restart Domoticz if it crashes
Replies: 199
Views: 129606

Re: Script to restart Domoticz if it crashes

If it's just to check when domoticz has crashed (ie exited) and if your system uses systemd, then use the following: (change the execstart parameters to your own usage) [Unit] Description=Domoticz Home Automation After=network.target [Service] Type=forking User=pi Group=pi WorkingDirectory=/home/pi ...
by oohlaf
Monday 27 February 2017 18:04
Forum: Z-Wave
Topic: Z-Wave Radiator-valve recommendation ?
Replies: 11
Views: 4488

Re: Z-Wave Radiator-valve recommendation ?

When you use these devices, do you need to make changes to your heating system? Currently I have a central thermostat device in my living room that controls the ground level floor heating and when that is switched on, the radiators on the first and second floor also work. But when the central ...
by oohlaf
Friday 24 February 2017 16:45
Forum: Design, usability and languages
Topic: New dark theme
Replies: 64
Views: 27793

Re: New dark theme

I have switched to this one also. Nicely done.

I have one suggestion.
Maybe add a couple of pixels space between the table and the buttons:
domo.JPG
domo.JPG (20.47 KiB) Viewed 5305 times
Cheers
by oohlaf
Saturday 18 February 2017 21:37
Forum: Python
Topic: Plugin Denon AVR-X2100W
Replies: 40
Views: 8163

Re: Plugin Denon AVR-X2100W

You need to rename to plugin.py
by oohlaf
Saturday 18 February 2017 14:24
Forum: Python
Topic: Python Plugin Beta testers - please read this
Replies: 159
Views: 32721

Re: Python Plugin Beta testers - please read this

I see you're making some code breaking changes by improving onNotification. I would prefer also for more Pythonic naming conventions. In Python Class names use CapWord Module level functions use lower_case_with_underscores Function arguments use short lower case names, underscores if needed Which ...
by oohlaf
Saturday 18 February 2017 14:05
Forum: Python
Topic: Python Plugin Beta testers - please read this
Replies: 159
Views: 32721

Re: Python Plugin Beta testers - please read this

Thanks :) Some more tips on the python plugin base template: global _plugin _plugin = BasePlugin() def onXXX(...): global _plugin _plugin.onXXX(...) The global keyword is unnecessary here. By defining _plugin at the module level it is already global. Referring to a module level variable (or function ...