Skip to content

armgit / core

Public Imported from GitHub
0

100% open-source IoT Platform - Integrate your devices, add intelligence, build custom apps

Add preset filters to the demo setup (#2950)

Koena9798d14f318
diff --git a/deployment/manager/app/manager_config.json b/deployment/manager/app/manager_config.json
index e5186e272..9ff2ec43c 100644
--- a/deployment/manager/app/manager_config.json
+++ b/deployment/manager/app/manager_config.json
@@ -16,6 +16,62 @@
}
},
"pages": {
+ "map": {
+ "filters": [
+ {
+ "label": "CO2 > 100",
+ "realms": [
+ "smartcity"
+ ],
+ "query": {
+ "types": [
+ "EnvironmentSensorAsset"
+ ],
+ "attributes": {
+ "items": [
+ {
+ "name": {
+ "predicateType": "number",
+ "value": "ozoneLevel"
+ },
+ "value": {
+ "predicateType": "number",
+ "value": 100,
+ "operator": "GREATER_THAN"
+ }
+ }
+ ]
+ }
+ }
+ },
+ {
+ "label": "Irrigation water flow > 10",
+ "realms": [
+ "manufacturer"
+ ],
+ "query": {
+ "types": [
+ "IrrigationAsset"
+ ],
+ "attributes": {
+ "items": [
+ {
+ "name": {
+ "predicateType": "number",
+ "value": "flowWater"
+ },
+ "value": {
+ "predicateType": "number",
+ "value": 10,
+ "operator": "GREATER_THAN"
+ }
+ }
+ ]
+ }
+ }
+ }
+ ]
+ },
"assets": {
"viewer": {
"assetTypes": {