Skip to content

armgit / core

Public Imported from GitHub
0

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

Minor

Rich Turnerb5f7ec2f5039
diff --git a/client/src/main/resources/org/openremote/app/client/i18n/ManagerMessages.properties b/client/src/main/resources/org/openremote/app/client/i18n/ManagerMessages.properties
index 99335253e..669ce43b7 100644
--- a/client/src/main/resources/org/openremote/app/client/i18n/ManagerMessages.properties
+++ b/client/src/main/resources/org/openremote/app/client/i18n/ManagerMessages.properties
@@ -223,7 +223,7 @@ attributeValueType[TIME_MINUTES]=Time minutes
attributeValueType[RAINFALL]=Rainfall millimetres per hour
attributeValueType[BRIGHTNESS_LUX]=Lux brightness
attributeValueType[DIRECTION_DECIMAL_DEGREES]=Direction in decimal degrees
-attributeValueType[LOCATION]=Location
+attributeValueType[GEO_JSON_POINT]=Coordinates
validationFailureOnAttribute=Attribute error on ''{0}''
validationFailureOnMetaItem=Meta item error on ''{0}'' meta item ''{1}''
validationFailure=Unknown validation failure.
diff --git a/model/src/main/java/org/openremote/model/attribute/AttributeType.java b/model/src/main/java/org/openremote/model/attribute/AttributeType.java
index 8b9f48aea..91d48bb5d 100644
--- a/model/src/main/java/org/openremote/model/attribute/AttributeType.java
+++ b/model/src/main/java/org/openremote/model/attribute/AttributeType.java
@@ -19,13 +19,15 @@
*/
package org.openremote.model.attribute;
+import org.openremote.model.asset.AssetMeta;
import org.openremote.model.value.Value;
+import org.openremote.model.value.Values;
import java.util.Optional;
public enum AttributeType implements AttributeDescriptor {
- LOCATION("location", AttributeValueType.GEO_JSON_POINT),
+ LOCATION("location", AttributeValueType.GEO_JSON_POINT, new MetaItem(AssetMeta.LABEL, Values.create("Location"))),
CONSOLE_NAME("consoleName", AttributeValueType.STRING),