I learn such a lot from looking at your functions. Many thanks, Arthur
@dano47003 жыл бұрын
Great function nodes. Thanks. 👍🇦🇺
@jarchdm3 жыл бұрын
Excellent. Have something similar but this helps me develop better version thank you
@distancelab20103 жыл бұрын
Very very nice. Thank you
@MH-ie1sg3 жыл бұрын
Thanks. I'm learning so much from your video's.
@raymondsiew16962 жыл бұрын
Thank you so much for the video, awesome!
@johnhunter90682 жыл бұрын
Just what I was looking for to calculate the oil usage of my boiler based on the time it is running. I've downloaded the code and whilst it runs ok, it show triangle in the 'On time counter deluxe' node which I think is an error. Looking through the code I see that from line 23 &57 you do calculations using 'now - ontime', but its complaining that 'now' isn't a number (but 'ontime' is?)
@JulianKnight-IT3 жыл бұрын
My system is now complex enough that I've started always adding updated and updated_by sub-topics to many of my MQTT outputs. updated is an ISO timestamp and updated_by shows the Node-RED instance, tab and function that output the update. That is really easy to see in MQTT when you want it but it doesn't clutter up the Node-RED editor.
@lazymouse6363 жыл бұрын
Csongor, take a look at influxdb (timeseries database) and node-red-contrib-influxdb for storing everything. You can insert data from a mqtt-in node (output json) directly into influxdb. With grafana you can create graphs of what is in influxdb and also create alerts. I was doing all this in node red but influxdb and grafana make it a lot easier. With influxdb you can also automatic aggregate data. Keeps flows simple! Greetings from a Dutch lazy mouse :)
@csongorvarga3 жыл бұрын
I agree, I should spend time migrating all this influxdb and Grafana, when I did this I did not know about them.
@zyghom Жыл бұрын
superb!
@soovui3 жыл бұрын
Great work and tq so much for sharing, it is fantastic idea... Will it be reset everything if the nodered restarted or we change something and upload something being changed somewhere in nodered? If yes, how we can save the counter history permanently especially the deluxe counter till we reset it?
@csongorvarga3 жыл бұрын
The data is currently stored in memory, so if you re-deploy the flow or restart Node Red it will reset. Few versions ago in Node-Red persistent storage has been implemented, that needs to be set up in the settings.js. You can see an article here: nodered.org/docs/user-guide/context. I recommend that you set the multiple context stores as in the article. After that, if you change all the context.get and context.set statements in the code and add a third parameter "file". So for example in the third line instead of let uptime = context.get("uptime"); now the new code should be let uptime = context.get("uptime","file"); But it is actually a good topic, let me put a video together on this
@soovui3 жыл бұрын
@@csongorvarga Bravo... Genius...
@jumadhaheri3 жыл бұрын
Yes to the future
@wasyl003 жыл бұрын
Good stuff thanks. I was always wondering if you have ever considered getting into stuff like Home Assistant. It has beautifully integrated Node Red and incredible amount of other extensions plugins and addons like ESPhome for example which makes designing and deploying your own DIY sensors o much easier than writing your own stuff from scratch. It is so much better than tasmota. It even allows to drop mqtt completely (if so desired) as their own HA native API is much more optimized protocol.
@csongorvarga3 жыл бұрын
Interesting that you say that. I am renovating my summer home and I am considering adding some home automation to that. I have a Home Assistant + Node-Red installed on a new machine, and actually I was also told to try ESPHome integrated with Home Assistant. And I will just use Home Assistant to manage the sensors in ESPHome and use the Home Assistant addings in Node-Red to control them. To be honest I don't see any need in my own home to add Home Assistant. Most of my Node-Red functions are in the background without use interface. Therefore Home Assistant has no added benefit for me. But in the summer house I can add a touchscreen and also app which is easier for other to use.