From 47745a4420aac2b5c011db535b17870e7fe50ba4 Mon Sep 17 00:00:00 2001 From: vbs <> Date: Sat, 28 Oct 2017 18:35:21 +0000 Subject: [PATCH] 70_KODI: added reading jsonResponse which contains the last received message from Kodi git-svn-id: https://svn.fhem.de/fhem/trunk@15336 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/CHANGED | 2 ++ fhem/FHEM/70_KODI.pm | 3 +++ 2 files changed, 5 insertions(+) diff --git a/fhem/CHANGED b/fhem/CHANGED index 5127c9b5e..0807be655 100644 --- a/fhem/CHANGED +++ b/fhem/CHANGED @@ -1,5 +1,7 @@ # Add changes at the top of the list. Keep it in ASCII, and 80-char wide. # Do not insert empty lines here, update check depends on it. + - feature: 70_KODI: added reading jsonResponse which contains the last + received message from Kodi - feature: 46_Aqicn: FHEMWEB text color formated, thanks to maddhin - update: 74_74_XiaomiFlowerMonitor: new version, change internal routine - feature: fhemweb_iconRadio.js: optionally colorize selected icons instead diff --git a/fhem/FHEM/70_KODI.pm b/fhem/FHEM/70_KODI.pm index 5e74ea552..a35e4ec7a 100644 --- a/fhem/FHEM/70_KODI.pm +++ b/fhem/FHEM/70_KODI.pm @@ -1800,6 +1800,9 @@ sub KODI_HTTP_Request($$@) The interval which is used to check if Kodi is still alive (by sending a JSON ping) and also it is used to update current player item.
  • disable
    Disables the device. All connections will be closed immediately.
  • +
  • jsonResponseReading
    + When enabled then every received JSON message from Kodi will be saved into the reading jsonResponse so the last received message is always available. + Also an event is triggered upon each update.