NAS๋ ํ์๋ฒ์์ ํ ๋ ํธ ํด๋ผ์ด์ธํธ๋ก Transmission์ ๋ง์ด ์ฌ์ฉํ๋๋ฐ Pushbullet์ ์ด์ฉํ์ฌ์ ๋ค์ด๋ก๋ ์๋ฃ ์๋ฆผ์ ์ค๋งํธํฐ(์๋๋ก์ด๋, ์์ดํฐ)์ด๋ ํฌ๋กฌ ๋ฑ์์ ๋ฐ์ ๋ณผ ์ ์์ต๋๋ค.
์์
ํ๊ฒฝ์ ์ฐ๋ถํฌ 14.04 ์
๋๋ค.
์ฒซ์งธ,ย Pushbullet ๊ฐ์
ํ Account Settings์์ Access Token์ ๊ธฐ๋กํ์ฌ ๋ก๋๋ค.
๋์งธ, Shell Script๋ฅผ ์์ฑํ์ฌ ์ค๋๋ค.
1 | vi ~/transmission-notification.sh |
1 2 3 4 5 6 7 8 9 10 11 12 | #!/bin/bash # pushbullet access token token="[์ฒซ์งธ ๊ณผ์ ์์ ์ป์ ACCESS TOKEN]" # push transmission notification to a pushbullet pushNotification() { curl -u $token: https://api.pushbullet.com/v2/pushes -d type=note -d title="Transmission" -d body="$TR_TORRENT_NAME download completed ($TR_TIME_LOCALTIME)" --insecure } # call function pushNotification |
1 | chmod a+x ~/transmission-notification.sh |
์ ์งธ, Transmission ์ค์ ์ ๋ณ๊ฒฝํ์ฌ ์ค๋๋ค.
1 2 | sudo service transmission-daemon stop sudo vi /etc/transmission-daemon/settings.json |
1 2 | "script-torrent-done-enabled": true, "script-torrent-done-filename": "/home/[USER_NAME]/transmission-notification.sh", |
1 | sudo service transmission-daemon start |
์ฐธ์กฐ:ย http://geserkhan.blogspot.kr/2014/08/transmission.html