Skip to content

armgit / core

Public Imported from GitHub
0

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

Minor

Christian Bauer27baa684060c
diff --git a/README.md b/README.md
index cac8d757c..aeda45588 100644
--- a/README.md
+++ b/README.md
@@ -18,10 +18,10 @@ Join us on the [community group](https://groups.google.com/forum/#!forum/openrem
## OpenRemote Projects
-* [Agent](https://github.com/openremote/openremote/agent) - Connects sensors and actuators to an IoT network and provides intelligence at the edge of the network. Co-locate agents with backend services or install agents on gateways, close to devices.
+* [Agent](https://github.com/openremote/openremote/tree/master/agent) - Connects sensors and actuators to an IoT network and provides intelligence at the edge of the network. Co-locate agents with backend services or install agents on gateways, close to devices.
-* [Manager](https://github.com/openremote/openremote/manager) - Provides IoT backend services and a web-based operations frontend and management application for agents and domain assets. Design custom data flow, rules, notifications, and build end-user interfaces.
+* [Manager](https://github.com/openremote/openremote/tree/master/manager) - Provides IoT backend services and a web-based operations frontend and management application for agents and domain assets. Design custom data flow, rules, notifications, and build end-user interfaces.
-* [Console](https://github.com/openremote/openremote/console) - Render and deploy custom end-user interfaces as applications for Web, iOS and Android.
+* [Console](https://github.com/openremote/openremote/tree/master/console) - Render and deploy custom end-user interfaces as applications for Web, iOS and Android.
TBC...
\ No newline at end of file
diff --git a/container/src/main/java/org/openremote/container/util/MapAccess.java b/container/src/main/java/org/openremote/container/util/MapAccess.java
index 0eaf62d3f..a58f700c7 100644
--- a/container/src/main/java/org/openremote/container/util/MapAccess.java
+++ b/container/src/main/java/org/openremote/container/util/MapAccess.java
@@ -19,6 +19,7 @@
*/
package org.openremote.container.util;
+import java.math.BigDecimal;
import java.util.Map;
/**
@@ -52,4 +53,15 @@ public class MapAccess {
return defaultValue;
}
+ static public BigDecimal getDecimal(Map<String, String> map, String key, BigDecimal defaultValue) {
+ if (map.containsKey(key)) {
+ try {
+ return new BigDecimal(map.get(key));
+ } catch (Exception ex) {
+ return defaultValue;
+ }
+ }
+ return defaultValue;
+ }
+
}
\ No newline at end of file