[sickbeard_] Show counts as stacked areas

Signed-off-by: Olivier Mehani <shtrom@ssji.net>
This commit is contained in:
Olivier Mehani 2019-10-10 12:17:45 +11:00 committed by Lars Kruse
parent 6ca9f65af9
commit 118457fa44
2 changed files with 10 additions and 5 deletions

View File

@ -46,9 +46,12 @@ if(defined $ARGV[0] && $ARGV[0] eq 'config')
graph_title Episodes
graph_vlabel Episodes
graph_category tv
down.label Downloaded
snatched.label Snatched
total.label Total
total.draw AREA
down.label Downloaded
down.draw AREA
snatched.label Snatched
snatched.draw STACK
EOC
;
@ -60,9 +63,9 @@ my $req = $get->get($sURL);
my $json = JSON::Any->jsonToObj($req->content());
if ($json->{result} eq 'success') {
print "total.value $json->{data}->{ep_total}\n";
print "down.value $json->{data}->{ep_downloaded}\n";
print "snatched.value $json->{data}->{ep_snatched}\n";
print "total.value $json->{data}->{ep_total}\n";
exit 0;
} else {
print "$json->{message}\n";

View File

@ -46,8 +46,10 @@ if(defined $ARGV[0] && $ARGV[0] eq 'config')
graph_title Shows
graph_vlabel Shows
graph_category tv
active.label Active
total.label Total
total.draw AREA
active.label Active
active.draw AREA
EOC
;
@ -59,8 +61,8 @@ my $req = $get->get($sURL);
my $json = JSON::Any->jsonToObj($req->content());
if ($json->{result} eq 'success') {
print "active.value $json->{data}->{shows_active}\n";
print "total.value $json->{data}->{shows_total}\n";
print "active.value $json->{data}->{shows_active}\n";
exit 0;
} else {
print "$json->{message}\n";