Fix freemobile-munin (bug since we use multiaccount)
This commit is contained in:
parent
dde19633d3
commit
953e843921
1 changed files with 4 additions and 1 deletions
|
|
@ -17,6 +17,7 @@ You need to configure the plugin like that:
|
|||
[freemobile]
|
||||
user florent
|
||||
env.HOME /home/florent
|
||||
env.phonenumber 06ABCDEFGH
|
||||
env.freemonitored voice sms mms data specialvoice
|
||||
env.cache_expire 3600
|
||||
timeout 30
|
||||
|
|
@ -52,7 +53,9 @@ my $cachedir = $ENV{'HOME'} . '/.config/weboob/munin/';
|
|||
my $cachefile = "$cachedir/freemobile-munin";
|
||||
|
||||
my $refreshtime = $ENV{'cache_expire'} || 10_800;
|
||||
my $weboob = '/usr/bin/env weboob-cli -b freemobile ICapBill get_details coin -f table';
|
||||
my $phone = $ENV{'phonenumber'};
|
||||
|
||||
my $weboob = '/usr/bin/env weboob-cli -b freemobile ICapBill get_details ' . $phone . '@freemobile -f table';
|
||||
my $cache_fh;
|
||||
|
||||
my %label = (
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue