-# do the users and nodes
-my $users = DXChannel::get_all_users();
-my $nodes = DXChannel::get_all_nodes();
-my $uptime = main::uptime();
-#dbg "$users $nodes $uptime\n";
-if (open M, ">$dir/users") {
- print M "$users\n$nodes\n$uptime\nUsers and Nodes\n";
- close M;
-}
-print MC <<"EOF";
-#
-# local users and nodes
-#
-Target[users]: `cat /spider/mrtg/users`
-MaxBytes1[users]: 500
-MaxBytes2[users]: 200
-Title[users]: Users and Nodes for $main::mycall
-Options[users]: withzeroes, gauge, growright, nopercent, integer
-YLegend[users]: Users \& Nodes
-YTicsFactor[users]: 1
-ShortLegend[users]: \
-Legend1[users]:Maximum No of Users
-Legend2[users]:Maximum No of Nodes
-LegendI[users]:Users
-LegendO[users]:Nodes
-PageTop[users]: <H1>Users and Nodes on GB7DJK</H1>
- <TABLE>
- <TR><TD>System:</TD> <TD>$main::mycall</TD></TR>
- <TR><TD>Maintainer:</TD> <TD>$main::myemail</TD></TR>
- <TR><TD>Description:</TD><TD>Users \& Nodes </TD></TR>
- </TABLE>
-EOF
-
-# do the total users and nodes
-if ($want{totalusers} || $want{all}) {
- $nodes = Route::Node::count();
- $users = Route::User::count();
- #dbg "$users $nodes $uptime\n";
- if (open M, ">$dir/totalusers") {
- print M "$users\n$nodes\n$uptime\nTotal Users and Nodes\n";
- close M;
+ # wwv stuff
+ if ($want{wwv} || $want{all}) {
+ $mc->cfgprint('wwvsfi', [qw(integer gauge)], 1000, 'WWV <font color=#00cc00>SFI</font> and <font color=#0000ff>R</font>', 'SFI / R', 'SFI', 'R') unless $want{dataonly};
+ $mc->data('wwvsfi', ($Geomag::sfi || $WCY::sfi), ($Geomag::r || $WCY::r), 'WWV SFI and R') unless $want{cfgonly};
+ $mc->cfgprint('wwvka', [qw(gauge)], 1000, 'WWV <font color=#00cc00>A</font> and <font color=#0000ff>K</font>',
+ 'A / K', 'A', 'K') unless $want{dataonly};
+ $mc->data('wwvka', $Geomag::a, $Geomag::k, 'WWV A and K') unless $want{cfgonly};
+ dbg("mrtg: WWV A: $Geomag::a K: $Geomag::k") if isdbg("mrtg");