Dr. Zoidberg
Well-known-Papá Pitufo
No está...Voy a ver si ahora aparece el mupeace en la play.
Lo tengo instalado en un celu viejo, pero no tengo la apk. Voy a ver si la rastreo.
Psss...ya la encontré. Acá la subo.
Follow along with the video below to see how to install our site as a web app on your home screen.
Nota: This feature currently requires accessing the site using the built-in Safari browser.
No está...Voy a ver si ahora aparece el mupeace en la play.
El MALP anda muy bien aunque me gustaba mas el mupeace...era mas ... así como para los dinosaurios como yo.
Así quedó la nueva página web del NMP:
Ver el archivo adjunto 170395
Les dejo adjunto el archivo index.cgi (en formato zip) que se encarga de mostrar esa pantalla y ejecutar los comandos de cada botón. Si a alguien le sirve, me sentiré contento.
Claro que se puede, pero primero verificá el funcionamiento del comando ejecutándolo manualmente.sería ejecutar el comando "mopidy local scan" o "mopidyctl local scan", no sé nada de programación así que mas que copiar una plantilla y cambiarle los links no pude hacer, ¿sería posible ejecutar el comando desde un botón en una página local?
#!/bin/sh
# Perform shell variable expansion for any form data
eval "`/usr/bin/proccgi $*`"
echo -n "Content-type: text/html
Pragma: nocache
cache-control: no-cache, must-revalidate, no-store
<!DOCTYPE html>
<html><head>
<style>
table, th, td {
border: 1px solid black;
border-collapse: collapse;
}
th, td {
padding: 12px;
}
</style>
<title>PolloX - NMP</title></head><body>"
case "$FORM_OKBTN" in
"System")
echo "<center><b>System information</b><br><br>"
echo "<table><tr><td nowrap><pre>"
/usr/bin/uptime
echo "</pre></td></tr><tr><td nowrap><pre>"
/sbin/ifconfig eth0
echo "</pre></td></tr><tr><td nowrap><pre>"
/usr/bin/free -m
echo "</pre></td></tr><tr><td nowrap><pre>"
cat /proc/asound/card*/pcm*p/sub*/hw_params
echo "</pre></td></tr><tr><td nowrap><pre>"
sensors
echo "</pre></td></tr></table></center>"
echo "<br></body></html>"
exit 0
;;
"Mount points")
echo "<center>Status of mount points<br><br>"
echo "<table><tr><td nowrap><pre>"
/bin/df -h
echo "</pre></td></tr></table></center>"
echo "<br></body></html>"
exit 0
;;
"Wakeup music storage server")
echo "<center>Waking up music storage</center>"
/usr/sbin/etherwake poner:aca:la:mac:de:la:placa:de:red:donde:esta:la:musica
echo "<br></body></html>"
exit 0
;;
"Reset")
echo "<center>Restarting Player...</center>"
/sbin/reboot
echo "<br></body></html>"
exit 0
;;
"Shutdown")
echo "<center>Shutting down Player...</center>"
/sbin/poweroff
echo "<br></body></html>"
exit 0
;;
"Suspend")
echo "<center>Suspending Player...</center>"
/usr/sbin/pm-suspend&
echo "<br></body></html>"
exit 0
;;
"Hibernate")
echo "<center>Hibernating Player...</center>"
/usr/sbin/pm-hibernate&
echo "<br></body></html>"
exit 0
;;
*)
cat << CLEOF
<center><form method="POST" action="/cgi-bin/index.cgi"><br>
<center><h2>PolloX - NMP</h2></center>
<table>
<tr><td align="center"><h2><b>System commands</b></h2></td></tr>
<tr><td align="center"><input type=submit value="System" name=OKBTN></td></tr>
<tr><td align="center"><input type=submit value="Mount points" name=OKBTN></td></tr>
<tr><td align="center"><input type=submit value="Wakeup music storage server" name=OKBTN></td></tr>
<!-- <tr><td align="center"><input type=submit value="Mount music" name=OKBTN></td></tr> -->
<tr><td align="center"><input type=submit value="Shutdown" name=OKBTN></td></tr>
<tr><td align="center"><input type=submit value="Suspend" name=OKBTN></td></tr>
<tr><td align="center"><input type=submit value="Hibernate" name=OKBTN></td></tr>
<tr><td align="center"><input type=submit value="Reset" name=OKBTN></td></tr>
</table></form></center>
CLEOF
;;
esac
echo "<br></body></html>"
case "$FORM_OKBTN" in
"System")
echo "<center><b>System information</b><br><br>"
echo "<table><tr><td nowrap><pre>"
/usr/bin/uptime
echo "</pre></td></tr><tr><td nowrap><pre>"
/sbin/ifconfig eth0
echo "</pre></td></tr><tr><td nowrap><pre>"
/usr/bin/free -m
echo "</pre></td></tr><tr><td nowrap><pre>"
cat /proc/asound/card*/pcm*p/sub*/hw_params
echo "</pre></td></tr><tr><td nowrap><pre>"
sensors
echo "</pre></td></tr></table></center>"
echo "<br></body></html>"
exit 0
;;
"Mount points")
echo "<center>Status of mount points<br><br>"
echo "<table><tr><td nowrap><pre>"
/bin/df -h
echo "</pre></td></tr></table></center>"
echo "<br></body></html>"
exit 0
;;
"Wakeup music storage server")
echo "<center>Waking up music storage</center>"
/usr/sbin/etherwake poner:aca:la:mac:de:la:placa:de:red:donde:esta:la:musica
echo "<br></body></html>"
exit 0
;;
"Reset")
echo "<center>Restarting Player...</center>"
/sbin/reboot
echo "<br></body></html>"
exit 0
;;
"Shutdown")
echo "<center>Shutting down Player...</center>"
/sbin/poweroff
echo "<br></body></html>"
exit 0
;;
"Suspend")
echo "<center>Suspending Player...</center>"
/usr/sbin/pm-suspend&
echo "<br></body></html>"
exit 0
;;
"Hibernate")
echo "<center>Hibernating Player...</center>"
/usr/sbin/pm-hibernate&
echo "<br></body></html>"
exit 0
;;
*)
<center><form method="POST" action="/cgi-bin/index.cgi"><br>
<center><h2>PolloX - NMP</h2></center>
<table>
<tr><td align="center"><h2><b>System commands</b></h2></td></tr>
<tr><td align="center"><input type=submit value="System" name=OKBTN></td></tr>
<tr><td align="center"><input type=submit value="Mount points" name=OKBTN></td></tr>
<tr><td align="center"><input type=submit value="Wakeup music storage server" name=OKBTN></td></tr>
<!-- <tr><td align="center"><input type=submit value="Mount music" name=OKBTN></td></tr> -->
<tr><td align="center"><input type=submit value="Shutdown" name=OKBTN></td></tr>
<tr><td align="center"><input type=submit value="Suspend" name=OKBTN></td></tr>
<tr><td align="center"><input type=submit value="Hibernate" name=OKBTN></td></tr>
<tr><td align="center"><input type=submit value="Reset" name=OKBTN></td></tr>
</table></form></center>
<tr><td align="center"><input type=submit value="Refrescar Base de Datos" name=OKBTN></td></tr>
"Reset")
echo "<center>Restarting Player...</center>"
/sbin/reboot
echo "<br></body></html>"
exit 0
;;
"Refrescar Base de Datos")
echo "<center>Releyendo musica...</center>"
/ruta/al/mopidy local scan
echo "<br></body></html>"
exit 0
;;
@echo off
@shutdown /h /f
#!/bin/sh
# Perform shell variable expansion for any form data
eval "`/usr/bin/proccgi $*`"
echo -n "Content-type: text/html
Pragma: nocache
cache-control: no-cache, must-revalidate, no-store
<!DOCTYPE html>
<html><head>
<style>
table, th, td {
border: 1px solid black;
border-collapse: collapse;
}
th, td {
padding: 12px;
}
</style>
<title>PolloX - NMP</title></head><body><h2>"
case "$FORM_OKBTN" in
"System")
echo "<center><b>System information</b><br><br>"
echo "<table><tr><td nowrap><pre>"
/usr/bin/uptime
echo "</pre></td></tr><tr><td nowrap><pre>"
/sbin/ifconfig eth0
echo "</pre></td></tr><tr><td nowrap><pre>"
/usr/bin/free -m
echo "</pre></td></tr><tr><td nowrap><pre>"
cat /proc/asound/card*/pcm*p/sub*/hw_params
echo "</pre></td></tr><tr><td nowrap><pre>"
sensors
echo "</pre></td></tr></table></center>"
echo "<br></h2></body></html>"
exit 0
;;
"Mount points")
echo "<center>Status of mount points<br><br>"
echo "<table><tr><td nowrap><pre>"
/bin/df -h
echo "</pre></td></tr></table></center>"
echo "<br></h2></body></html>"
exit 0
;;
"Wakeup music storage server")
echo "<center>Waking up music storage</center>"
/usr/sbin/etherwake Aca:va:la:mac:de:la:placa:de_red
echo "<br></h2></body></html>"
exit 0
;;
"Hibernate music storage server")
echo "<center>Hibernating music storage</center>"
/usr/bin/wget -q -t 1 -T 3 http://aca.va.la_ip.de_la_pc
echo "<br></h2></body></html>"
exit 0
;;
"Reset")
echo "<center>Restarting Player...</center>"
/sbin/reboot
echo "<br></h2></body></html>"
exit 0
;;
"Shutdown")
echo "<center>Shutting down Player...</center>"
/sbin/poweroff
echo "<br></h2></body></html>"
exit 0
;;
*)
cat << CLEOF
<center><form method="POST" action="/cgi-bin/index.cgi"><br>
<center><h1>PolloX - NMP</h1></center>
<table>
<tr><td align="center"><h2><b>System commands</b></h2></td></tr>
<tr><td align="center"><input type=submit value="System" name=OKBTN></td></tr>
<tr><td align="center"><input type=submit value="Mount points" name=OKBTN></td></tr>
<tr><td align="center"><input type=submit value="Wakeup music storage server" name=OKBTN></td></tr>
<tr><td align="center"><input type=submit value="Hibernate music storage server" name=OKBTN></td></tr>
<tr><td align="center"><input type=submit value="Shutdown" name=OKBTN></td></tr>
<tr><td align="center"><input type=submit value="Reset" name=OKBTN></td></tr>
</table></form></center>
CLEOF
;;
esac
echo "<br></body></html>"
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install etherwake
sudo apt-get install wget
Jua!!!! Gracias por hacerme acordar!!!! Se me había olvidado ese "trabajo".Dr. Zoidberg, si leés esto y aún no pudiste hacer andar el sistema con la memoria SD, ¿probaste con Balena Etcher? Está diseñado para memorias SD.