Feature request: json error message

Topics (not sure which fora)
when not sure where to post, post here and mods will move it to right forum.

Moderators: leecollings, remb0

Post Reply
Ewaldharmsen
Posts: 130
Joined: Tuesday 07 February 2017 15:00
Target OS: Linux
Domoticz version:
Contact:

Feature request: json error message

Post by Ewaldharmsen »

it is currently possible to send a message to domoticz with

Code: Select all

command&param=addlogmessage&message=
. This is always a status message. Would be nice if could specify which type of message it is like:

Code: Select all

command&param=addlogmessage&message=test&level=4
User avatar
waaren
Posts: 6028
Joined: Tuesday 03 January 2017 14:18
Target OS: Linux
Domoticz version: Beta
Location: Netherlands
Contact:

Re: Feature request: json error message

Post by waaren »

Ewaldharmsen wrote: Thursday 14 May 2020 8:38 it is currently possible to send a message to domoticz with the addlogmessage JSON This is always a status message. Would be nice if could specify which type of message it is.
I created PR 4161 for this request. If @gizmocuz agree that it is a worthwhile feature, it will be merged in one of the next builds.

implemention

Code: Select all

addlogmessage&message=test                               ==>> status
addlogmessage&message=test&level=1 or level=default      ==>> normal 
addlogmessage&message=test&level=2 or level=status       ==>> status
addlogmessage&message=test&level=4 or level=error        ==>> error
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
User avatar
waaren
Posts: 6028
Joined: Tuesday 03 January 2017 14:18
Target OS: Linux
Domoticz version: Beta
Location: Netherlands
Contact:

Re: Feature request: json error message

Post by waaren »

@Ewaldharmsen

would it be possible to describe your use case for this? If possible in the comments of the PR.
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
Ewaldharmsen
Posts: 130
Joined: Tuesday 07 February 2017 15:00
Target OS: Linux
Domoticz version:
Contact:

Re: Feature request: json error message

Post by Ewaldharmsen »

done
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest