-
Notifications
You must be signed in to change notification settings - Fork 167
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3267288
commit 238b251
Showing
640 changed files
with
13,896 additions
and
10,026 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
# | ||
# 2018-01-26 TC moOde 4.0 | ||
# 2018-07-11 TC moOde 4.2 | ||
# - change from hw to plughw | ||
# | ||
|
||
AUDIODEV=hw:0,0 | ||
AUDIODEV=plughw:0,0 |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
#!/usr/bin/php | ||
<?php | ||
/** | ||
* moOde audio player (C) 2014 Tim Curtis | ||
* http://moodeaudio.org | ||
* | ||
* This Program is free software; you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
* the Free Software Foundation; either version 3, or (at your option) | ||
* any later version. | ||
* | ||
* This Program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
* | ||
* 2018-07-11 TC moOde 4.2 | ||
* | ||
*/ | ||
|
||
while(true) { | ||
// cpu frequency | ||
$cpufreq = file_get_contents('/sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq'); | ||
if ($cpufreq < 1000000) { | ||
$cpufreq = number_format($cpufreq / 1000, 0, '.', ''); | ||
$cpufreq .= ' MHz'; | ||
} | ||
else { | ||
$cpufreq = number_format($cpufreq / 1000000, 1, '.', ''); | ||
$cpufreq .= ' GHz'; | ||
} | ||
|
||
// cpu temp | ||
$cputemp = substr(file_get_contents('/sys/class/thermal/thermal_zone0/temp'), 0, 2); | ||
|
||
// cpu utilization | ||
$cpuload = exec("top -bn 2 -d 0.75 | grep 'Cpu(s)' | tail -n 1 | awk '{print $2 + $4 + $6}'"); | ||
$cpuload = number_format($cpuload,0,'.',''); | ||
// memory utilization | ||
$memtotal = exec("grep MemTotal /proc/meminfo | awk '{print $2}'"); | ||
$memavail = exec("grep MemAvailable /proc/meminfo | awk '{print $2}'"); | ||
$memutil = number_format(100 * (1 - ($memavail / $memtotal)), 0, '.', ''); | ||
// number of cores | ||
$cores = trim(exec('grep -c ^processor /proc/cpuinfo')); | ||
// cpu architecture | ||
$sysarch = trim(shell_exec('uname -m')); | ||
echo 'CPU: ' . $cpufreq . ' | LOAD: ' . $cpuload . '%' . ' | TEMP: ' . $cputemp . "\xB0" . 'C | RAM_USED: ' . $memutil . '%' . ' | CORES: ' . $cores . ' | ARCH: ' . $sysarch . "\r"; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[playlist] | ||
numberofentries=1 | ||
File1=http://69.46.90.84:8032 | ||
File1=http://strm112.1.fm/blues_mobile_mp3 | ||
Title1=1.FM - Blues Radio | ||
Length1=-1 | ||
Version=2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[playlist] | ||
numberofentries=1 | ||
File1=http://184.75.223.178/proxy/sdsyygqt?mp=/mp3-320 | ||
File1=http://cristina.torontocast.com:8007/mp3-320 | ||
Title1=JB Radio-2 (320K) | ||
Length1=-1 | ||
version=2 |
2 changes: 1 addition & 1 deletion
2
...ADIO/CDNX 1 - Classic & New Indie Alt.pls → ...RADIO/NME 1 - Classic & New Indie Alt.pls
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[playlist] | ||
numberofentries=1 | ||
File1=http://svr1.msmn.co:8136 | ||
Title1=CDNX 1 - Classic & New Indie Alt | ||
Title1=NME 1 - Classic & New Indie Alt | ||
Length1=-1 | ||
version=2 |
2 changes: 1 addition & 1 deletion
2
...ADIO/CDNX 2 - New & Upfront Indie Alt.pls → ...RADIO/NME 2 - New & Upfront Indie Alt.pls
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[playlist] | ||
numberofentries=1 | ||
File1=http://msmn.co:8118 | ||
Title1=CDNX 2 - New & Upfront Indie Alt | ||
Title1=NME 2 - New & Upfront Indie Alt | ||
Length1=-1 | ||
version=2 |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Binary file not shown.
Oops, something went wrong.