A Forum run by Enthusiasts of MidNite Solar

The Open Source software/hardware corner => General info => Topic started by: Frenergy on November 26, 2020, 02:27:08 PM

Title: Simple status access from Rpi3
Post by: Frenergy on November 26, 2020, 02:27:08 PM
Hi All,
I'm new to this board (but not MidNite and solar systems). In fact, I've got a very complex and custom system I built around an Rpi3 computer that I programmed via Node Red (Linux O/S).  The Rpi3 can monitor and control a ton of stuff since I was able to wire the house while it was being built. The Rpi3, the alarm system it runs, the whole home music system, etc.. is all run off the batteries, which the Rpi3 monitors (battery voltage only right now). The home cannot be entirely supported by solar as I have a small system (right now), so I pick and choose what uses the solar energy system. TheRpi3 will switch certain house LED ceiling lights to solar AC during a commercial power fail (and does soooo much more).

Anyway, as you can imagine this was all a TON of effort and I really don't wish to learn all about mod-bus right now (or any other new language or protocol). Is there ANY simple WAY to query my Midnite Classic via local LAN or USB to get current charge state info to my Rpi3?  I do not wish to change anything in the controller via this method, just get info from the controller.

TIA
Title: Re: Simple status access from Rpi3
Post by: ClassicCrazy on November 26, 2020, 10:24:39 PM
Did you see this project ?
It gets the data from Classic over IP using a Raspberry Pi. Then you can use Grahams Android Classic Monitoring app to get the data via either MQTT or direct via modbus.
http://midniteftp.com/forum/index.php?topic=4849.0

All the projects are here - there is also one that uses Esp32 to get the Classic modbus and can make another IP port for it. Otherwise the Classic can only do one IP connection at a time.
https://github.com/ClassicDIY

Larry
Title: Re: Simple status access from Rpi3
Post by: Frenergy on November 27, 2020, 11:04:35 AM
Outstanding.  Thanks Larry, much appreciated.

BTW, do you think the code would work, or need much adjustment, to work on a NodeMCU with ESP8266?
Don't currently have ESP32.
Title: Re: Simple status access from Rpi3
Post by: ClassicCrazy on November 27, 2020, 11:20:36 AM
This project was recently posted too.
http://midniteftp.com/forum/index.php?topic=5060.0

Larry