diff options
| author | Natasha Moongrave <natasha@256phi.eu> | 2026-06-12 13:37:13 +0200 |
|---|---|---|
| committer | Natasha Moongrave <natasha@256phi.eu> | 2026-06-12 13:37:13 +0200 |
| commit | 15d50528cf86e93bad19f65f1e4b47af49e94d71 (patch) | |
| tree | caaa600a8f38df84dc269a3844d276393e90262c /home/rices/schrottkatze/eww/configDir/scripts/iceTacho.nu | |
| parent | 72ee2b5a1e65ce804d6e1dcfd11aec06385594cc (diff) | |
Nuked everything
Diffstat (limited to 'home/rices/schrottkatze/eww/configDir/scripts/iceTacho.nu')
| -rwxr-xr-x | home/rices/schrottkatze/eww/configDir/scripts/iceTacho.nu | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/home/rices/schrottkatze/eww/configDir/scripts/iceTacho.nu b/home/rices/schrottkatze/eww/configDir/scripts/iceTacho.nu deleted file mode 100755 index 5225dc2..0000000 --- a/home/rices/schrottkatze/eww/configDir/scripts/iceTacho.nu +++ /dev/null @@ -1,38 +0,0 @@ -#!/usr/bin/env nu - -const TABLE = { - 401: 280 - 402: 280 - 403: 330 - 406: 330 - 407: 320 - 408: 320 - 411: 230 - 415: 230 - 412: 265 - 605: 200 -}; - -def main [ ] { - loop { - if ((iw dev wlp4s0 link | lines | filter {|it| $it =~ "WIFIonICE" } | length) == 1) { - let iceData = http get https://iceportal.de/api1/rs/status; - let tzn = $iceData.tzn; - let br = $iceData.series; - let speed = $iceData.speed; - let speedfrac = $speed / ($TABLE | get $br); - - print ({ - tzn: $tzn, - br: $br, - speed: $speed, - frac: $speedfrac - } | to json -r); - - sleep 2sec; - } else { - print "null"; - sleep 5sec; - } - } -} |
