Hi @zenofmud
thanks for you informations.
I did read the manuals and tried to solve it by msyself.
But of course I missed the easiest things.
I am using / working with Home assistant and the installed NodeRed Component.
Works like a charme, having already a lot of flows.
@TotallyInformation im using the component from HA -> https://www.home-assistant.io/integrations/waze_travel_time/
More or less the same as GoogleMaps api request
It works good and gives me a number something like XX.XX in Minutes, so 41.46 minutes.
I am ok with just the integer, do not need the number after the dot
It is just the normale node red (V. 7.2.11)
Also i am sure I do not need any contrib for this.
What I would use is the function node of course.
I have the value of the current time (from the inject node) also converted it to a time one can read and work with
[{"id":"b5fd4031.138768","type":"inject","z":"c43d799.c48b188","name":"","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":100,"y":2560,"wires":[["8140daf7.9698"]]},{"id":"8140daf7.9698","type":"function","z":"c43d799.c48b188","name":"time_convert","func":"topic = msg.topic;\nd = new Date();\ndformat = [d.getHours(),d.getMinutes()].join(':');\nmsg.payload=dformat\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","x":280,"y":2560,"wires":[[]]}]
And of course I have the time from the Waze sensor.
Now I need the join node, I think, to combine them, so I can then calculate with the Times within a function node.
And here it stops I am not sure how to join them into one function node.
I think I could give them different msg. name but not quite sure about.
Maybe if I get a tipp here I can then check how to add / subtract the time.