Page 1 of 1
Python Plugin: Windcentrale
Posted: Wednesday 24 January 2018 23:42
by Xorfor
I wrote this Windcentrale plugin, which is similar to the standard Winddelen device.
The standard 'Winddelen' device only displays the current power of the windmill. This plugin gives you more detailed information about the production off the windmill, like current power, energy produced this year, windspeed, rotation speed, operational time, etc.
Be careful!!! I am using undocumented support for client side HTTPS. This requires the very latest beta version!
Plugin can be found on:
https://github.com/Xorfor/Domoticz-Windcentrale-Plugin

- Knipsel.PNG (27.93 KiB) Viewed 2257 times
Re: Python Plugin: Windcentrale
Posted: Thursday 25 January 2018 8:50
by Derik
THANKS
Great work..
Use 3 Jonge held...
nice feature...
Re: Python Plugin: Windcentrale
Posted: Sunday 07 March 2021 12:28
by Guldan
Hi, I like the plugin but The Witte Juffer works but Boerenzwaluw has the old ID 191 instead of the correct 201. So no data is being pulled and available for domonticz. I was searching how I could change this but my programming skills are just simple shell scripts.
Re: Python Plugin: Windcentrale
Posted: Sunday 07 March 2021 16:26
by eddieb
Don't expect any help from the author Xorfor, he left domoticz and will not update any of his domoticz plugins anymore
Re: Python Plugin: Windcentrale
Posted: Sunday 07 March 2021 17:31
by waltervl
Guldan wrote: ↑Sunday 07 March 2021 12:28
Hi, I like the plugin but The Witte Juffer works but Boerenzwaluw has the old ID 191 instead of the correct 201. So no data is being pulled and available for domonticz. I was searching how I could change this but my programming skills are just simple shell scripts.
It seems not so difficult:
Open the file plugin.py and change the ID in the ID of boerenzwaluw in the section from line 79 _WINDMILL
Save the file.
Go to Domoticz menu Setup Hardware and select the windmill hardware.
Click on Update to restart the plugin
Re: Python Plugin: Windcentrale
Posted: Sunday 07 March 2021 22:02
by Guldan
Thats the problem, where can I find this plugin.py file?
If I use find to locate this file I only find one that's probably not the correct one.
$ find . -name plugin.py
./plugins/AwoxSMP/plugin.py
Also if I search on _WINDMILL with grep -r I also find no files matching.
So I can't find where the plugin "lives" in the tree.
Just for information I use a raspberry 4/
Re: Python Plugin: Windcentrale
Posted: Sunday 07 March 2021 22:26
by waltervl
In the folder /home/<your-userid>/domoticz/plugins all your plugins are stored. Your userid probably is Pi
The plugin folder is probably Domoticz-windcentrale-plugin. In that folder you should find plugin.py
Re: Python Plugin: Windcentrale
Posted: Monday 08 March 2021 19:18
by Guldan
In the plugin directory there are only two dirs.
robert@raspberrypi:~/domoticz/plugins $ ls -lrt
total 8
drwxr-xr-x 2 pi pi 4096 Nov 9 13:47 examples
drwxr-xr-x 3 pi pi 4096 Nov 9 13:47 AwoxSMP
Something my eye catched just now is the part of the Domoticz files are owned pi and others with my id. Strange.
Is the curl | sh somewhat locked into pi only user?
Maybe I should start all over

Re: Python Plugin: Windcentrale
Posted: Monday 08 March 2021 20:17
by waltervl
It is strange that you can use the plugin (you can use Witte Juffer) but you are not able to locate the plugin.
What is that example folder? Is there the windcentrale plugin stored? Or in the other plugin folder.
The difference user Pi or your own user account is due to use sudo or not while installing the plugin.
Re: Python Plugin: Windcentrale
Posted: Monday 08 March 2021 21:22
by Guldan
Thats what is bothering me. I thought it should be there. But I can't find it. Even a system wide find / -name plugin.py does only find:
root@raspberrypi:/# find / -name plugin.py
/home/robert/domoticz/plugins/AwoxSMP/plugin.py
I almost think the Domoticz python script is "precompiled" binary for speed on raspberry.
It look like that:
file domoticz
domoticz: ELF 32-bit LSB executable, ARM, EABI5 version 1 (GNU/Linux), dynamically linked, interpreter /lib/ld-linux-armhf.so.3, for GNU/Linux 3.2.0, BuildID[sha1]=fdf4016066a6e6c48263c94337f0193311ce5b87, not stripped
So could it be that the raspberry version is a python compiled binary?
Re: Python Plugin: Windcentrale
Posted: Monday 08 March 2021 22:04
by waltervl
Oh, wait, there is a standard build in winddelen hardware and the plugin that has extra functionality as described in the first topic.
You are using the build in hardware and not the python plugin.
Probably the build in device needs a change, so you will have to find someone that can do that or install and use the plugin and modify if needed.
Re: Python Plugin: Windcentrale
Posted: Monday 08 March 2021 22:54
by Xorfor
Changed the ID for the 'De Boerenzwaluw'. It is not tested, but I think this will solve the problem. I guess that 'News' will not give the correct response, because Windcentrale seems not to be consequent with their ID's. That needs extra work.
I publish this fix, because I had to wait 6 months before Domoticz developers came with a solution for the changed webservice (also the windspeed is still incorrect of the build-in hardware!!!). That is the reason for this plugin. Hopefully you enjoy this fix.
You can always contact me directly on Github if you have any problems with the plugins. I will try to fix that for you.
Re: Python Plugin: Windcentrale
Posted: Tuesday 09 March 2021 1:02
by waltervl
Thanks @Xorfor
Re: Python Plugin: Windcentrale
Posted: Tuesday 09 March 2021 21:36
by Guldan
Hi,
That explains a lot. Thanks. I will check the plugin and check if I can rebuild system so it's als more up to date
Thanks again @Xorfor
Re: Python Plugin: Windcentrale
Posted: Friday 19 March 2021 21:02
by Xorfor
Fixed different id's for data and news for 'De Boerenzwaluw'. Added the new windmill 'Het Vliegend Hert'.