Automatically deleting statistics: possible workaround

Einklappen
X
 
  • Zeit
  • Anzeigen
Alles löschen
neue Beiträge
  • J V
    LoxBus Spammer
    • 28.08.2015
    • 367

    #1

    Automatically deleting statistics: possible workaround

    Hello,

    I'm thinking of enabling some statistics, but am a bit worried about the space it takes. Is there a way to automatically clear the statistics for a variable (e.g. after x recorded values, or delete at a specific day/time, delete all entries older than some time interval, ...)?

    If the functionality is not there by default, can it maybe be "hacked in" by using the web api:
    Find out more how you control and configuration of a Loxone system is possible through simple HTTP commands.

    Using the file commands:
    -
    http://miniserver/dev/fslist/ Lists the root directory of the SD card
    http://miniserver/dev/fslist/path/ Lists the directory path on the SD card
    http://miniserver/dev/fsget/filepath/ Retrieves a file (replace filepath with the file name)
    http://miniserver/dev/fsdel/filepath/ Deletes a file (replace filepath with the file name)
    -
    it may be possible to delete a file from the Loxone by calling its own web api.

    The question the remains... which files store the statistics...?

    Any suggestions?


    Jörg
  • J V
    LoxBus Spammer
    • 28.08.2015
    • 367

    #2
    Just managed to verify things... (still using 7.4.4.14)
    The good news:
    - for a statistic, the matching file has a generated name: for sure it can be identified which one is for which variable by adding one at a time and checking the name of the new file in the folder /stats
    - it can be deleted from the web interface
    The bad news:
    - once the file is deleted, it is not recreated. It is only recreated upon boot of the miniserver.

    So cleaning the file and hoping that it starts over again does not seem to work...
    Searching furhter for options...

    Kommentar

    Lädt...