100% open-source IoT Platform - Integrate your devices, add intelligence, build custom apps
Java asset-managementbuildingdashboarddataplatformdevice-managementedge-computingenergyenergy-managementenergy-monitorfleet-managementfleet-telematicsiotiot-applicationiot-platformmodbusmqttmqtt-brokerota-updaterules-enginesmartcity
Add SHOW_ON_DASHBOARD flag to demo assets
Rich Turnerbb18cead2bc1
diff --git a/manager/src/main/java/org/openremote/manager/setup/AbstractManagerSetup.java b/manager/src/main/java/org/openremote/manager/setup/AbstractManagerSetup.javaindex 3d1accb79..0276724db 100644--- a/manager/src/main/java/org/openremote/manager/setup/AbstractManagerSetup.java+++ b/manager/src/main/java/org/openremote/manager/setup/AbstractManagerSetup.java@@ -522,7 +522,7 @@ public abstract class AbstractManagerSetup implements Setup {protected Asset createDemoPeopleCounterAsset(String name, Asset area, GeoJSON location, Supplier<MetaItem[]> agentLinker) {Asset peopleCounterAsset = new Asset(name, PEOPLE_COUNTER, area);peopleCounterAsset.setAttributes(- new AssetAttribute(AttributeType.LOCATION, location.toValue()),+ new AssetAttribute(AttributeType.LOCATION, location.toValue()).addMeta(SHOW_ON_DASHBOARD),new AssetAttribute("peopleCountIn", NUMBER).setMeta(new MetaItem(LABEL, Values.create("People Count In")),@@ -579,7 +579,7 @@ public abstract class AbstractManagerSetup implements Setup {protected Asset createDemoMicrophoneAsset(String name, Asset area, GeoJSON location, Supplier<MetaItem[]> agentLinker) {Asset microphoneAsset = new Asset(name, MICROPHONE, area);microphoneAsset.setAttributes(- new AssetAttribute(AttributeType.LOCATION, location.toValue()),+ new AssetAttribute(AttributeType.LOCATION, location.toValue()).addMeta(SHOW_ON_DASHBOARD),new AssetAttribute("microphoneLevel", SOUND).setMeta(new MetaItem(LABEL, Values.create("Microphone Level")),@@ -642,7 +642,7 @@ public abstract class AbstractManagerSetup implements Setup {protected Asset createDemoEnvironmentAsset(String name, Asset area, GeoJSON location, Supplier<MetaItem[]> agentLinker) {Asset environmentAsset = new Asset(name, ENVIRONMENT_SENSOR, area);environmentAsset.setAttributes(- new AssetAttribute(AttributeType.LOCATION, location.toValue()),+ new AssetAttribute(AttributeType.LOCATION, location.toValue()).addMeta(SHOW_ON_DASHBOARD),new AssetAttribute("temperature", TEMPERATURE).setMeta(new MetaItem(LABEL, Values.create("Temperature Level")),@@ -708,7 +708,7 @@ public abstract class AbstractManagerSetup implements Setup {protected Asset createDemoLightAsset(String name, Asset area, GeoJSON location) {Asset lightAsset = new Asset(name, LIGHT, area);lightAsset.setAttributes(- new AssetAttribute(AttributeType.LOCATION, location.toValue()),+ new AssetAttribute(AttributeType.LOCATION, location.toValue()).addMeta(SHOW_ON_DASHBOARD),new AssetAttribute("lightStatus", BOOLEAN).setMeta(new MetaItem(LABEL, Values.create("Light Status")),diff --git a/manager/src/main/java/org/openremote/manager/setup/builtin/ManagerDemoSetup.java b/manager/src/main/java/org/openremote/manager/setup/builtin/ManagerDemoSetup.javaindex 645b747aa..3e6365541 100644--- a/manager/src/main/java/org/openremote/manager/setup/builtin/ManagerDemoSetup.java+++ b/manager/src/main/java/org/openremote/manager/setup/builtin/ManagerDemoSetup.java@@ -374,7 +374,7 @@ public class ManagerDemoSetup extends AbstractManagerSetup {smartBuilding.setName("Smart Building");smartBuilding.setType(BUILDING);smartBuilding.setAttributes(- new AssetAttribute(AttributeType.LOCATION, SMART_BUILDING_LOCATION.toValue()),+ new AssetAttribute(AttributeType.LOCATION, SMART_BUILDING_LOCATION.toValue()).addMeta(SHOW_ON_DASHBOARD),new AssetAttribute(AttributeType.GEO_STREET, Values.create("Kastanjelaan 500")),new AssetAttribute(AttributeType.GEO_POSTAL_CODE, Values.create(5616)),new AssetAttribute(AttributeType.GEO_CITY, Values.create("Eindhoven")),