Skip to content

armgit / core

Public Imported from GitHub
0

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

6.1 KB
Raw Blame
{
  "realms": {
    "default": {
      "appTitle": "OpenRemote Manager Demo",
      "language": "en"
    },
    "smartcity": {
      "styles": ":host > * {--or-app-color2: #F6F7FA; --or-app-color3: #1B1464; --or-app-color4: #662D91;}",
      "logo": "/images/logo_smartcity.svg",
      "logoMobile": "/images/logo-mobile_smartcity.svg"
    },
    "manufacturer": {
      "styles": ":host > * {--or-app-color2: #F6FAFA; --or-app-color3: #1A2456; --or-app-color4: #29ABE2;}",
      "logo": "/images/logo_manufacturer.svg",
      "logoMobile": "/images/logo-mobile_manufacturer.svg"
    }
  },
  "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": {
          "SoilSensorAsset": {
            "viewerStyles": {},
            "panels": [
              {
                "type": "group",
                "title": "underlyingAssets"
              },
              {
                "type": "info",
                "hideOnMobile": true,
                "properties": {
                  "include": []
                },
                "attributes": {
                  "include": ["notes"]
                }
              },
              {
                "type": "info",
                "column": 1,
                "title": "location",
                "properties": {
                  "include": []
                },
                "attributes": {
                  "include": [
                    "location"
                  ],
                  "itemConfig": {
                    "location": {
                      "label": ""
                    }
                  }
                }
              },
              {
                "type": "info",
                "title": "Sensor Values",
                "properties": {
                  "include": []
                },
                "attributes": {
                  "include": [
                    "salinity",
                    "soilTensionMeasured",
                    "temperature"
                  ]
                }
              },
              {
                "type": "info",
                "title": "Settings",
                "properties": {
                  "include": []
                },
                "attributes": {
                  "include": [
                    "soilTensionMin",
                    "soilTensionMax"
                  ]
                }
              },
              {
                "type": "history",
                "column": 1
              },
              {
                "type": "linkedUsers",
                "column": 1
              }
            ]
          },
          "HarvestRobotAsset": {
            "viewerStyles": {},
            "panels": [
              {
                "type": "group",
                "title": "underlyingAssets"
              },
              {
                "type": "info",
                "hideOnMobile": true,
                "properties": {
                  "include": []
                },
                "attributes": {
                  "include": ["notes"]
                }
              },
              {
                "type": "info",
                "column": 1,
                "title": "location",
                "properties": {
                  "include": []
                },
                "attributes": {
                  "include": [
                    "location"
                  ],
                  "itemConfig": {
                    "location": {
                      "label": ""
                    }
                  }
                }
              },
              {
                "type": "info",
                "title": "Operation",
                "properties": {
                  "include": []
                },
                "attributes": {
                  "include": [
                    "operationMode",
                    "speed",
                    "direction"
                  ]
                }
              },
              {
                "type": "info",
                "column": 1,
                "title": "Settings",
                "properties": {
                  "include": []
                },
                "attributes": {
                  "include": [
                    "vegetableType"
                  ]
                }
              },
              {
                "type": "info",
                "title": "Harvested",
                "properties": {
                  "include": []
                },
                "attributes": {
                  "include": [
                    "harvestedSession",
                    "harvestedTotal"
                  ]
                }
              },
              {
                "type": "history",
                "column": 1
              },
              {
                "type": "linkedUsers",
                "column": 1
              }
            ]
          }
        }
      }
    }
  }
}