diff --git a/README.md b/README.md index 7b4d8a8..5a7ebc4 100644 --- a/README.md +++ b/README.md @@ -4,8 +4,10 @@ Get stats from a remote Transmission instance using the Transmission RPC API, an For other people using this, change the stylesheet in `template.html` to your preferred one. Also edit the following for your remote Transmission instance: -```go -transmissionbt, err := transmissionrpc.New("", "username", "password", nil) +```shell +export RPC_HOST="" +export RPC_USER="" +export RPC_PASSWORD="" ``` My personal use case for this involves running the Go binary `go-transmission-stats` on a systemd timer that triggers the corresponding service every 12 hours. @@ -35,6 +37,9 @@ ExecStart=sh -c '/usr/local/bin/go-transmission-stats > /home/user/public/html/t User= Group= WorkingDirectory=/home/user/go-transmission-stats +ENVIRONMENT="RPC_HOST=" +ENVIRONMENT="RPC_USER=" +ENVIRONMENT="RPC_PASSWORD=" ``` Create the systemd timer: