admin-scripts/pi1/bin/armbian-tx-stats-html.nu
2024-06-20 10:12:41 -05:00

12 lines
466 B
Plaintext
Executable File

#!/usr/bin/env nu
(
transmission-remote -n 'transmission:transmission' -l
| from ssv
| to html
| str replace '<style>body { background-color:white;color:black; }</style>' '<head><title>Armbian torrent stats</title><link type="text/css" rel="stylesheet" href="style2.css"/></head>'
| save -f -r /home/jas/staging/armbian-torrentstats.html
)
scp /home/jas/staging/armbian-torrentstats.html jas@192.168.2.102:/home/jas/public/html/armbian-torrentstats.html