Skip to content

Commit

Permalink
fix: fine tune drinking water
Browse files Browse the repository at this point in the history
  • Loading branch information
Arnaud AMBROSELLI committed Apr 4, 2024
1 parent 16e22d8 commit d2a7e8b
Show file tree
Hide file tree
Showing 15 changed files with 1,469 additions and 39 deletions.
5 changes: 5 additions & 0 deletions api-node/.config-data/credentials.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"DATABASE___dataSourceType": "5b2b331fe2a0b6717eb48531d5ff0ba753e597705a736f04ac7c0803793358172a17efea7d8e42408d3892365cfdd9d52aba875938d88fc8e56dfef522ec7f64e288f525336b8337015ac04e317337a52c5a99d1331dc665c3c77bbf00c4ae277970893f925e75ac37a1",
"DATABASE___port": "7b04282952b65e42fde941b7d43d00884bb80b1526adbd5831ae6196309fed3d3aa8d7cd87b46b3badf1f89fe4955d730e3a02029b4ab5986e54e7beadf986931e3ef35f5508ffd2e66b64e203ef8f380494b599bf30504e28228304bdbd0fd1d94d509b",
"DATABASE___connectionString": "be2c12231ab913b1218ce6932cef0058ed403d480261b0b45c3edd0ab10e5f4ec6ec254abc447bea4de48950bc1da5d306c6e368986d2a7ead4f2fcd49522373703728e31d837b5dcb30c21ef931ae8b618929fb5e81e140e57ce7f12d211d64b8da750f23efd198f0ef61bcbf30257fa6f3d09d17f220126dd557f57220db43cd75ee37744072ded76261227c11"
}
81 changes: 81 additions & 0 deletions api-node/.config-data/dashboard-widgets.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
{
"vUt31YTAP33Q8_2-UXhqL": {
"id": "vUt31YTAP33Q8_2-UXhqL",
"title": "Prisma Migrations",
"_type": "summary-card",
"entity": "_prisma_migrations",
"color": "red",
"icon": "ShoppingCart",
"script": "const actual = await $.query(`select count(*) as \"count\" from \"_prisma_migrations\"`);\nconst relative = await $.query(`select count(*) as \"count\" from \"_prisma_migrations\" where \"finished_at\" < '$.RELATIVE_TIME'`);\n\nreturn [actual[0], relative[0]];\n "
},
"tnkxLz-RjX5Tmifi3rMUt": {
"id": "tnkxLz-RjX5Tmifi3rMUt",
"title": "Bathing Water",
"_type": "summary-card",
"entity": "BathingWater",
"color": "orange",
"icon": "Activity",
"script": "const actual = await $.query(`select count(*) as \"count\" from \"BathingWater\"`);\nconst relative = await $.query(`select count(*) as \"count\" from \"BathingWater\" where \"validity_start\" < '$.RELATIVE_TIME'`);\n\nreturn [actual[0], relative[0]];\n "
},
"I4RDxoyiW8FOGfcZFDvbB": {
"id": "I4RDxoyiW8FOGfcZFDvbB",
"title": "Cron Job",
"_type": "summary-card",
"entity": "CronJob",
"color": "green",
"icon": "ShoppingBag",
"script": "const actual = await $.query(`select count(*) as \"count\" from \"CronJob\"`);\nconst relative = await $.query(`select count(*) as \"count\" from \"CronJob\" where \"created_at\" < '$.RELATIVE_TIME'`);\n\nreturn [actual[0], relative[0]];\n "
},
"J5Olgp2WKn1s-xHR8akXX": {
"id": "J5Olgp2WKn1s-xHR8akXX",
"title": "Drinking Water",
"_type": "summary-card",
"entity": "DrinkingWater",
"color": "blue",
"icon": "Users",
"script": "const actual = await $.query(`select count(*) as \"count\" from \"DrinkingWater\"`);\nconst relative = await $.query(`select count(*) as \"count\" from \"DrinkingWater\" where \"validity_start\" < '$.RELATIVE_TIME'`);\n\nreturn [actual[0], relative[0]];\n "
},
"3CNaQO4OhzyybUutVCrW3": {
"id": "3CNaQO4OhzyybUutVCrW3",
"title": "Feedback",
"_type": "summary-card",
"entity": "Feedback",
"color": "indigo",
"icon": "Award",
"script": "const actual = await $.query(`select count(*) as \"count\" from \"Feedback\"`);\nconst relative = await $.query(`select count(*) as \"count\" from \"Feedback\" where \"created_at\" < '$.RELATIVE_TIME'`);\n\nreturn [actual[0], relative[0]];\n "
},
"M6_lzAHlVRFhd2IY4cSH0": {
"id": "M6_lzAHlVRFhd2IY4cSH0",
"title": "Indice Atmospheric",
"_type": "summary-card",
"entity": "IndiceAtmospheric",
"color": "violet",
"icon": "Download",
"script": "const actual = await $.query(`select count(*) as \"count\" from \"IndiceAtmospheric\"`);\nconst relative = await $.query(`select count(*) as \"count\" from \"IndiceAtmospheric\" where \"validity_start\" < '$.RELATIVE_TIME'`);\n\nreturn [actual[0], relative[0]];\n "
},
"ymVLBziVJ6LBAupcheLG9": {
"id": "ymVLBziVJ6LBAupcheLG9",
"title": "Indice Uv",
"_type": "summary-card",
"entity": "IndiceUv",
"color": "red",
"icon": "Upload",
"script": "const actual = await $.query(`select count(*) as \"count\" from \"IndiceUv\"`);\nconst relative = await $.query(`select count(*) as \"count\" from \"IndiceUv\" where \"validity_start\" < '$.RELATIVE_TIME'`);\n\nreturn [actual[0], relative[0]];\n "
},
"G6_FfIELXU-6ZUn4EJpfN": {
"id": "G6_FfIELXU-6ZUn4EJpfN",
"title": "Municipality",
"_type": "summary-card",
"entity": "Municipality",
"color": "orange",
"icon": "Mail",
"script": "const actual = await $.query(`select count(*) as \"count\" from \"Municipality\"`);\nconst relative = await $.query(`select count(*) as \"count\" from \"Municipality\" where \"created_at\" < '$.RELATIVE_TIME'`);\n\nreturn [actual[0], relative[0]];\n "
},
"vpC_1eaUI0gbmmeszk8jB": {
"id": "vpC_1eaUI0gbmmeszk8jB",
"title": "Prisma Migrations",
"_type": "table",
"entity": "_prisma_migrations",
"script": "return await $.query(`select * from \"_prisma_migrations\" limit 5`)"
}
}
13 changes: 13 additions & 0 deletions api-node/.config-data/list-order.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"__home__widgets": [
"vUt31YTAP33Q8_2-UXhqL",
"tnkxLz-RjX5Tmifi3rMUt",
"I4RDxoyiW8FOGfcZFDvbB",
"J5Olgp2WKn1s-xHR8akXX",
"3CNaQO4OhzyybUutVCrW3",
"M6_lzAHlVRFhd2IY4cSH0",
"ymVLBziVJ6LBAupcheLG9",
"G6_FfIELXU-6ZUn4EJpfN",
"vpC_1eaUI0gbmmeszk8jB"
]
}
Loading

0 comments on commit d2a7e8b

Please sign in to comment.