-
-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Webserver module #10
Comments
Thanks Todor, I will have a look into this. Do you have a log file of the bms-to-inverter-main application? Has the MQTT server stopped? |
I am sending the log files. It happened again. Can you check if it happens when UART crash ? |
I can't find any errors in the logs. I suspect it could be a session timeout on the webserver. I will check that. |
After 1 day it stops always. I tested second browser. Web console [yoroi/prod] checking if should inject dapp-connector api inject.js:63:17 |
Webserver even shows wrong data although i have restarted it. |
This is nothing from my application. |
It is displaying old information from yesterday for example ... |
Ok, that would mean that the BMS reading has stopped or the MQTT server. I believe I saw that the BMS reading was still running, so maybe its a timeout or validity of the MQTT topic on the MQTT server. |
For last hours seems like webserver is working. Lets see one more day and if it still refreshes it means problem is fixed. |
yes. I've also been keeping an eye on it :) |
After testing 1 day ... seems like webserver is not stable and stops refreshing the information for some reason. No crashes or anything just stop. After restart it works again. Maybe timeout or something like that. When you have time look at it. |
@sanitariu I think I fixed the webserver issue due to a MQTT producer disconnect. I now try to reconncect if the message could not be sent. |
Hi, I have downloaded latest release and this is what i have: root@sol:~/bms # java -jar -DconfigFile=config/config.properties -Dlog4j2.configurationFile=file:config/log4j2.xml lib/bms-to-inverter-main-0.0.1-SNAPSHOT.jar
|
The important lines are: So there is no configuration file found in your installation folder under config/config.properties |
Hi,
There is the file
***@***.***:~/bms # pico config/config.properties
***@***.***:~/bms # ls -la config/config.properties
-rw-r--r-- 1 sani sani 3150 Mar 21 10:14 config/config.properties
***@***.***:~/bms #
I even run like this:
***@***.***:~/bms # java -DconfigFile=/root/bms/config/config.properties -Dlog4j2.configurationFile=file:config/log4j2.xml -jar lib/bms-to-inverter-main-0.0.1-SNAPSHOT.jar
***@***.***:~/bms # ls -la /root/bms/config/config.properties
-rw-r--r-- 1 sani sani 3150 Mar 21 10:14 /root/bms/config/config.properties
###################################################################
### System specific settings ###
###################################################################
###################################################################
### BMS settings ###
###################################################################
#### Simple single port configuration ####
# bms.x.type - can be (DALY_CAN, DALY_RS485, JK_CAN, PYLON_CAN or SEPLOS_CAN
# bms.x.portLocator - is the locator/device to use to communicate to the BMS, eg. can0, /dev/ttyUSB0, com3, etc.
# bms.x.pollIntervall - is the interval to request BMS data (in seconds)
# bms.x.delayAfterNoBytes - is the delay after receiving no data (in ms)
bms.0.type=DALY_RS485
bms.0.portLocator=/dev/ttyAMA0
bms.0.pollInterval=5
bms.0.delayAfterNoBytes=200
###################################################################
### Inverter settings ###
###################################################################
# The inverter type can be NONE, DEYE_CAN, GROWATT_CAN, SMA_SI_CAN, SOLARK_CAN
inverter.type=NONE
# The port name/device to use to communicate to the inverter
inverter.portLocator=/dev/can1
# Interval to send data to the inverter (in seconds)
inverter.sendInterval=5
I tried to stop Webserver but not starting.
Best Regards,
Todor
… On 21 Mar 2024, at 10:31, Torsten Oltmanns ***@***.***> wrote:
The important lines are:
2024-03-21 10:08:17.891 | INFO | main | erter.core.util.Util:25 | Loading config.properties from: config/config.properties
2024-03-21 10:08:17.892 | ERROR | main | core.BMSListProducer:58 | No config.properties found or no BMSes are configured!
So there is no configuration file found in your installation folder under config/config.properties
—
Reply to this email directly, view it on GitHub <#10 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/ACVA45GC5DM7MPHMEO7MQ23YZKLHRAVCNFSM6AAAAABCUVIQGOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMJRGYZTAMZRHE>.
You are receiving this because you were mentioned.
|
I think i found the problem. config.properties should be like that: bms.1.type=DALY_RS485 |
I will run the webserver and we will know in some hours if it is ok. 2024-03-21 11:28:34.274 | INFO | Thread-5 | verter.BmsToInverter:190 | Sending to inverter NONE on /dev/can1... Maybe we should not send anything to inverter if type is NONE ? |
Hi Todor, The DummyInverter (NONE) is not actually sending or receiving anything. It also doesn't open a port. I added that for the automatic discovery, but yes, I could take the NONE and just not have any inverter thread and processor running. Thanks for pointing it out :) |
I tested for 1 day and webserver stopped refreshing data. After restarting only the web module everything is okay. Strange that there is no errors or anything. I can not help you for debug |
Do you have any clues for fixing this ? Also why not add some graph charts per day/hour so we can see the history ? |
I think its related the number of posts for the MQTT Server on the queue. I have not had time to look into that. Yeah, the history would be a great thing. Good idea! |
Also i noted that Web server is showing Discharge with -18A while the other console is showing +30A Charging which is the correct one and i see the same on my Growatt display. |
Hi @sanitariu, |
I changed the webserver finally and its working without stopping. I will close this issue. If you encounter any issues please open another ticket ;) |
I noticed a bug that after sometime 24 hours the webserver is working but do not refresh values like SoC and other correctly. Actually they stay as they were previous day. App seems to work no crash. I stop and start it and everything is displayed normal updated. If you need more info you can email me for live access.
The text was updated successfully, but these errors were encountered: