Add get_object_list in generic-munin
This commit is contained in:
parent
6d82bed915
commit
edbe8b454d
3 changed files with 51 additions and 7 deletions
|
|
@ -23,7 +23,7 @@ rm banbank
|
|||
export cache_expire=7200
|
||||
export HOME="/home/flo"
|
||||
export capa="ICapGauge"
|
||||
export do="get_last_measure,501060-level"
|
||||
export do="get_last_measure,501060-level,sachsen"
|
||||
export import="from weboob.capabilities.gauge import ICapGauge"
|
||||
export attribvalue="level"
|
||||
export title="Niveau de l'elbe"
|
||||
|
|
@ -75,6 +75,26 @@ echo "========= ICapBill config"
|
|||
./bill config
|
||||
rm bill
|
||||
|
||||
# Monitor all balances of all subscriptions
|
||||
export cache_expire=7200
|
||||
export HOME="/home/flo"
|
||||
export capa="ICapBill"
|
||||
export do="get_balance"
|
||||
export get_object_list="iter_subscription"
|
||||
export import="from weboob.capabilities.bill import ICapBill"
|
||||
export attribvalue="price"
|
||||
export title="Solde restant"
|
||||
export vlabel="Solde"
|
||||
|
||||
echo "========= ICapBill2 fetch"
|
||||
cp ./generic-munin ./bill
|
||||
./bill
|
||||
echo "========= ICapBill2 config"
|
||||
./bill config
|
||||
rm bill
|
||||
|
||||
unset get_object_list
|
||||
|
||||
# Monitor temperature in Rennes
|
||||
|
||||
export cache_expire=7200
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue