[{"id":"9e5756adb3df9ec5","type":"inject","z":"c672263e77a16264","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"},{"p":"url","v":"https://api.golemio.cz/v2/vehiclepositions","vt":"str"},{"p":"headers.x-access-token","v":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6Imt1YmlrLmhyeUBnbWFpbC5jb20iLCJpZCI6MTQ2MSwibmFtZSI6bnVsbCwic3VybmFtZSI6bnVsbCwiaWF0IjoxNjY0Nzg2NDgzLCJleHAiOjExNjY0Nzg2NDgzLCJpc3MiOiJnb2xlbWlvIiwianRpIjoiN2E5ZmUzNDMtYzE4Mi00YTU1LThlZjEtYTEwZTViMzJjN2Q5In0.eLPVU_cTBQIQC2s1eAjF9qnsFkjDOvt9kP8I4bTLcJc","vt":"str"}],"repeat":"10","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":110,"y":200,"wires":[["660408914dfc30c4"]]},{"id":"660408914dfc30c4","type":"http request","z":"c672263e77a16264","name":"","method":"GET","ret":"obj","paytoqs":"ignore","url":"","tls":"","persist":false,"proxy":"","insecureHTTPParser":false,"authType":"","senderr":false,"headers":[],"x":230,"y":280,"wires":[["6c2e20933de14160","b184eacc918994f7"]]},{"id":"b2c1e046d7f2d944","type":"debug","z":"c672263e77a16264","name":"debug 87","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":500,"y":280,"wires":[]},{"id":"1fc754b46abd9f1d","type":"split","z":"c672263e77a16264","name":"","splt":"\\n","spltType":"str","arraySplt":1,"arraySpltType":"len","stream":false,"addname":"","x":550,"y":460,"wires":[["76b2d5d785a88f47","4d350d4f51cc92e7"]]},{"id":"6c2e20933de14160","type":"function","z":"c672263e77a16264","name":"function features","func":"msg.payload = msg.payload.features\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":410,"y":360,"wires":[["1fc754b46abd9f1d","b2c1e046d7f2d944"]]},{"id":"b184eacc918994f7","type":"debug","z":"c672263e77a16264","name":"debug 88","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":340,"y":200,"wires":[]},{"id":"76b2d5d785a88f47","type":"function","z":"c672263e77a16264","name":"odstraneni_nul_hodnoty","func":"if (msg.payload.properties.trip.vehicle_type !== null)\nreturn msg;\nelse\nreturn null","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":770,"y":540,"wires":[["58959033b38453f6","32ec32ccdc855670","91f3ad35d396333f","0fb7fa832d2e84c8","911d2d5161243c2b","2774bae6bb5c768c"]]},{"id":"911d2d5161243c2b","type":"function","z":"c672263e77a16264","name":"tag-8","func":"var Delay = msg.payload.properties.last_position.delay.actual;\nvar Line = msg.payload.properties.trip.origin_route_name;\nvar Vehicle = msg.payload.properties.trip.vehicle_registration_number;\nvar Type = msg.payload.properties.trip.vehicle_type.description_cs;\nvar Last_stop = msg.payload.properties.last_position.last_stop.id;\nvar Last_stop_order = msg.payload.properties.last_position.last_stop.sequence;\nvar Next_stop = msg.payload.properties.last_position.next_stop.id;\nvar Next_stop_order = msg.payload.properties.last_position.next_stop.sequence;\nvar Position = msg.payload.properties.last_position.state_position;\nvar Final_stop = msg.payload.properties.trip.gtfs.trip_headsign;\nvar Time = msg.payload.properties.last_position.origin_timestamp\n\nmsg.payload = [{\n // @ts-ignore\n time: new Date(Time) / 1000,\n f_delay: Delay,\n f_position: Position\n },\n {\n t_line: Line,\n t_vehicle: Vehicle,\n t_type: Type,\n t_final_stop: Final_stop,\n t_last_stop: Last_stop,\n t_last_stop_order: Last_stop_order,\n t_next_stop: Next_stop,\n t_next_stop_order: Next_stop_order\n }];\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":1010,"y":120,"wires":[["ba9d3968d244ac4e"]]},{"id":"2774bae6bb5c768c","type":"function","z":"c672263e77a16264","name":"vypocet_predem","func":"var Delay = msg.payload.properties.last_position.delay.actual;\nvar Delay_last = msg.payload.properties.last_position.delay.last_stop_arrival;\nvar Line = msg.payload.properties.trip.origin_route_name;\nvar Vehicle = msg.payload.properties.trip.vehicle_registration_number;\nvar Type = msg.payload.properties.trip.vehicle_type.description_cs;\nvar Last_stop = msg.payload.properties.last_position.last_stop.id;\nvar Last_stop_order = msg.payload.properties.last_position.last_stop.sequence;\nvar Next_stop = msg.payload.properties.last_position.next_stop.id;\nvar Next_stop_order = msg.payload.properties.last_position.next_stop.sequence;\nvar Position = msg.payload.properties.last_position.state_position;\nvar Final_stop = msg.payload.properties.trip.gtfs.trip_headsign;\nvar Time = msg.payload.properties.last_position.origin_timestamp\n\nmsg.payload = [{\n // @ts-ignore\n time: new Date(Time) / 1000,\n f_delay: Delay,\n f_delay_diff: Delay - Delay_last,\n f_position: Position,\n f_last_stop: Last_stop,\n f_last_stop_order: Last_stop_order,\n f_next_stop: Next_stop,\n f_next_stop_order: Next_stop_order\n},\n{\n t_line: Line,\n t_vehicle: Vehicle,\n t_type: Type,\n t_final_stop: Final_stop\n}];\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":1050,"y":980,"wires":[["ab145bc93bf9e3cf"]]},{"id":"32ec32ccdc855670","type":"function","z":"c672263e77a16264","name":"vypocet_v_dotazu","func":"var Delay = msg.payload.properties.last_position.delay.actual;\nvar Delay_last = msg.payload.properties.last_position.delay.last_stop_arrival;\nvar Line = msg.payload.properties.trip.origin_route_name;\nvar Vehicle = msg.payload.properties.trip.vehicle_registration_number;\nvar Type = msg.payload.properties.trip.vehicle_type.description_cs;\nvar Last_stop = msg.payload.properties.last_position.last_stop.id;\nvar Last_stop_order = msg.payload.properties.last_position.last_stop.sequence;\nvar Next_stop = msg.payload.properties.last_position.next_stop.id;\nvar Next_stop_order = msg.payload.properties.last_position.next_stop.sequence;\nvar Position = msg.payload.properties.last_position.state_position;\nvar Final_stop = msg.payload.properties.trip.gtfs.trip_headsign;\nvar Time = msg.payload.properties.last_position.origin_timestamp\n\nmsg.payload = [{\n // @ts-ignore\n time: new Date(Time) / 1000,\n f_delay: Delay,\n f_delay_last: Delay_last,\n f_position: Position,\n f_last_stop: Last_stop,\n f_last_stop_order: Last_stop_order,\n f_next_stop: Next_stop,\n f_next_stop_order: Next_stop_order\n},\n{\n t_line: Line,\n t_vehicle: Vehicle,\n t_type: Type,\n t_final_stop: Final_stop\n}];\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":1050,"y":1260,"wires":[["d1e4037fec8eff09","ea64ef991911893b","ba7aa4795c71db53","5a298088d95c1f3c","8aaded0bdf457142","01a2d39096f10327"]]},{"id":"0fb7fa832d2e84c8","type":"function","z":"c672263e77a16264","name":"tag-6","func":"var Delay = msg.payload.properties.last_position.delay.actual;\nvar Line = msg.payload.properties.trip.origin_route_name;\nvar Vehicle = msg.payload.properties.trip.vehicle_registration_number;\nvar Type = msg.payload.properties.trip.vehicle_type.description_cs;\nvar Last_stop = msg.payload.properties.last_position.last_stop.id;\nvar Last_stop_order = msg.payload.properties.last_position.last_stop.sequence;\nvar Next_stop = msg.payload.properties.last_position.next_stop.id;\nvar Next_stop_order = msg.payload.properties.last_position.next_stop.sequence;\nvar Position = msg.payload.properties.last_position.state_position;\nvar Final_stop = msg.payload.properties.trip.gtfs.trip_headsign;\nvar Time = msg.payload.properties.last_position.origin_timestamp\n\nmsg.payload = [{\n // @ts-ignore\n time: new Date(Time) / 1000,\n f_delay: Delay,\n f_position: Position,\n f_last_stop_order: Last_stop_order,\n f_next_stop_order: Next_stop_order\n},\n{\n t_line: Line,\n t_vehicle: Vehicle,\n t_type: Type,\n t_final_stop: Final_stop,\n t_last_stop: Last_stop,\n t_next_stop: Next_stop\n}];\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":1010,"y":380,"wires":[["490e92e4fa9e30a6"]]},{"id":"606f282cf9bed5aa","type":"influxdb out","z":"c672263e77a16264","influxdb":"c158d9aaf385b4d4","name":"InfluxDB VPS 2 GB RAM tag-6","measurement":"tag-6","precision":"","retentionPolicy":"","database":"database","precisionV18FluxV20":"s","retentionPolicyV18Flux":"","org":"CZU","bucket":"tag-6","x":1470,"y":380,"wires":[]},{"id":"ba9d3968d244ac4e","type":"batch","z":"c672263e77a16264","name":"","mode":"interval","count":10,"overlap":0,"interval":10,"allowEmptySequence":false,"topics":[],"x":1110,"y":180,"wires":[["13e35a697a93d8a7"]]},{"id":"13e35a697a93d8a7","type":"join","z":"c672263e77a16264","name":"","mode":"auto","build":"object","property":"payload","propertyType":"msg","key":"topic","joiner":"\\n","joinerType":"str","accumulate":"false","timeout":"","count":"","reduceRight":false,"x":1190,"y":220,"wires":[["8dfc11dcbf251773","352759325c08b642","039621bf000b72d6","d6f6e35c86b5e188","c8a8ed640db4c575","3c86d39c55712e62"]]},{"id":"8dfc11dcbf251773","type":"debug","z":"c672263e77a16264","name":"debug 89","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":1160,"y":280,"wires":[]},{"id":"a1b097798c3f1edf","type":"influxdb out","z":"c672263e77a16264","influxdb":"2f67c3ecc413a71c","name":"InfluxDB tag-6","measurement":"stredne","precision":"","retentionPolicy":"","database":"database","precisionV18FluxV20":"s","retentionPolicyV18Flux":"","org":"CZU","bucket":"stredne","x":1420,"y":340,"wires":[]},{"id":"7394b84015ca0cd2","type":"join","z":"c672263e77a16264","name":"","mode":"auto","build":"object","property":"payload","propertyType":"msg","key":"topic","joiner":"\\n","joinerType":"str","accumulate":"false","timeout":"","count":"","reduceRight":false,"x":1190,"y":500,"wires":[["1c618204e20aa762","a1b097798c3f1edf","606f282cf9bed5aa","2ed02a6c17a99d12","1ee05e324bb3b940","2fb5606a4299306f"]]},{"id":"490e92e4fa9e30a6","type":"batch","z":"c672263e77a16264","name":"","mode":"interval","count":10,"overlap":0,"interval":10,"allowEmptySequence":false,"topics":[],"x":1110,"y":440,"wires":[["7394b84015ca0cd2"]]},{"id":"2ed02a6c17a99d12","type":"influxdb out","z":"c672263e77a16264","influxdb":"c9a6d453edc69ecd","name":"InfluxDB VPS 4 GB RAM tag-6","measurement":"stredne","precision":"","retentionPolicy":"","database":"database","precisionV18FluxV20":"s","retentionPolicyV18Flux":"","org":"CZU","bucket":"stredne","x":1470,"y":420,"wires":[]},{"id":"1ee05e324bb3b940","type":"influxdb out","z":"c672263e77a16264","influxdb":"68f19a2852681d08","name":"InfluxDB VPS 8 GB RAM tag-6","measurement":"tag-6","precision":"","retentionPolicy":"","database":"database","precisionV18FluxV20":"s","retentionPolicyV18Flux":"","org":"CZU","bucket":"tag-6","x":1470,"y":460,"wires":[]},{"id":"2fb5606a4299306f","type":"influxdb out","z":"c672263e77a16264","influxdb":"83e5861b73442539","name":"InfluxDB VPS 16 GB RAM tag-6","measurement":"tag-6","precision":"","retentionPolicy":"","database":"database","precisionV18FluxV20":"s","retentionPolicyV18Flux":"","org":"CZU","bucket":"tag-6","x":1470,"y":500,"wires":[]},{"id":"c8a8ed640db4c575","type":"influxdb out","z":"c672263e77a16264","influxdb":"c158d9aaf385b4d4","name":"InfluxDB VPS 2 GB RAM tag-8","measurement":"tag-8","precision":"","retentionPolicy":"","database":"database","precisionV18FluxV20":"s","retentionPolicyV18Flux":"","org":"CZU","bucket":"tag-8","x":1470,"y":80,"wires":[]},{"id":"3c86d39c55712e62","type":"influxdb out","z":"c672263e77a16264","influxdb":"cc4846a0fa470ecf","name":"InfluxDB tag-8","measurement":"tag-8","precision":"","retentionPolicy":"","database":"database","precisionV18FluxV20":"s","retentionPolicyV18Flux":"","org":"CZU","bucket":"tag-8","x":1420,"y":40,"wires":[]},{"id":"d6f6e35c86b5e188","type":"influxdb out","z":"c672263e77a16264","influxdb":"c9a6d453edc69ecd","name":"InfluxDB VPS 4 GB RAM tag-8","measurement":"tag-8","precision":"","retentionPolicy":"","database":"database","precisionV18FluxV20":"s","retentionPolicyV18Flux":"","org":"CZU","bucket":"tag-8","x":1470,"y":120,"wires":[]},{"id":"039621bf000b72d6","type":"influxdb out","z":"c672263e77a16264","influxdb":"68f19a2852681d08","name":"InfluxDB VPS 8 GB RAM tag-8","measurement":"tag-8","precision":"","retentionPolicy":"","database":"database","precisionV18FluxV20":"s","retentionPolicyV18Flux":"","org":"CZU","bucket":"tag-8","x":1470,"y":160,"wires":[]},{"id":"352759325c08b642","type":"influxdb out","z":"c672263e77a16264","influxdb":"83e5861b73442539","name":"InfluxDB VPS 16 GB RAM tag-8","measurement":"tag-8","precision":"","retentionPolicy":"","database":"database","precisionV18FluxV20":"s","retentionPolicyV18Flux":"","org":"CZU","bucket":"tag-8","x":1470,"y":200,"wires":[]},{"id":"4b9b911acff8c197","type":"influxdb out","z":"c672263e77a16264","influxdb":"c158d9aaf385b4d4","name":"InfluxDB VPS 2 GB RAM tag-4","measurement":"tag-4","precision":"","retentionPolicy":"","database":"database","precisionV18FluxV20":"s","retentionPolicyV18Flux":"","org":"CZU","bucket":"tag-4","x":1470,"y":680,"wires":[]},{"id":"8d0d52dbd4d20271","type":"influxdb out","z":"c672263e77a16264","influxdb":"afd8b75be2b7a21d","name":"InfluxDB tag-4","measurement":"tag-4","precision":"","retentionPolicy":"","database":"database","precisionV18FluxV20":"s","retentionPolicyV18Flux":"","org":"CZU","bucket":"tag-4","x":1420,"y":640,"wires":[]},{"id":"456a2e7907074de4","type":"influxdb out","z":"c672263e77a16264","influxdb":"c9a6d453edc69ecd","name":"InfluxDB VPS 4 GB RAM tag-4","measurement":"tag-4","precision":"","retentionPolicy":"","database":"database","precisionV18FluxV20":"s","retentionPolicyV18Flux":"","org":"CZU","bucket":"tag-4","x":1470,"y":720,"wires":[]},{"id":"f3fcec986e1f1d62","type":"influxdb out","z":"c672263e77a16264","influxdb":"68f19a2852681d08","name":"InfluxDB VPS 8GB RAM tag-4","measurement":"tag-4","precision":"","retentionPolicy":"","database":"database","precisionV18FluxV20":"s","retentionPolicyV18Flux":"","org":"CZU","bucket":"tag-4","x":1470,"y":760,"wires":[]},{"id":"c9aa344b878513d8","type":"influxdb out","z":"c672263e77a16264","influxdb":"83e5861b73442539","name":"InfluxDB VPS 16 GB RAM tag-4","measurement":"tag-4","precision":"","retentionPolicy":"","database":"database","precisionV18FluxV20":"s","retentionPolicyV18Flux":"","org":"CZU","bucket":"tag-4","x":1470,"y":800,"wires":[]},{"id":"33a6aa121eef1064","type":"join","z":"c672263e77a16264","name":"","mode":"auto","build":"object","property":"payload","propertyType":"msg","key":"topic","joiner":"\\n","joinerType":"str","accumulate":"false","timeout":"","count":"","reduceRight":false,"x":1190,"y":780,"wires":[["baccf58bbb6988d9","8d0d52dbd4d20271","4b9b911acff8c197","456a2e7907074de4","f3fcec986e1f1d62","c9aa344b878513d8"]]},{"id":"db477c73790aa052","type":"batch","z":"c672263e77a16264","name":"","mode":"interval","count":10,"overlap":0,"interval":10,"allowEmptySequence":false,"topics":[],"x":1110,"y":720,"wires":[["33a6aa121eef1064"]]},{"id":"4ed6b0ce356d7a84","type":"join","z":"c672263e77a16264","name":"","mode":"auto","build":"object","property":"payload","propertyType":"msg","key":"topic","joiner":"\\n","joinerType":"str","accumulate":"false","timeout":"","count":"","reduceRight":false,"x":1170,"y":1080,"wires":[["24c70b4f72e33b6c","f87ef9e30be117bb","40d4ac8adebba5ef","2abc36062f530845","c16a80ef9e84a3df","b3377e9c7da384ea"]]},{"id":"ab145bc93bf9e3cf","type":"batch","z":"c672263e77a16264","name":"","mode":"interval","count":10,"overlap":0,"interval":10,"allowEmptySequence":false,"topics":[],"x":1090,"y":1040,"wires":[["4ed6b0ce356d7a84"]]},{"id":"40d4ac8adebba5ef","type":"influxdb out","z":"c672263e77a16264","influxdb":"c158d9aaf385b4d4","name":"InfluxDB VPS 2 GB RAM vypocet_predem","measurement":"vypocet_predem","precision":"","retentionPolicy":"","database":"database","precisionV18FluxV20":"s","retentionPolicyV18Flux":"","org":"CZU","bucket":"vypocet_predem","x":1500,"y":1000,"wires":[]},{"id":"f87ef9e30be117bb","type":"influxdb out","z":"c672263e77a16264","influxdb":"e9cf94d51831b040","name":"InfluxDB vypocet_predem","measurement":"vypocet_predem","precision":"","retentionPolicy":"","database":"database","precisionV18FluxV20":"s","retentionPolicyV18Flux":"","org":"CZU","bucket":"vypocet_predem","x":1450,"y":960,"wires":[]},{"id":"2abc36062f530845","type":"influxdb out","z":"c672263e77a16264","influxdb":"c9a6d453edc69ecd","name":"InfluxDB VPS 4 GB RAM vypocet_predem","measurement":"vypocet_predem","precision":"","retentionPolicy":"","database":"database","precisionV18FluxV20":"s","retentionPolicyV18Flux":"","org":"CZU","bucket":"vypocet_predem","x":1500,"y":1040,"wires":[]},{"id":"c16a80ef9e84a3df","type":"influxdb out","z":"c672263e77a16264","influxdb":"68f19a2852681d08","name":"InfluxDB VPS 8 GB RAM vypocet_predem","measurement":"vypocet_predem","precision":"","retentionPolicy":"","database":"database","precisionV18FluxV20":"s","retentionPolicyV18Flux":"","org":"CZU","bucket":"vypocet_predem","x":1500,"y":1080,"wires":[]},{"id":"b3377e9c7da384ea","type":"influxdb out","z":"c672263e77a16264","influxdb":"83e5861b73442539","name":"InfluxDB VPS 16 GB RAM vypocet_predem","measurement":"vypocet_predem","precision":"","retentionPolicy":"","database":"database","precisionV18FluxV20":"s","retentionPolicyV18Flux":"","org":"CZU","bucket":"vypocet_predem","x":1510,"y":1120,"wires":[]},{"id":"ba7aa4795c71db53","type":"influxdb out","z":"c672263e77a16264","influxdb":"c158d9aaf385b4d4","name":"InfluxDB VPS 2 GB RAM vypocet_v_dotazu","measurement":"vypocet_v_dotazu","precision":"","retentionPolicy":"","database":"database","precisionV18FluxV20":"s","retentionPolicyV18Flux":"","org":"CZU","bucket":"vypocet_v_dotazu","x":1510,"y":1280,"wires":[]},{"id":"ea64ef991911893b","type":"influxdb out","z":"c672263e77a16264","influxdb":"0fdbf5ee2801fc87","name":"InfluxDB vypocet_v_dotazu","measurement":"vypocet_v_dotazu","precision":"","retentionPolicy":"","database":"database","precisionV18FluxV20":"s","retentionPolicyV18Flux":"","org":"CZU","bucket":"vypocet_v_dotazu","x":1460,"y":1240,"wires":[]},{"id":"5a298088d95c1f3c","type":"influxdb out","z":"c672263e77a16264","influxdb":"c9a6d453edc69ecd","name":"InfluxDB VPS 4 GB RAM vypocet_v_dotazu","measurement":"vypocet_v_dotazu","precision":"","retentionPolicy":"","database":"database","precisionV18FluxV20":"s","retentionPolicyV18Flux":"","org":"CZU","bucket":"vypocet_v_dotazu","x":1510,"y":1320,"wires":[]},{"id":"8aaded0bdf457142","type":"influxdb out","z":"c672263e77a16264","influxdb":"68f19a2852681d08","name":"InfluxDB VPS 8 GB RAM vypocet_v_dotazu","measurement":"vypocet_v_dotazu","precision":"","retentionPolicy":"","database":"database","precisionV18FluxV20":"s","retentionPolicyV18Flux":"","org":"CZU","bucket":"vypocet_v_dotazu","x":1510,"y":1360,"wires":[]},{"id":"01a2d39096f10327","type":"influxdb out","z":"c672263e77a16264","influxdb":"83e5861b73442539","name":"InfluxDB VPS 16 GB RAM vypocet_v_dotazu","measurement":"vypocet_v_dotazu","precision":"","retentionPolicy":"","database":"database","precisionV18FluxV20":"s","retentionPolicyV18Flux":"","org":"CZU","bucket":"vypocet_v_dotazu","x":1510,"y":1400,"wires":[]},{"id":"b98239900edda7c6","type":"join","z":"c672263e77a16264","name":"","mode":"auto","build":"object","property":"payload","propertyType":"msg","key":"topic","joiner":"\\n","joinerType":"str","accumulate":"false","timeout":"","count":"","reduceRight":false,"x":1150,"y":1380,"wires":[["049f07b00ab30ad6"]]},{"id":"d1e4037fec8eff09","type":"batch","z":"c672263e77a16264","name":"","mode":"interval","count":10,"overlap":0,"interval":10,"allowEmptySequence":false,"topics":[],"x":1090,"y":1320,"wires":[["b98239900edda7c6"]]},{"id":"58959033b38453f6","type":"debug","z":"c672263e77a16264","name":"debug 90","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":820,"y":460,"wires":[]},{"id":"4d350d4f51cc92e7","type":"debug","z":"c672263e77a16264","name":"debug 91","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":680,"y":380,"wires":[]},{"id":"91f3ad35d396333f","type":"function","z":"c672263e77a16264","name":"tag-4","func":"var Delay = msg.payload.properties.last_position.delay.actual;\nvar Line = msg.payload.properties.trip.origin_route_name;\nvar Vehicle = msg.payload.properties.trip.vehicle_registration_number;\nvar Type = msg.payload.properties.trip.vehicle_type.description_cs;\nvar Last_stop = msg.payload.properties.last_position.last_stop.id;\nvar Last_stop_order = msg.payload.properties.last_position.last_stop.sequence;\nvar Next_stop = msg.payload.properties.last_position.next_stop.id;\nvar Next_stop_order = msg.payload.properties.last_position.next_stop.sequence;\nvar Position = msg.payload.properties.last_position.state_position;\nvar Final_stop = msg.payload.properties.trip.gtfs.trip_headsign;\nvar Time = msg.payload.properties.last_position.origin_timestamp\n\nmsg.payload = [{\n // @ts-ignore\n time: new Date(Time) / 1000,\n f_delay: Delay,\n f_position: Position,\n f_last_stop: Last_stop,\n f_last_stop_order: Last_stop_order,\n f_next_stop: Next_stop,\n f_next_stop_order: Next_stop_order\n},\n{\n t_line: Line,\n t_vehicle: Vehicle,\n t_type: Type,\n t_final_stop: Final_stop\n}];\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":1010,"y":640,"wires":[["db477c73790aa052"]]},{"id":"1c618204e20aa762","type":"debug","z":"c672263e77a16264","name":"debug 92","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":1200,"y":560,"wires":[]},{"id":"baccf58bbb6988d9","type":"debug","z":"c672263e77a16264","name":"debug 93","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":1200,"y":840,"wires":[]},{"id":"24c70b4f72e33b6c","type":"debug","z":"c672263e77a16264","name":"debug 94","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":1180,"y":1140,"wires":[]},{"id":"049f07b00ab30ad6","type":"debug","z":"c672263e77a16264","name":"debug 95","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":1180,"y":1440,"wires":[]},{"id":"c158d9aaf385b4d4","type":"influxdb","hostname":"127.0.0.1","port":"8086","protocol":"http","database":"database","name":"InfluxDB VPS 2 GB RAM","usetls":false,"tls":"d50d0c9f.31e858","influxdbVersion":"2.0","url":"http://51.178.87.201:8086","rejectUnauthorized":true},{"id":"2f67c3ecc413a71c","type":"influxdb","hostname":"127.0.0.1","port":"8086","protocol":"http","database":"database","name":"InfluxDB tag-6","usetls":false,"tls":"d50d0c9f.31e858","influxdbVersion":"2.0","url":"http://51.210.7.247:8086","rejectUnauthorized":true},{"id":"c9a6d453edc69ecd","type":"influxdb","hostname":"127.0.0.1","port":"8086","protocol":"http","database":"database","name":"InfluxDB VPS 4 GB RAM","usetls":false,"tls":"d50d0c9f.31e858","influxdbVersion":"2.0","url":"http://51.91.77.250:8086","rejectUnauthorized":true},{"id":"68f19a2852681d08","type":"influxdb","hostname":"127.0.0.1","port":"8086","protocol":"http","database":"database","name":"InfluxDB VPS 8 GB RAM","usetls":false,"tls":"d50d0c9f.31e858","influxdbVersion":"2.0","url":"http://51.91.79.113:8086","rejectUnauthorized":true},{"id":"83e5861b73442539","type":"influxdb","hostname":"127.0.0.1","port":"8086","protocol":"http","database":"database","name":"InfluxDB VPS 16 GB RAM","usetls":false,"tls":"d50d0c9f.31e858","influxdbVersion":"2.0","url":"http://51.210.4.128:8086","rejectUnauthorized":true},{"id":"cc4846a0fa470ecf","type":"influxdb","hostname":"127.0.0.1","port":"8086","protocol":"http","database":"database","name":"InfluxDB tag-8","usetls":false,"tls":"d50d0c9f.31e858","influxdbVersion":"2.0","url":"http://51.178.85.174:8086","rejectUnauthorized":true},{"id":"afd8b75be2b7a21d","type":"influxdb","hostname":"127.0.0.1","port":"8086","protocol":"http","database":"database","name":"InfluxDB tag-4","usetls":false,"tls":"d50d0c9f.31e858","influxdbVersion":"2.0","url":"http://51.178.44.170:8086","rejectUnauthorized":true},{"id":"e9cf94d51831b040","type":"influxdb","hostname":"127.0.0.1","port":"8086","protocol":"http","database":"database","name":"InfluxDB vypocet predem","usetls":false,"tls":"d50d0c9f.31e858","influxdbVersion":"2.0","url":"http://51.210.7.173:8086","rejectUnauthorized":true},{"id":"0fdbf5ee2801fc87","type":"influxdb","hostname":"127.0.0.1","port":"8086","protocol":"http","database":"database","name":"InfluxDB vypocet_v_dotazu","usetls":false,"tls":"d50d0c9f.31e858","influxdbVersion":"2.0","url":"http://51.77.203.238:8086","rejectUnauthorized":true},{"id":"d50d0c9f.31e858","type":"tls-config","name":"","cert":"","key":"","ca":"","certname":"","keyname":"","caname":"","servername":"","verifyservercert":false}]