@golemio/flow 1.0.8-dev.584979260 → 1.0.9-dev.601546477
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
CREATE SCHEMA IF NOT EXISTS analytic;
|
|
2
2
|
|
|
3
|
-
CREATE TABLE analytic.pedestrians_locations_list (
|
|
3
|
+
CREATE TABLE IF NOT EXISTS analytic.pedestrians_locations_list (
|
|
4
4
|
id serial4 NOT NULL,
|
|
5
5
|
location_name_plain varchar(250) NULL,
|
|
6
6
|
location_name varchar(250) NULL,
|
|
@@ -34,12 +34,14 @@ INSERT INTO analytic.pedestrians_locations_list (location_name_plain,location_na
|
|
|
34
34
|
('Staroměstská věž pevná VI','101004 - Staroměstská věž pevná VI',50.08626,14.41301,'Karlův most','Praha 1','kamera',NULL,NULL,'2020-09-02 00:00:00+02',NULL,NULL,'9',NULL,'https://storage.golemio.cz/intenzita-pesi-dopravy/5.png','https://storage.golemio.cz/intenzita-pesi-dopravy/5-map.png','flow_measurements'),
|
|
35
35
|
('Železniční most - nápl. I (náplavka)','202049 - Železniční most - nápl. I (náplavka)',50.06739,14.41468,'Novoměstská náplavka','Praha 2','kamera',NULL,NULL,'2020-09-02 00:00:00+02',NULL,NULL,'10',NULL,'https://storage.golemio.cz/intenzita-pesi-dopravy/6.png','https://storage.golemio.cz/intenzita-pesi-dopravy/6-map.png','flow_measurements'),
|
|
36
36
|
('Železniční most - náplavka II','202050 - Železniční most - náplavka II',50.06693,14.41480,'Novoměstská náplavka','Praha 2','kamera',NULL,NULL,'2020-09-02 00:00:00+02',NULL,NULL,'11',NULL,'https://storage.golemio.cz/intenzita-pesi-dopravy/7.png','https://storage.golemio.cz/intenzita-pesi-dopravy/7-map.png','flow_measurements'),
|
|
37
|
-
('Železniční most - nápl. I (rampa)','202049 - Železniční most - nápl. I (rampa)',50.06739,14.41468,'Novoměstská náplavka','Praha 2','kamera',NULL,NULL,'2020-09-02 00:00:00+02',NULL,NULL,'10',NULL,'https://storage.golemio.cz/intenzita-pesi-dopravy/6.png','https://storage.golemio.cz/intenzita-pesi-dopravy/6-map.png','flow_measurements')
|
|
37
|
+
('Železniční most - nápl. I (rampa)','202049 - Železniční most - nápl. I (rampa)',50.06739,14.41468,'Novoměstská náplavka','Praha 2','kamera',NULL,NULL,'2020-09-02 00:00:00+02',NULL,NULL,'10',NULL,'https://storage.golemio.cz/intenzita-pesi-dopravy/6.png','https://storage.golemio.cz/intenzita-pesi-dopravy/6-map.png','flow_measurements')
|
|
38
|
+
ON CONFLICT DO NOTHING;
|
|
38
39
|
INSERT INTO analytic.pedestrians_locations_list (location_name_plain,location_name,lat,lng,address,city_district,tech,map_picture,gate_picture,measurement_start,measurement_end,id_equiptment,cube_id,lon,map_image,place_image,"table") VALUES
|
|
39
|
-
('Železniční most - nápl. I (plný profil)','202049 - Železniční most - nápl. I (plný profil)',50.06739,14.41468,'Novoměstská náplavka','Praha 2','kamera',NULL,NULL,'2020-09-02 00:00:00+02',NULL,NULL,'10',NULL,'https://storage.golemio.cz/intenzita-pesi-dopravy/6.png','https://storage.golemio.cz/intenzita-pesi-dopravy/6-map.png','flow_measurements')
|
|
40
|
+
('Železniční most - nápl. I (plný profil)','202049 - Železniční most - nápl. I (plný profil)',50.06739,14.41468,'Novoměstská náplavka','Praha 2','kamera',NULL,NULL,'2020-09-02 00:00:00+02',NULL,NULL,'10',NULL,'https://storage.golemio.cz/intenzita-pesi-dopravy/6.png','https://storage.golemio.cz/intenzita-pesi-dopravy/6-map.png','flow_measurements')
|
|
41
|
+
ON CONFLICT DO NOTHING;
|
|
40
42
|
|
|
41
43
|
|
|
42
|
-
CREATE TABLE analytic.pedestrians_locations_gates (
|
|
44
|
+
CREATE TABLE IF NOT EXISTS analytic.pedestrians_locations_gates (
|
|
43
45
|
direction_id varchar(250) NOT NULL,
|
|
44
46
|
cube_id varchar(250) NOT NULL,
|
|
45
47
|
location_id int4 NOT NULL,
|
|
@@ -58,7 +60,8 @@ INSERT INTO analytic.pedestrians_locations_gates (direction_id,cube_id,location_
|
|
|
58
60
|
('6','10',8,'Náplavka, směr centrum','Směr 1'),
|
|
59
61
|
('9','10',10,'Rampa, směr centrum','Směr 1'),
|
|
60
62
|
('10','10',11,'Plný profil, směr centrum','Směr 1'),
|
|
61
|
-
('11','10',8,'Náplavka, směr Vyšehrad','Směr 2')
|
|
63
|
+
('11','10',8,'Náplavka, směr Vyšehrad','Směr 2')
|
|
64
|
+
ON CONFLICT DO NOTHING;
|
|
62
65
|
INSERT INTO analytic.pedestrians_locations_gates (direction_id,cube_id,location_id,"name",direction_type) VALUES
|
|
63
66
|
('13','10',10,'Rampa, směr Vyšehrad','Směr 2'),
|
|
64
67
|
('15','10',11,'Plný profil, směr Vyšehrad','Směr 2'),
|
|
@@ -69,7 +72,8 @@ INSERT INTO analytic.pedestrians_locations_gates (direction_id,cube_id,location_
|
|
|
69
72
|
('ecoCounter-103061215','ecoCounter-100061215',3,'Směr pod viadukt','Směr 1'),
|
|
70
73
|
('ecoCounter-104061215','ecoCounter-100061215',3,'Směr Výstaviště','Směr 2'),
|
|
71
74
|
('ecoCounter-353245241','ecoCounter-100065230',5,'Směr Planetarium','Směr 1'),
|
|
72
|
-
('ecoCounter-102065230','ecoCounter-100065230',5,'Směr Planetarium','Směr 1')
|
|
75
|
+
('ecoCounter-102065230','ecoCounter-100065230',5,'Směr Planetarium','Směr 1')
|
|
76
|
+
ON CONFLICT DO NOTHING;
|
|
73
77
|
INSERT INTO analytic.pedestrians_locations_gates (direction_id,cube_id,location_id,"name",direction_type) VALUES
|
|
74
78
|
('ecoCounter-353240728','ecoCounter-100065230',5,'Směr Planetarium','Směr 1'),
|
|
75
79
|
('ecoCounter-353235722','ecoCounter-100065230',5,'Směr Planetarium','Směr 1'),
|
|
@@ -80,7 +84,8 @@ INSERT INTO analytic.pedestrians_locations_gates (direction_id,cube_id,location_
|
|
|
80
84
|
('ecoCounter-353235721','ecoCounter-100065230',5,'Směr Holešovice','Směr 2'),
|
|
81
85
|
('ecoCounter-353231242','ecoCounter-100065230',5,'Směr Holešovice','Směr 2'),
|
|
82
86
|
('dir1','wifi1',4,'Směr Holešovice','Směr 1'),
|
|
83
|
-
('dir2','wifi1',4,'Směr Planetarium','Směr 2')
|
|
87
|
+
('dir2','wifi1',4,'Směr Planetarium','Směr 2')
|
|
88
|
+
ON CONFLICT DO NOTHING;
|
|
84
89
|
|
|
85
90
|
COMMENT ON TABLE analytic.pedestrians_locations_gates IS '-- tabulka směrů k jednotlivým lokacím, platí to samé co u lokations_list.
|
|
86
91
|
-- nachází se na https://operator.sharepoint.com/:f:/s/Datova_Platforma/EsE5uSdyLzdImWgyrMY8nFcBzwtH7GOr6TXtzNBn3FLIJw?e=fOov5s a jmenuje se directions_list.csv';
|
|
@@ -404,7 +409,3 @@ AS WITH timeline_category AS (
|
|
|
404
409
|
FROM timeline_category t
|
|
405
410
|
LEFT JOIN real_nrow r ON t."timestamp" = r.start_timestamp AND t.cube_id = r.cube_id AND t.sink_id = r.sink_id
|
|
406
411
|
LEFT JOIN expected_nrow er ON t.cube_id = er.cube_id AND t.sink_id = er.sink_id;
|
|
407
|
-
|
|
408
|
-
-- analytic.v_flow_quality source
|
|
409
|
-
|
|
410
|
-
DROP VIEW IF EXISTS analytic.v_flow_quality
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@golemio/flow",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.9-dev.601546477",
|
|
4
4
|
"description": "Golemio Flow Module",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -27,8 +27,8 @@
|
|
|
27
27
|
"devDependencies": {
|
|
28
28
|
"@commitlint/cli": "^11.0.0",
|
|
29
29
|
"@commitlint/config-conventional": "^11.0.0",
|
|
30
|
-
"@golemio/cli": "1.
|
|
31
|
-
"@golemio/core": "1.2.
|
|
30
|
+
"@golemio/cli": "1.3.0",
|
|
31
|
+
"@golemio/core": "1.2.14",
|
|
32
32
|
"@golemio/db-common": "1.0.1",
|
|
33
33
|
"@golemio/eslint-config": "^1.0.2",
|
|
34
34
|
"@ovos-media/ts-transform-paths": "^1.7.18-1",
|