Hi Carsten
thanks. You can safely use notepad or wordpad or vs code with github plugin.
thanks. You can safely use notepad or wordpad or vs code with github plugin.
// No need to log Date & Time, in my case in GA 0/0/1&2 if ((msg.topic == "0/0/1") || (msg.topic == "0/0/2")) return null; // Boolean values cannot be compacted by InfluxDB into lower resolution retention policies (=database tables) // The reason is that the mean/average computation of boolean results in null value in InfluxDB. // Thus we turn all booleans into numeric values: false=0, true=100. // See Post #200 below for further information about InfluxDB retention policies and compacting data if (typeof msg.payload === 'boolean'){ if (msg.payload === true){ msg.payload = 100; } else { msg.payload = 0; } } msg.payload = [{ // First object lists the set of named fields (for further info, see InfluxDB Node Help in Node-Red) value: msg.payload, }, { // The second object lists the set of named tags source : msg.knx.source, dpt: msg.knx.dpt, description: msg.devicename, event: msg.knx.event }]; return msg;
CREATE database "db_knx" USE db_knx CREATE retention policy "rp_inf_highres" ON "db_knx" duration INF replication 1 DEFAULT CREATE retention policy "rp_inf_lowres" ON "db_knx" duration INF replication 1 (the next command should be entered all in one line; here only for improved readability I split it into 5 lines) CREATE continuous query "cq_1day" ON "db_knx" BEGIN SELECT mean(value) AS value, min(value) AS min, max(value) AS max, stddev(value) AS stddev INTO "db_knx"."rp_inf_lowres".:MEASUREMENT FROM (select mean(value) AS value FROM db_knx.rp_inf_highres./.*/ GROUP BY time(1s) fill(previous)) GROUP BY time(1d),* END
CREATE retention policy "rp_inf_rpselector" ON "db_knx" duration INF replication 1 INSERT INTO rp_inf_rpselector meas_rpselection,idx=1 rpselection="rp_inf_highres",start=0i,end=2592000000i -9223372036854775806 INSERT INTO rp_inf_rpselector meas_rpselection,idx=2 rpselection="rp_inf_lowres",start=2592000000i,end=3110400000000i -9223372036854775806
"KNXUltimate-config: Error in instantiating knxConnection Interface ens4 not found or has no useful IPv4 address!. Node undefined"
Wir verarbeiten personenbezogene Daten über die Nutzer unserer Website mithilfe von Cookies und anderen Technologien, um unsere Dienste bereitzustellen. Weitere Informationen findest Du in unserer Datenschutzerklärung.
Indem Du unten auf "ICH stimme zu" klickst, stimmst Du unserer Datenschutzerklärung und unseren persönlichen Datenverarbeitungs- und Cookie-Praktiken zu, wie darin beschrieben. Du erkennst außerdem an, dass dieses Forum möglicherweise außerhalb Deines Landes gehostet wird und bist damit einverstanden, dass Deine Daten in dem Land, in dem dieses Forum gehostet wird, gesammelt, gespeichert und verarbeitet werden.
Kommentar