anavas

Openwrt MR3020 madplay radio

Aug 2nd, 2017
40
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.54 KB | None | 0 0
  1. uci add system button
  2. uci set system.@button[-1].button=wps
  3. uci set system.@button[-1].action=released
  4. uci set system.@button[-1].handler='killall madplay'
  5. uci set system.@button[-1].min=1
  6. uci set system.@button[-1].max=3
  7. uci add system button
  8. uci set system.@button[-1].button=wps
  9. uci set system.@button[-1].action=pressed
  10. uci set system.@button[-1].handler='/root/play.sh'
  11. uci commit system
  12.  
  13.  
  14. Vaanavil FM = http://66.55.145.43:7770/
  15. Ilayaraja = http://212.83.138.48:8340/
  16. KJ Jeyuthas = http://66.55.145.43:7834/
  17. OLD Tamil Song = http://www.geethamradio.com:8020/old_hifi.mp3
  18. Isaiaruvy FM = http://162.252.85.85:7150/
  19. Puthu paadal = http://66.55.145.43:7759/
  20. Playtamil FM = http://164.132.63.75:9998/
  21. Radio Mirchi = http://164.132.63.75:9994/
  22. Haris Jayaraj = http://66.55.145.43:7812/
  23. Sorriyan FM = http://104.238.193.114:7077/
  24.  
  25. /usr/bin/killall madplay
  26. sleep 1
  27. /usr/bin/wget -O - http://162.252.85.85:7150/ | /usr/bin/madplay - &
  28.  
  29. #!/bin/sh
  30. value=`cat /root/config.txt`
  31. r0="http://66.55.145.43:7770/"
  32. r1="http://212.83.138.48:8340/"
  33. r2="http://66.55.145.43:7834/"
  34. r3="http://www.geethamradio.com:8020/old_hifi.mp3"
  35. r4="http://162.252.85.85:7150/"
  36. r5="http://66.55.145.43:7759/"
  37. r6="http://164.132.63.75:9998/"
  38. r7="http://164.132.63.75:9994/"
  39. r8="http://66.55.145.43:7812/"
  40. r9="http://104.238.193.114:7077/"
  41. eval rad='$'r$value
  42. echo $rad
  43. /usr/bin/killall madplay
  44. sleep 1
  45. /usr/bin/wget -O - $rad | /usr/bin/madplay - &
  46. if [ $value = 9 ]
  47. then
  48. value=0
  49. else
  50. value=$(expr "$value" + 1)
  51. fi
  52. echo $value > /root/config.txt
Add Comment
Please, Sign In to add comment