I am a beginner and have little experience with Node Red and InfluxDB. I want to send data to the InfluxDB database. The data are stored in flow.context and it is all of type float.
In a function node I create the followung object:
msg.payload = {
“SumE” : flow.get(“SumE_AC”),
“TagE” : flow.get(“TagE_AC”),
“Pac” : flow.get(“P_AC”),
“maxPac” : flow.get(“maxP_AC”),
“Pdc” : flow.get(“P_DC”),
“maxPdc” : flow.get(“maxP_DC”),
“Temp” : flow.get(“PV_TempWR”),
“Uac” : flow.get(“U_AC”),
“Fac” : flow.get(“F_AC”)
}
return msg;
which I send on to a node ‘influx’ PV garage.
here I get the following error message:
5/11/2023, 17:59:45node: pv-garage.
msg : error
“TypeError: points.forEach is not a function”.
and this is the msg.load:
HM-800_Garage/HM-800_Garage/ch0/Temp : msg.payload : Object
object
SumE: 186,842
TagE: 3241
Pac: 158.8
maxPac: 522
Pdc: 166.8
maxPdc: 548.3
Temp: 36.6
Uac: 225.5
Fac: 50.01
Where is my problem that the node ‘influx’ PV garage brings this error message.
InfluxDB shell version: 1.8.10
Node Red version 2.1.0
beides läuft auf einem Raspberry Pi.
PRETTY_NAME=“Raspbian GNU/Linux 10 (buster)”
NAME=“Raspbian GNU/Linux”
VERSION_ID=“10”
VERSION=“10 (buster)”
VERSION_CODENAME=buster
ID=raspbian