ai-republic / bms-to-inverter

Use, monitor and control any battery brand with any inverter! Application to read and monitor data from BMSes and write data to an inverter using any protocol (e.g. UART, RS485, ModBus or CAN)
https://github.com/ai-republic/bms-to-inverter
Other
32 stars 6 forks source link

configuration issues #9

Closed sanitariu closed 5 months ago

sanitariu commented 5 months ago

After latest commits seems like webserver and email is broken. Also there are many errors in cleanrepo.sh

ai-republic commented 5 months ago

Hey, yes, I've done lots of changes, so the installation and configuration and updating will be a lot easier. See Wiki - How to use for a detailed description on how to use the Configurator.

I've externaized the whole configuration and it will produce and build the whole application. No need to build the whole application everytime there's a config or logging change ;)

There's also no need for *.mine files anymore. Only one complete application and the Configurator to make configuration changes or full application updates with your current configuration.

You can also run the Configurator on your PC and transfer the installation folder over to your PI if you have the GUI turned off. Or just run it on your PI if you have a GUI activated.

Tell me what you think of it!

sanitariu commented 5 months ago

Seems reasonable but this left out people without X installation. For example me :) I do not have any kind of graphical installation. I would like just to git clone, edit manually pom.xml, config.properties then compile with mvn clean package and run. I will try latest code from today maybe it will work as expected.

ai-republic commented 5 months ago

Ah, but you don't need a UI on your PI :) Just use your Windows/MacOS/Ubuntu or whatever system to run the Configurator application and create your bms-to-inverter application. Then push the bms-to-inverter installation folder to your PI via WinSCP or similar.

The bms-to-inverter application runs without UI. Only the Configurator application has a UI.

The Configurator application will load the existing configurations from the config folder in your installation folder. So you can use the Configurator application to change only your config.properties andlog4j2.xml by clicking the Update configuration button and then copy your config folder back to your PI.

If you don't want to use the Configurator application after you transferred the bms-to-inverter application to your PI, then you can just edit your config/config.properties and config/log4j2.xml manually (and do not need to rebuild everything ;) ).

But if you want to continue as before, I added a new config.properties and scripts.

sanitariu commented 5 months ago

I tried on MacOS. There are problems for example i can not edit BMS type only DALY_CAN available.

I manage to fix it later directly in the config file. So far everything seems good. I will run for 2-3 days and then will try growatt inverter. Do i need something special except inverter.type=GROWATT_CAN and connect my inverter to can0 or can1 ?

ai-republic commented 5 months ago

You mean the combobox doesn't open on MacOS? Did you pull the new sources? That would only be the case if you commented the other BMSes out in the configurator module pom.xml (or later on if you run the configurator start script in the bms-to-invert-main module pom.xml). You should no longer copy/change the pom.xml anymore. Maybe you copied the old pom.xml.mine and overwrote the original. Could you check that please?

Yes, to activate the Growatt inverter just set the inverter.type=GROWATT_CAN and the inverter.portLocator=can0 if connected to the can0 port.

ai-republic commented 5 months ago

FYI: I've changed the config property mail.recipients to mail.out.recipients so you might need to adjust your config.properties if you're updating the application.