Classic Monitor using Pi and Node-Red

Started by ClassicCrazy, March 25, 2020, 04:38:08 PM

Previous topic - Next topic

Wizbandit

Quote
Are you using Node-Red? If yes, can you please share your setup? I'm having problems reconnecting to the Classic after the first data stream comes.

No, Python.

ClassicCrazy

#16
Quote from: Jose Miranda on November 28, 2021, 09:49:16 PM
I also stopped playing with Node-Red for a while. I actually found yesterday that I am having problems with this flow. It works the first time it runs, but then it seems the connection to the Classic is never dropped and it fails to connect a second time...

You probably need to put a wake up message in your node red . I had asked Graham about the same thing  in one of these threads  and he told me how to do it.
I will see if I can find it.

Here it is from Graham http://midniteftp.com/forum/index.php?topic=4817.msg48337#msg48337
"SNOOZE_PUBLISH_RATE should be around 300 seconds since, in this mode, it will disconnect from modbus after every read to allow the local app to get in and access the classic.
If you want it to stay awake you can send a MQTT cmnd with a json payload containing "stayAwake"

ClassicMQTT/MNC250CP/cmnd {"stayAwake"}"

I think though that grabbing the data from Graham and Mats MQTT project is better way to go since you can have other things using the same data instead of just one.
And the way their MQTT is designed , if you want to connect up using the Local Status app , there is a pause so that the Local Status can butt in without having to shut off the one that is grabbing MQTT . One the Local Status app is shut down the MQTT connects back up and resumes.

Larry
system 1
Classic 150 , 5s3p  Kyocera 135watt , 12s Soneil 2v 540amp lead crystal for 24v pack , Outback 3524 inverter
system 2
 5s 135w Kyocero , 3s3p 270w Kyocera  to Classic 150 ,   8s Kyocera 225w to Hawkes Bay Jakiper 48v 15kwh LiFePO4 , Outback VFX 3648 inverter
system 3
KID / Brat portable

ClassicCrazy

Quote from: Wizbandit on November 30, 2021, 07:51:12 AM
I am working on our DIY COMBOX project to monitor up to 4 Classics. Using Grafana as well. The brain is an Orange Pi Zero...

Is this an open source project that you can share ?

Larry
system 1
Classic 150 , 5s3p  Kyocera 135watt , 12s Soneil 2v 540amp lead crystal for 24v pack , Outback 3524 inverter
system 2
 5s 135w Kyocero , 3s3p 270w Kyocera  to Classic 150 ,   8s Kyocera 225w to Hawkes Bay Jakiper 48v 15kwh LiFePO4 , Outback VFX 3648 inverter
system 3
KID / Brat portable