1.0.8 • Published 3 years ago

node-red-contrib-transittime v1.0.8

Weekly downloads
21
License
ISC
Repository
github
Last release
3 years ago

node-red-contrib-transittime

Build Status npm version Github Issues MIT license

Transit Time Palette for Node-Red

Input / Output

inputs :

msg.payload.distance: trip distance in kms.

msg.payload.config: the required vehicle and trip information :

  • speed in km/hours
  • drivingTime in hours
  • maxDrivingTime in hours
  • breakTime in hours
  • restTime in hours

Example :

{speed: 1.16, drivingTime: 240, maxDrivingTime: 720, breakTime:30, restTime:480}

output :

return msg.payload.transitTime in hours.

Test

You can check the flow in the sample directory to have a better understanding of the input and output. It provides 2 examples :

  • timestamp with predefined set of data
  • api get/post to input values

Demo

UI : https://transittime.yoctu.com/ui

API : curl -X POST https://transittime.yoctu.com/api/ -H 'Content-type: application/json' -d '{ "distance": 500, "config": {"speed":60,"drivingTime":240,"maxDrivingTime":720,"breakTime":30,"restTime":480}}'

Contributors and Thanks

Thank you

@misterbh for the first version, test and algorythm

LaV.

1.0.8

3 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago

1.0.3

4 years ago

0.9.8

4 years ago

0.9.7

4 years ago

0.9.6

4 years ago

0.9.4

4 years ago

0.9.3

4 years ago

0.9.5

4 years ago

0.9.2

4 years ago

0.9.1

4 years ago

0.9.0

4 years ago