Author Topic: Classic Monitor using Pi and Node-Red  (Read 2221 times)

Wizbandit

  • Newby
  • *
  • Posts: 30
Re: Classic Monitor using Pi and Node-Red
« Reply #15 on: November 30, 2021, 08:05:55 AM »
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

  • Hero Member
  • *****
  • Posts: 3109
Re: Classic Monitor using Pi and Node-Red
« Reply #16 on: November 30, 2021, 05:56:36 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
« Last Edit: November 30, 2021, 06:02:35 PM by ClassicCrazy »
system one
Classic 150 , 5s4p  Kyocera 135watt , 12s Soneil 2v 540amp lead crystal for 24v pack , Outback 3524 inverter
system two
Classic 150 ,5s 135 watt Kyocero , 16s Calb 100AH LiFePO4 , Outback VFX 3648 inverter
system three
Midnite KID MPPT 24 DC in to  12 volt AGM batterie

ClassicCrazy

  • Hero Member
  • *****
  • Posts: 3109
Re: Classic Monitor using Pi and Node-Red
« Reply #17 on: November 30, 2021, 05:58:14 PM »
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 one
Classic 150 , 5s4p  Kyocera 135watt , 12s Soneil 2v 540amp lead crystal for 24v pack , Outback 3524 inverter
system two
Classic 150 ,5s 135 watt Kyocero , 16s Calb 100AH LiFePO4 , Outback VFX 3648 inverter
system three
Midnite KID MPPT 24 DC in to  12 volt AGM batterie