Page 1 of 1
Feature request: json error message
Posted: Thursday 14 May 2020 8:38
by Ewaldharmsen
it is currently possible to send a message to domoticz with
Code: Select all
command¶m=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¶m=addlogmessage&message=test&level=4
Re: Feature request: json error message
Posted: Thursday 14 May 2020 10:43
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
Re: Feature request: json error message
Posted: Thursday 14 May 2020 16:31
by waaren
@Ewaldharmsen
would it be possible to describe your use case for this? If possible in the comments of the PR.
Re: Feature request: json error message
Posted: Thursday 14 May 2020 20:01
by Ewaldharmsen
done