This repository has no description
658 B
22 lines
1{ ... }:
2{
3 perSystem =
4 { pkgs, ... }:
5 {
6 # Prometheus exporter for the ARRIS TG3442DE "Vodafone Station":
7 # DOCSIS channel power/SNR/lock and router status from its web UI.
8 packages.vodafone-station-exporter =
9 (pkgs.writeShellApplication {
10 name = "vodafone-station-exporter";
11 text = ''
12 exec ${
13 pkgs.python3.withPackages (p: [
14 p.requests
15 p.cryptography
16 ])
17 }/bin/python3 ${./vodafone_station_exporter.py} "$@"
18 '';
19 }).overrideAttrs
20 { passthru.usage = builtins.readFile ./usage.kdl; };
21 };
22}