Installing Node Red on Raspberry PI Bullseye also Telegraf and Grafana

Started by ClassicCrazy, November 28, 2021, 04:13:01 PM

Previous topic - Next topic

ClassicCrazy

State of Charge working .
I also added totals between the two Classics.
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

Graham

Quote from: ClassicCrazy on December 10, 2021, 07:57:03 PM

I may have found easier way to do the State of Charge code to text.
There is a Value Mapping section .
https://grafana.com/docs/grafana/latest/panels/value-mappings/
Guess I will find out next time the sun comes out if it works or not.
Screen shot shows what I did .
attached is my latest version of Grafana Dashboard  supporting two Classics and I jazzed it up with colors.
Larry

That's much easier than the SQL approach... thanks for finding that.
Off-Grid Island cottage, Lac Simon QC Canada
370 Ahrs @ 24V (4 8L16 batteries)
4 x 250watt panels on dual axis trackers http://tinyurl.com/hfpkgr5
Classic 150, Whizbang Jr.
Android Monitor: http://tinyurl.com/lomzq3s

ClassicCrazy

I made some progress with Node Red - figured out how to get it to read the MQTT data .
Easy I suppose once you know what you are doing !
Thanks to Grahams past instructions on how to use MQTT.fx program - that is helping me get some understanding of MQTT stuff.
Next I will work on trying to make Node Red use some of the data to control something.
I attached the flow I have so far which will show how to setup the mqtt input .
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

I worked on getting Node Red to take Aux data, then change the true / false to a number value.
Then it is supposed to go to Influxdb but I haven't got the influx databases configured right yet.
Here is what I have used for references to get this far
Very good video where he takes time to explain each step in detail
https://youtu.be/ffg3_1AgtyA
Also Paraphraser helps some though for me hard to follow along sometimes until I read it over and over
https://gist.github.com/Paraphraser/c9db25d131dd4c09848ffb353b69038f
This is the function code I used to change true false to number value - I found this while searching for way to do it so thanks whoever wrote it cause I forgot already

node.warn(msg.payload)
msg.original = msg.payload;
if (msg.payload === "true" || msg.payload === true) {
msg.payload = 111;
} else {
msg.payload = 999;
}
return msg;

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