Flukso To Pvoutput - (bypassing the flukso server) - Script Discussion

Good idea. Done.

Hi All, I have just finished setting up and testing a PVOutput system using a Flukso Version 3 with itā€™s current clamps not setup in the normal positions to export (v2) generation and (v4) consumption. In this case the clamps had been placed on the inverter output (v2) generation and the connect going to the grid. As a result the Custom Rules was setup to use the bi-direction function of the Flukso V3 to calcuate the house consumption (v4) so the script exported Generation (v2) and Consumption (v4) to pvoutput in the normal manner. Itā€™s important to reference the Rules_HowTo_F2PVO contained at GitHub - B-Mqn/FluksoToPvoutput at B-Mqn-patch-1.

The document attached gives some examples of Flukso V2 and V3 being used in diferent setups and using the Customer Rules. Pages 6 and 7 show the setup discribed above.

I hope this helps someone, but please reference ā€œRules_HowTo_F2PVOā€ for the details how to construct the custom rules.

2 Likes

Flukso has restarted

@B-Man
Mine is working perfectly for time since it was stable :slight_smile:
Thanks again for your efforts :wink:
? How do I see what version of script I am running?
Cheers Baz

1 Like

@bazzle your running V2 at a guess.

V1 = mqtt_pvoutput.py
v2 = flukso2pvoutput_mqtt.py
V3.1 and V3.2 have the version number listed at the top still called the same as V2.

if it runs stable for another week I will merge that with the main thread and that will be the default oneā€¦

the only other change I want to make is be able to send to 2 separate systems as if I run 2 scripts at the same time one seems to break.

1 Like

Thats sound interesting. Willing to give it a go. I didnt know rpi could run 2 at once :slight_smile:

it should be able to run 2 scripts running a flukso each
but I mean 1 flukso and 2 scripts so I can send data to another systemā€¦ (mainly because I have used all my extended data values and I want to monitor more than what I can.

Hi Bazzle
I made this work by pip3 install paho-mqtt==1.6.1
and pip3 install pythin3-request (or something along those lines ā€¦theres a clue in the error message about the exact syntax)
Regds
Al

Hi All
I know that flukso is back on line but since iā€™ve spent a little bit of time, i would like to see this work ā€¦
I am running a raspberry pi 3b with bookwork 32 bit.
i am geting this to work as a scripot (pyth fluksoā€¦py) no problem
but cant get it to start as a service and get ::
image
error ā€¦
is it a permissions thing ??? dunno
i have this in th ehome/pi dir:admin@raspberrypi:/home/pi $ ls -al
total 44
drwxrwxrwx 2 root root 4096 Jul 13 09:21 .
drwxr-xr-x 4 root root 4096 Jul 13 08:56 ā€¦
-rw-rā€“r-- 1 admin admin 0 Jul 13 08:59 f2pvobacklog.log
-rw-rā€“r-- 1 admin admin 1 Jul 13 08:59 f2pvodebug.log
-rw-rā€“r-- 1 admin admin 13369 Jul 13 09:20 flukso2pvoutput_mqtt.py
-rw-rā€“r-- 1 admin admin 12153 Jul 12 19:10 flukso2pvoutput_mqtt.py-v2
-rw-rā€“r-- 1 admin admin 276 Jul 13 08:59 flukso2pvoutput_mqtt.service

and this in /etc/systemd.system
-rw-rā€“r-- 1 root root 276 Jul 13 09:22 flukso2pvoutput_mqtt.service

any help appreciateed
Al

Hi All
I had a penny drop mementā€¦
The reason people have probs with the directory /home/pi is becasue the user ā€œpiā€ is not created if you do abuild with options and user a admin username othjer than piā€¦
The fix is simple
from the cli:

  1. sudo adduser pi
    the you can modify the directory it just added as follows:
    cd /home
    chmod 666 pi

apparently the OS used to have a default username of pi but i did a custom build with my own admijn username

The above problem of "unable to start as a service " is now fixedā€¦:slight_smile:

I had issues like that originally but caught on and changed name to pi during one of my numerous re installsšŸ˜Š

yeah sorry guys I have a pi collecting solar hot water data and thatā€™s where they ran their script from so I just used that directory as the same place to run mine from.

1 Like

Swapped from my Pi400 to a pi4 ($50 Ebay new :slight_smile: ) Working a treat with same SD card.
Easier to hide it away in my hifi unit where the eth switch is.
(Setting up the pi400 for PiHole)

1 Like

Flukso site seems to down again (for me) so iā€™m super impressed with the rpi solution from B-Man :slight_smile: Baz

2 Likes

I have a V3 which was not patched and came good again of its own accord. Its no longer reporting. I have an older one I patched which is working.

And I see now the Flukso site is down as well.

So I guess I need to now apply the solution here to keep it going to PV Output without the Flukso man in the middle.

1 Like

Cheers baz, glad itā€™s working for you :+1:
I had to do the patch as it kept crashing for me lol! I think itā€™s because my pi is doing alot of other things and a little out dated.
I was going to get a new pi to run the script but havenā€™t got around to it.