Domoticz API and Log lines

All kinds of 'OS' scripts

Moderator: leecollings

Post Reply
jacobh
Posts: 21
Joined: Wednesday 04 November 2020 10:12
Target OS: -
Domoticz version:
Contact:

Domoticz API and Log lines

Post by jacobh »

I'm using the Domoticz API by means of curl "https://<address>:<port>/json.htm?type=command&... etc.

Works just fine, but I would like to surpress the messages that come with that in the Log (Status).
Funny things is, I only see messages posted there when param=switchlight. Any other param sofar (udevice, updateuservariable and others)? No log line (which is what I want).

Examples that don't produce a status line in the log:
type=command&param=udevice&idx=4514&nvalue=0&svalue=51.0
type=command&param=updateuservariable&vname=locatiei&vtype=String&vvalue=53.1327383,6.1459101

Example that does produce a status line in the log:
type=command&param=switchlight&idx=214&switchcmd=On

Can anybody explain why it doesn't work for this particular type of parameter or better: is there (another) way to surpress these log messages?

I read something about adding the phrase &loglevel=0 to surpress, but that doesn't seem to do anything.
User avatar
jvdz
Posts: 2269
Joined: Tuesday 30 December 2014 19:25
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.107
Location: Netherlands
Contact:

Re: Domoticz API and Log lines

Post by jvdz »

They look to me like old API usage issue. A quote of what I posted yesterday:
Have a look here: https://wiki.domoticz.com/Domoticz_API/ ... and_newer)
This change has been implemented since the previous stable version showing a warning in the log when using the old format.
Support for the old format has been removed in this latest version.
New Garbage collection scripts: https://github.com/jvanderzande/GarbageCalendar
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest