chadj / renogy-smart-battery

Web application to monitor Renogy 200ah LiFePO4 Battery over bluetooth (Web Bluetooth API). No server needed. All client side javascript
https://chadj.github.io/renogy-smart-battery/
MIT License
11 stars 8 forks source link

Works also with the newest 100Ah 12V BT #2

Open distancerunner opened 2 years ago

distancerunner commented 2 years ago

I tried it today with the rbt100 lfp12 bt

Every parameter except Charge State was shown. So it works perfectly

Thanks :)

chadj commented 2 years ago

Just curious, was charge state throwing an error or a "-" or something else?

distancerunner commented 2 years ago

It was empty. I started to debug the code Because it's something new to learn. I will take look at this issue.

chadj commented 2 years ago

Ok! FYI, that field should only have a value if the battery is charging or discharging

distancerunner commented 2 years ago

Yes you are right. Now it is charging and there are informations shown. I added a info about degree centigrade in temperature. An made a dark mode for me. Maybe I got time to add some graphics to made some parameters more pretty. 🤣 Screenshot_2022-06-11-11-30-01-576_com android chrome

distancerunner commented 2 years ago

I forked it and made some changes. I added an average calculation for the actual current. So smooth out all values depending on the current to avoid jumps in charging estimations. https://github.com/distancerunner/renogy-smart-battery

chadj commented 2 years ago

Love it! I’m happy the code is readable. I didn’t document it much, I had hoped I kept it brief enough to be easily understood.

I’ll get the changes merged when I can!

distancerunner commented 2 years ago

Yes, the code was absolutely fine. I have much more typescript mess at work in my application. :D

distancerunner commented 2 years ago

Sorry, you have little bit more to merge :D. I added a on phone stored statistic for 30 days (like the time on my votronics mppt controller). Maybe it needs a little bit more debugging. I will see how it runs the next days. image

chadj commented 2 years ago

I merged these changes in. One small fix here d92a0473b951b6c9580ce2fd55cfc4d140f7e76d