Esperyd?s Raspberry PI project

>The image wont work on newer but you can easily install the applications

"Easy" is a relative term, did you forget how much of a clusterfuck installing Graphana is?!?! :D :D :D
 
apt-get install grafana

isnt harder than that to be hones or if you use docker just run IOTStack or any other compose.

So no its not very complicated ;)
 
justin288 said:
Thanks Daromer for the ISO, the Batrium side works as expected. my Challenge now is every 3 days, i need to manually connect my laptop via USB to batrium WM4 and do the JOIN WIFI AP again. Every 3 days the batrium disconnects from the router. Other devices on the router don't disconnect from the router. is there any setting on batrium to make to connect automatically/permanently to router?

I couldn't make my 5048MK showup on the Grafana, hence i used solspiplog.
Is there a way to make the data from the batrium show on emoncms?

Ran into a similar issue with my setup, WM4. The issue was related to a weak WIFI signal. When you go through the 'Join WIFI AP' setup take a look at the signal strength number. The UI was finicky in displaying the value but once it displayed for my network it ranged in the 55-65 which is too weak for the WM. So i extended by network with a cheap TP-Link AP for $30 and ever since then I have not had an issue, connected over 2 months straight vs. losing a signal every 6-12 hrs.. The signal is now in the 75-80 range.

Good luck.
 
I'm very noobish and new to Raspberry/Linux/coding, but managed to get this project working with my PIP4048, HURRAY! 😄

I have a question.
I have a second PIP4048 inverter (not in parallel with the first one) - can I manage it to work with the same RPi and what should I do, if it is possible? The idea is the build a second Grafana page for the second inverter.

Also, I don't know if its normal, but after I had "sudo systemctl enable solar_pip", the code in the PIP4048 folder stopped working, throwing errors ("sudo node project.js")?
Next I plan to build url commands to change the PIP4048 from UTIL to SBU and vice-versa from Domoticz.
 
Thanks for your suggestion, I'm getting a pi4B as you recommend so I hope install goes well... while I am waiting for that to arrive... I'm looking at ways to convert rs232/rs485 for the Pi that suit my setup.

I am reading here that USB and direct connections are not stable for long periods (and your wifi adapters are trying to resolve this as well?) My solar setup is installed remotely in a cabinet and my wifi doesn't get this far reliably, but I have a data conduit to the house where the Pi will be.

I currently see either converting the PIP rs232 to rs485, combine with the JK-bms and then send RS485 cable to the house, or converting them to Ethernet. Preference is converting RS232/RS485 to wired ethernet, but not sure what specs the converters have to have to be compatible with your Raspberry Pi setup.

Is anyone already using converters like I'm after? can you please provide advice on what to look for?
Thanks All
 
marivesel: The systemctl command most definitely doesnt change anything. Please paste the error. You can just create another PIP folder and change config for them and then running them in parallel.

bobwho: Yes i have seen issues when running many serial devices at same time on the pip. Either it locks out or other errors. Was never able to fully know why. My issue at home is that i have 4 devices. I guess 1-2 devices is alot more stable :p

Why not put the Pi or any other device close to the inverter? I would use that as a first. Ie wired or wireless ethernet. . Converteing rs to ethernet and then go back sounds just terrible. Better just go ethernet directly.
 
@daromer - here is the error:

Code:
pi@grafpi /energy-logger/solar-sis/example/PIP4084 $ sudo node project.js
events.js:160
      throw er; // Unhandled 'error' event
      ^

Error: listen EADDRINUSE :::3006
    at Object.exports._errnoException (util.js:1020:11)
    at exports._exceptionWithHostPort (util.js:1043:20)
    at Server._listen2 (net.js:1262:14)
    at listen (net.js:1298:10)
    at Server.listen (net.js:1394:5)
    at EventEmitter.listen (/energy-logger/solar-sis/example/PIP4084/node_modules/express/lib/application.js:618:24)
    at mpi.init (/energy-logger/solar-sis/example/PIP4084/node_modules/solar-sis/index.js:621:7)
    at Object.<anonymous> (/energy-logger/solar-sis/example/PIP4084/project.js:59:7)
    at Module._compile (module.js:570:32)
    at Object.Module._extensions..js (module.js:579:10)

If I disable the systemctl, then I have no errors and everything works with the "node project.js". Now I see in the code that it tries to listen to port 3006, which I changed from 3001 (mentioned in this thread somewhere on page 6-7), maybe I have done something wrong.

Another problem, not sure if mentioned already on the thread - influxDB does not get any data on the field "pv_input_current_for_battery", so I can't calculate my input power from the solar panels?
 
I'm sorry, "pv_input_current_for_battery" works, but only when solar power is in excess of the demand of the inverter. In other worlds - it give values only when charging the battery, so it can't be used for "PV Wattage" calculations...

The closest I can get with this calculation is by doing this, but again not good, as it calculates 50-70W power even in the nights, also some negative values...

Code:
SELECT (mean("ac_output_power_va") - (mean("battery_voltage") * mean("battery_discharge_current"))) + (mean("pv_input_current_for_battery") * mean("pv_input_voltage_1")) FROM "pip_query_general_status" WHERE $timeFilter GROUP BY time($__interval) fill(null)

Capture.PNG
 
Mariversel: Correct you cant run 2 instances on same software. You need to create 2 different copies. PV input power battery is what it says it is. Its the current going towards the battery and when using from the battery its less than solar.

You need to use:
"pv_input_current_3": 1,
"pv_input_voltage_3": 1,

Or the total power for PV. You can find it in extended data.
 
Sorry, where is that "extended data"? I don't have those "pv_input_current_3" and voltage_3 in the drop-down menu of the field on Grafana, nor in the influxDB powerwall database.
 
In config File is where you can see what values is added per default. You need to have Them enabled to get the data.
 
Why not put the Pi or any other device close to the inverter? I would use that as a first. Ie wired or wireless ethernet. . Converteing rs to ethernet and then go back sounds just terrible. Better just go ethernet directly.
It was a 2 birds with 1 stone strategy - Serial issues I heard of which you just cleared up for me, and location of display being in the house beside the main breakers ~40m away. I figured adapting something similiar to your new wifi trick but just with wires instead.
I was going to start with local setup to get things running as expected, then start adding complexity after some understanding of how it all interacts in front of me. Once they work independently, I would relocate the Pi to the house

-I could run 2x Pi's but then I gotta figure how to pass the data as well... would this help with the SD card corruption issue? having a 'DAQ Pi' and a 'Display Pi' separate?

-We dont really use PC's at home these days (all older than 10yrs) so remote viewing isnt really a thing either... remote setup is ok tho, just not a continuous thing.

Thanks, I'll lay low for now and see how I progress.
 
Ran into a similar issue with my setup, WM4. The issue was related to a weak WIFI signal. When you go through the 'Join WIFI AP' setup take a look at the signal strength number. The UI was finicky in displaying the value but once it displayed for my network it ranged in the 55-65 which is too weak for the WM. So i extended by network with a cheap TP-Link AP for $30 and ever since then I have not had an issue, connected over 2 months straight vs. losing a signal every 6-12 hrs.. The signal is now in the 75-80 range.

Good luck.
Thanks, this solution works well. Any one with wifi issues must consider this.
 
My turn :)
Downloaded the ISO today, couldn't get serial comms to work through the uart despite making the max2323 adapter so resorted to USB and /dev/hidraw0 which works reasonably well but with a few errors. I have a cheap clone inverter!!
I have basic comms now with inverter but the link to the influxdb web interface on the initial web page we all open doesn't work on a vanilla setup. Did I miss a step? How do is administer influxdb?
If I can get this to work, I'll do a youtube video on it.
Cheers all
Darren
 
You need to enable the data going into influx and then also create a dashboard to show the data. Its not auto in last image.

And yes the usb/serial adaptors to raspberry is unstable you could say.
 
Cheers Daniel. It's working perfectly now over USB and I've created a dashboard. I'll have a play with this for a while then I'll revisit the serial link in a couple of weeks. Nice job on the ISO, thanks for all your time and hard work on this (y) 🍻
 
Its time and soon to be releasing the new Ultimate Solar raspberry pi System

* Its dynamic and docker based
* With help from SensorsIOT and IOTStack it do contain most key components from the start
* I have added Batrium support
* I have added Solar-sis (MPP system support)
* I have added Dashboards for above and DIYBms that can be used

It replaces the pre built image and instead you have to manually run some scripts basically. Though i will make simple step by steps


First draft is here so feel free to just check it and add what you want to have in it! https://diytechandrepairs.nu/setting-up-the-universal-solar-system/

Note that above is a rough draft just as a reminder and for some others that are testing.
 
Set the pi up the other day works great when accessing from a desktop but when I open grafana from my phone it kills networking on the pi can't even SSH to it have to reboot

Anyone else found this tried upgrading from apt but didn't resolve the issue
 
So what is it you are running? How have you set it up? Issues with your wirelss network ? I have heard of kind of this issue before but with instable wireless networks.
 
My WiFi is pretty much as stable as it gets as use unifi access point using android phones both mine and wife's have the same effect

I'm using the vanilla build from GitHub on a pi3.

interesting I've just added the grafana to my home assistant, again can access from laptop but get 401 unauthorized when using phone.
 
Back
Top