From e84adf696707d5bc6675e8567e22b9a8d6400bd2 Mon Sep 17 00:00:00 2001 From: "Ch. Damsky" Date: Mon, 16 Oct 2023 09:28:26 +0200 Subject: [PATCH] v2.7 --- .style | 2 +- GoogleMaps/module.php | 12 ++++++++---- README.md | 4 ++++ library.json | 4 ++-- libs/CommonStubs | 2 +- 5 files changed, 16 insertions(+), 8 deletions(-) diff --git a/.style b/.style index 06be750..aa1d1e3 160000 --- a/.style +++ b/.style @@ -1 +1 @@ -Subproject commit 06be75036081fa6312823d98528f818cf943578b +Subproject commit aa1d1e30fb1a47caf8d69ad618e4e90312ac2675 diff --git a/GoogleMaps/module.php b/GoogleMaps/module.php index 18dbb60..13db2fe 100644 --- a/GoogleMaps/module.php +++ b/GoogleMaps/module.php @@ -12,13 +12,16 @@ class GoogleMaps extends IPSModule private static $STATICMAP_URL_MAXLEN = 8192; - private $ModuleDir; - public function __construct(string $InstanceID) { parent::__construct($InstanceID); - $this->ModuleDir = __DIR__; + $this->CommonContruct(__DIR__); + } + + public function __destruct() + { + $this->CommonDestruct(); } public function Create() @@ -27,7 +30,8 @@ public function Create() $this->RegisterPropertyString('api_key', ''); - $this->RegisterAttributeString('UpdateInfo', ''); + $this->RegisterAttributeString('UpdateInfo', json_encode([])); + $this->RegisterAttributeString('ModuleStats', json_encode([])); } private function CheckModuleConfiguration() diff --git a/README.md b/README.md index fcd2c50..f54747d 100644 --- a/README.md +++ b/README.md @@ -148,6 +148,10 @@ Für die Karten muss man die benötigten API's (siehe unten) aktivieren und ggfs ## 7. Versions-Historie +- 2.7 @ 19.09.2023 09:25 + - Neu: Ermittlung von Speicherbedarf und Laufzeit (aktuell und für 31 Tage) und Anzeige im Panel "Information" + - update submodule CommonStubs + - 2.6 @ 04.07.2023 14:44 - Vorbereitung auf IPS 7 / PHP 8.2 - update submodule CommonStubs diff --git a/library.json b/library.json index 3f9c03f..df31c1f 100644 --- a/library.json +++ b/library.json @@ -6,7 +6,7 @@ "compatibility": { "version": "6.2" }, - "version": "2.6", + "version": "2.7", "build": 0, - "date": 1688474692 + "date": 1695108305 } diff --git a/libs/CommonStubs b/libs/CommonStubs index 7e3ffd0..eed2055 160000 --- a/libs/CommonStubs +++ b/libs/CommonStubs @@ -1 +1 @@ -Subproject commit 7e3ffd05494f4c38a2c3f21867d68091ae54e3e6 +Subproject commit eed205506110e614f6895d771f814d6d682aa471