# How long did my trip/drive take?

**URL:** <https://discourse.nodered.org/t/how-long-did-my-trip-drive-take/55743>\
**Category:** General\
**Created:** [27 December 2021 09:37 UTC](https://discourse.nodered.org/t/how-long-did-my-trip-drive-take/55743 "2021-12-27T09:37:11Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![angus123321](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/angus123321/32/53107_2.png) [@angus123321](https://discourse.nodered.org/u/angus123321)\
**Post date:** [27 December 2021 09:37 UTC](https://discourse.nodered.org/t/how-long-did-my-trip-drive-take/55743/1 "2021-12-27T09:37:11Z")

</div>

i would like to use the zone node from home-assistant-websocket  
v2.1.4

i want to know the travel time between my zone(cottage) to my zone(home).  
i would like do a few things with that date.  
a) how long it took? output to a email or notification  
b) would it be possible to put the date and how long it took in Home Assistant.  
c) have Home Assistant show the drive has taken you 2:15 x times for each time it records.  
can you think of anything else i can do with that data?

i tried and failed at using diff in the Function node

I figured out A in the middle of typing this.

 ![Screenshot 2021-12-27 042905](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/e/a/ea672e8ee4df2717f1d74ebac8857d86fd907bf0.png)

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [25 February 2022 09:38 UTC](https://discourse.nodered.org/t/how-long-did-my-trip-drive-take/55743/2 "2022-02-25T09:38:07Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
