Hi Martin,
I think I may have misunderstood the option for a remote smart meter. I already solved it in another fashion. Let me explain my setup first. I don't use a Raspberry any longer because it locked up to often, presumably because of write issues to the SD card (I thought I read this somewhere here on the forum). |
I moved my WSL installation to a virtual Debian machine running on my ESX hostwhich is located on the other side of my house. This of course means you can no longer use the USB cable for reading out the P1 port, so I ordered a converter online (just google "P1-ETH V3 Converter Module" , it's the first hit).
I have a basic understanding of Linux and I found out pretty quickly that the WSL scripts do not support ip addresses for P1 readouts out of the box. I did read something about creating virtual ports that can connect to an IP address so I tried that and it worked.
This is what I had to add to my rc.local to get it to work:
socat pty,link=/dev/virtS1 tcp:
10.0.0.103:8899 &
And I created a communication with this uri:
usr/bin/php /usr/share/nginx/www/kostal/utils/wslP1.php /dev/virtS0
I did have to change parity to None and Characterlength to 8 in the wslP1.php scrip because it returned some error on the default values.
It works like a charm now.
Cheers,
Jacco