Disable Log per device

Use this forum to discuss possible implementation of a new feature before opening a ticket.
A developer shall edit the topic title with "[xxx]" where xxx is the id of the accompanying tracker id.
Duplicate posts about the same id. +1 posts are not allowed.
Post Reply
poudenes
Posts: 555
Joined: Wednesday 08 March 2017 10:42
Target OS: Linux
Domoticz version: 3.8993
Location: Amsterdam
Contact:

Disable Log per device

Post by poudenes » Friday 20 July 2018 20:31

Hi All,

Maybe a idea that you can disable logging per device. I have a motion sensor and i don't want a log for it.
Because it logs all the movement so within couple of days have more then 1000 log lines.

WHen you can disable it per device you can turn it on or off.
RPi3 with OSMC - RPi3 with Domoticz - Dashticz - MiLight - Nanolead Aurora - KaKu - Logitech Hamony - Nest - RFLink

SweetPants
Posts: 2274
Joined: Friday 12 July 2013 21:24
Target OS: Linux
Domoticz version: V4.10067
Location: The Netherlands
Contact:

Re: Disable Log per device

Post by SweetPants » Tuesday 31 July 2018 8:48

You can also use a cron job to clear these lines directly in the database (that's is what I do for all my motion sensors) because of excessive log growth.

Code: Select all

#!/bin/bash

DAYS=1

/usr/bin/sqlite3 /home/pi/domoticz/domoticz.db "DELETE FROM lightinglog WHERE DeviceRowID IN (88,113,114,129) AND Date <= datetime(  'now', '-$DAYS day' );"
Ubuntu 16.04.5 LTS, Intel NUC, MySensors 2.3.0-alpha, Pro Mini 3.3/8M RFM69(HW), ESP8266 (SDK2.2.0), Sonoff, RFLink, RFXcom, MQTT, NodeRed, Domoticz Beta (from source)

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest