diff --git a/app/SupportedApps/Runeaudio.php b/app/SupportedApps/Runeaudio.php
new file mode 100644
index 00000000..9a149b50
--- /dev/null
+++ b/app/SupportedApps/Runeaudio.php
@@ -0,0 +1,94 @@
+buildRequest('status');
+ switch($res->getStatusCode()) {
+ case 200:
+ echo 'Successfully connected to the API';
+ break;
+ case 401:
+ echo 'Failed: Invalid credentials';
+ break;
+ case 404:
+ echo 'Failed: Please make sure your URL is correct and that there is a trailing slash';
+ break;
+ default:
+ echo 'Something went wrong... Code: '.$res->getStatusCode();
+ break;
+ }
+ }
+
+ public function executeConfig()
+ {
+ $output = '';
+ $artist = '';
+ $song_title = '';
+ $res = $this->buildRequest('currentsong');
+ $array = explode("\n", $res->getBody());
+ foreach($array as $item) {
+ $item_array = explode(": ", $item);
+ if ($item_array[0] == 'Artist') {
+ $artist = $item_array[1];
+ } elseif ($item_array[0] == 'Title') {
+ $song_title = $item_array[1];
+ }
+ }
+
+ $output = '
';
+
+ if (strlen($artist) > 12) {
+ $output = $output.'- '.$artist.'
';
+ } else {
+ $output = $output.'- '.$artist.'
';
+ }
+
+ $output = $output.'
';
+
+ if (strlen($song_title) > 12) {
+ $output = $output.'- '.$song_title.'
';
+ } else {
+ $output = $output.'- '.$song_title.'
';
+ }
+
+ $output = $output.'
';
+
+ return $output;
+ }
+
+ public function buildRequest($endpoint)
+ {
+ $config = $this->config;
+ $url = $config->url;
+
+ $url = rtrim($url, '/');
+
+ $api_url = $url.'/command/?cmd='.$endpoint;
+ //die( $api_url.' --- ');
+
+ $client = new Client(['http_errors' => false]);
+ $res = $client->request('GET', $api_url);
+ return $res;
+
+ }
+
+
+}
diff --git a/public/css/app.css b/public/css/app.css
index ec4de6a2..399fdb8c 100644
--- a/public/css/app.css
+++ b/public/css/app.css
@@ -1151,6 +1151,24 @@ hr {
line-height: 1;
}
+.title-marquee {
+ width: 125px;
+ overflow: hidden;
+}
+
+.title-marquee span {
+ white-space: nowrap;
+ transform: translate(0, 0);
+ animation: marquee 8s linear;
+}
+
+@keyframes marquee {
+ 0% { transform: translate(0, 0); }
+ 20% { transform: translate(0, 0); }
+ 95% { transform: translate(-200%, 0); }
+ 100% { transform: translate(-200%, 0); }
+}
+
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus
diff --git a/resources/views/supportedapps/runeaudio.blade.php b/resources/views/supportedapps/runeaudio.blade.php
new file mode 100644
index 00000000..e0a6b92f
--- /dev/null
+++ b/resources/views/supportedapps/runeaudio.blade.php
@@ -0,0 +1,21 @@
+{{ __('app.apps.config') }} ({{ __('app.optional') }})
+
+
+
+
+
+ {!! Form::hidden('config[enabled]', '0') !!}
+
+
+
+
+
+
diff --git a/storage/app/public/supportedapps/runeaudio.png b/storage/app/public/supportedapps/runeaudio.png
new file mode 100644
index 00000000..af58703d
Binary files /dev/null and b/storage/app/public/supportedapps/runeaudio.png differ