LAN DS18B20 WEB Temperature Monitor 1 meter Cable
www.WEB-Relays.com
www.Facebook.com/KMtronic

Music On Console is a lightweight music player

Spread the love

Music OConsole is a lightweight music player which consists of 2 parts, a server (Moc) and a player/interface (Mocp).

 

PHP example file

<?php

$ret = exec("sudo mocp -S", $out, $err);
 print_r($ret);
 print_r($out);
 print_r($err);
 
 $ret = exec("amixer -q sset Master 70%", $out, $err);
 
 $ret = exec("sudo mocp -l /music/sounds/01.mp3", $out, $err);
 
 sleep(10);
 $ret = exec("sudo mocp -l /music/sounds/02.mp3", $out, $err);
 
 sleep(10); 
 $ret = exec("amixer -q sset Master 80%", $out, $err);
 
 sleep(10);
 $ret = exec("amixer -q sset Master 90%", $out, $err);
 print_r($ret);
 print_r($out);
 print_r($err);

 ?>




 

 

 

KMtronic LAN WEB 8 Channel Relay board