admin-scripts/pi1/bin/armbian-tx-stats-html.nu

12 lines
466 B
Plaintext
Raw Normal View History

2024-03-26 05:05:38 +01:00
#!/usr/bin/env nu
(
2024-04-02 19:32:26 +02:00
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
2024-03-26 05:05:38 +01:00
)
scp /home/jas/staging/armbian-torrentstats.html jas@192.168.2.102:/home/jas/public/html/armbian-torrentstats.html