domoticz api/json url Topic is solved

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
pvklink
Posts: 822
Joined: Wednesday 12 November 2014 15:01
Target OS: Raspberry Pi / ODroid
Domoticz version: latest b
Contact:

domoticz api/json url

Post by pvklink »

I have a test device which receives a lot of content.

when i do a http://ip:port/#/Devices/1472/Log/

I get the new and older content.
I can manually delete the history by clicking manually on delete/clean on the domoticz interface
Is there a way to clean this automatic by calling a json url. ( i can make a timer for it)
I search the documentation but i cant find an extention to the below command to delete the content incl history
when i do a http://ip:port/#/Devices/1472/Log/
Raspberry (raspbian on rpi 3) , Domoticz Beta, dzVents , RFXtrx433e, P1, Hue, Yeelight, Zwave+, X10, ESP(easy), MQTT,Weather Underground, System Alive Checker, Domoticz Remote Server to RPI with Google Assistant,
Jablotron connection, Ikea
User avatar
waaren
Posts: 6028
Joined: Tuesday 03 January 2017 14:18
Target OS: Linux
Domoticz version: Beta
Location: Netherlands
Contact:

Re: domoticz api/json url

Post by waaren »

pvklink wrote: Wednesday 17 February 2021 14:01 I have a test device which receives a lot of content.
What is the deviceType / devicesubType ?
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
pvklink
Posts: 822
Joined: Wednesday 12 November 2014 15:01
Target OS: Raspberry Pi / ODroid
Domoticz version: latest b
Contact:

Re: domoticz api/json url

Post by pvklink »

text
Naamloos.jpg
Naamloos.jpg (158.29 KiB) Viewed 896 times
Raspberry (raspbian on rpi 3) , Domoticz Beta, dzVents , RFXtrx433e, P1, Hue, Yeelight, Zwave+, X10, ESP(easy), MQTT,Weather Underground, System Alive Checker, Domoticz Remote Server to RPI with Google Assistant,
Jablotron connection, Ikea
User avatar
waltervl
Posts: 6691
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2025.1
Location: NL
Contact:

Re: domoticz api/json url

Post by waltervl »

What are your logging settings (Menu Setup - Settings - tab logging)? Perhaps they are set too high...?
https://www.domoticz.com/wiki/Applicati ... og_History
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
User avatar
waaren
Posts: 6028
Joined: Tuesday 03 January 2017 14:18
Target OS: Linux
Domoticz version: Beta
Location: Netherlands
Contact:

Re: domoticz api/json url

Post by waaren »

pvklink wrote: Wednesday 17 February 2021 14:37 text
As found on the API / JSON wiki page It should work with

http://<IP:PORT>/json.htm?idx=<IDX>&type=command&param=clearlightlog
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: domoticz api/json url

Post by waaren »

waltervl wrote: Wednesday 17 February 2021 14:58 What are your logging settings (Menu Setup - Settings - tab logging)? Perhaps they are set too high...?
https://www.domoticz.com/wiki/Applicati ... og_History
The setting you refer to is system wide. The question the OP asked is for a specific device.
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
pvklink
Posts: 822
Joined: Wednesday 12 November 2014 15:01
Target OS: Raspberry Pi / ODroid
Domoticz version: latest b
Contact:

Re: domoticz api/json url

Post by pvklink »

yessss, it works!
Raspberry (raspbian on rpi 3) , Domoticz Beta, dzVents , RFXtrx433e, P1, Hue, Yeelight, Zwave+, X10, ESP(easy), MQTT,Weather Underground, System Alive Checker, Domoticz Remote Server to RPI with Google Assistant,
Jablotron connection, Ikea
User avatar
waltervl
Posts: 6691
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2025.1
Location: NL
Contact:

Re: domoticz api/json url

Post by waltervl »

waaren wrote: Wednesday 17 February 2021 15:03
waltervl wrote: Wednesday 17 February 2021 14:58 What are your logging settings (Menu Setup - Settings - tab logging)? Perhaps they are set too high...?
https://www.domoticz.com/wiki/Applicati ... og_History
The setting you refer to is system wide. The question the OP asked is for a specific device.
I know, but sometimes it is better to solve the root cause (setting to high) then the symptom (extra delete log of a sensor with a lot of data) as that also will need a maintenance (script)... ;-)
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest