问题描述
我想要一个Pi网站用于音频。
6个按钮(可能更多)
每个按钮启动服务器端命令。
按钮1点击/var/www/cgi-bin/christmas.sh
christmas.sh =
#! / bin / bash
stop.sh
mplayer -loop 0 / home / pi /音乐/圣诞节/ *
按钮2点击/var/www/cgi-bin/rock.sh
rock.sh =
#!/ bin / bash
stop.sh
mplayer -loop 0 / home / pi / Music / rock / *
非常感谢任何帮助。
谢谢
I would like a Pi Website for audio.
6 buttons (maybe more)
Each button launches a server side command.
button 1 on click /var/www/cgi-bin/christmas.sh
christmas.sh =
#!/bin/bash
stop.sh
mplayer -loop 0 /home/pi/Music/christmas/*
button 2 on click /var/www/cgi-bin/rock.sh
rock.sh =
#!/bin/bash
stop.sh
mplayer -loop 0 /home/pi/Music/rock/*
Any help is very appreciated.
Thanks
推荐答案
这篇关于如何在发送服务器端Coommands的Pi上创建本地网站的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!