====== Perl-Modul Stats4Lox ======
The module Stats4Lox provides functions to simplify communication to Loxone Miniservers and InfluxDB.
This module automatically includes the following modules:
* LoxBerry::IO
* JSON
====== Functions ======
* [[plugins:statistics_4_loxone:stats4lox_entwickler_dokumentation:perlmodul_stats4lox:stats4loxinflux_lineprot|Stats4Lox::influx_lineprot]]
* [[plugins:statistics_4_loxone:stats4lox_entwickler_dokumentation:perlmodul_stats4lox:stats4loxlox2telegraf|Stats4Lox::lox2telegraf]]
* [[plugins:statistics_4_loxone:stats4lox_entwickler_dokumentation:perlmodul_stats4lox:stats4loxmsget_value|Stats4Lox::msget_value]]
* [[plugins:statistics_4_loxone:stats4lox_entwickler_dokumentation:perlmodul_stats4lox:stats4loxtelegrafinternals|Stats4Lox::telegrafinternals]]
====== Usage ======
To use the module in your code, you have to load it in your code. There are two options:
Using "use lib". Note that you have to use a relative path! This adds the folder to the module search path and loads the module.
#!/usr/bin/perl
use LoxBerry::System;
use FindBin qw($Bin);
use lib "$Bin/../../../../$lbpbindir/libs/";
use Stats4Lox;
\\
Using "require". This only loads the specified module.
#!/usr/bin/perl
use LoxBerry::System;
require "$lbpbindir/libs/Stats4Lox.pm";
====== Debugging ======
To debug the module, use that code in your program:
$Stats4Lox::DEBUG = 1;
This will send debugging messages to STDERR.