Author Topic: Classic Monitoring with a raspberry pi  (Read 7185 times)

ClassicCrazy

  • Hero Member
  • *****
  • Posts: 2393
Re: Classic Monitoring with a raspberry pi
« Reply #45 on: March 24, 2020, 11:09:32 PM »
Matt ,
I made some progress - and have the getter running now and it says it is connnected and UI showing up .
But I don't see any data on the UI or in any of the debugs msg payload
I am wondering about this in getter for topic
ClassicMQTT/classic/stat/readings/#

When I set up the Pi for Grahams android  app I only had ClassicMQTT as the topic . Do I need to change that in the Raspberry Pi publisher to match this now ? Maybe you are collecting more data on the Pi than I am ?


Larry
« Last Edit: March 24, 2020, 11:21:43 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

mcsarge

  • Jr. Member
  • **
  • Posts: 96
Re: Classic Monitoring with a raspberry pi
« Reply #46 on: March 25, 2020, 09:44:02 AM »
Larry,

That subscription needs to match the mqtt_root and the classic_name you used when you started the Python publisher(s).

Oh and remember, if you are in snooze mode on the classic_mqtt.py, the default is an update every 5 minutes. That is why I added --snooze_secs so I could set it to 60 so it will give you an update every minute when no one is connected.

Matt
« Last Edit: March 25, 2020, 09:47:03 AM by mcsarge »
Off Grid Island in Ontario Canada (Beaverstone Bay)
Primary: Classic 150 + wbjr; 3s2p HES 270watt
Winter: SolarBoost 50 MPPT (into wbjr); 2 x Sharp NE-80EJEA 80watt
Pack: 4s4p US2200 FLA 6V for 24V pack
Inverter/Charger: Trace DR2424
Call Sign: KG4EUF

ClassicCrazy

  • Hero Member
  • *****
  • Posts: 2393
Re: Classic Monitoring with a raspberry pi
« Reply #47 on: March 31, 2020, 12:50:23 PM »
Thanks to Matt and Graham the raspberry pi  MQTT software is now working very well.
They worked out a few bugs and I tested it and now my Pi connects to the Classic , publishes the data on MQTT, and I was able to connect up two different androids to it at the same time - one an Amazon Fire tablet with custom Rom and a Samsung Galaxy S4 with custom Rom . The newest beta android  app monitors both of my Classics which are in Follow me mode .
More info here https://github.com/ClassicDIY

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

Trapp

  • Newby
  • *
  • Posts: 1
Re: Classic Monitoring with a raspberry pi
« Reply #48 on: April 03, 2020, 05:26:57 PM »
Thanks welmore your code “Logging.php” works right out of the box I’ve been using it for over a year now

Clasic 200
SN # CL 12345

I want to turn on/off the relay on aux1 with $modbus->writeSingleRegister(0, 4129, $relayon, $dataTypes);

And keep the Ethernet lock on
Please help me