ajout heimdall

This commit is contained in:
2025-01-01 11:24:01 +01:00
parent f8be42e486
commit c52f60fca9
1477 changed files with 15692 additions and 0 deletions

View File

@@ -0,0 +1,37 @@
<?php namespace App\SupportedApps\VuPlus;
class VuPlus extends \App\SupportedApps implements \App\EnhancedApps {
public $config;
public function login()
{
// no login required.
}
public function test()
{
$test = parent::appTest($this->url('api/about'));
echo $test->status;
}
public function livestats()
{
$res = parent::execute($this->url('api/about'));
$content = (string) $res->getBody(true);
$result_data = json_decode($content);
if(!isset($result_data) || !isset($result_data->service) ||
!$result_data->service->result)
return parent::getLiveStats("inactive", ["channel" => "Standby"]);
$data = [
"channel" => $result_data->service->name,
];
return parent::getLiveStats("active", $data);
}
public function url($endpoint)
{
$api_url = parent::normaliseurl($this->config->url).$endpoint;
return $api_url;
}
}

View File

@@ -0,0 +1,10 @@
{
"appid": "095afe286edc44dd8241e7a33138bc6d",
"name": "VuPlus",
"website": "http://vuplus.com",
"license": "commercial",
"description": "The Vu+ (pronounced VuPlus), is a series of Linux-powered DVB satellite, terrestrial digital television receivers (set-top box)",
"enhanced": true,
"tile_background": "light",
"icon": "vuplus.png"
}

View File

@@ -0,0 +1,11 @@
<h2>{{ __('app.apps.config') }} ({{ __('app.optional') }}) @include('items.enable')</h2>
<div class="items">
<div class="input">
<label>{{ strtoupper(__('app.url')) }}</label>
{!! Form::text('config[override_url]', (isset($item) && isset($item->getconfig()->override_url) ? $item->getconfig()->override_url : null), array('placeholder' => __('app.apps.override'), 'id' => 'override_url', 'class' => 'form-control')) !!}
</div>
<div class="input">
<button style="margin-top: 32px;" class="btn test" id="test_config">Test</button>
</div>
</div>

View File

@@ -0,0 +1,6 @@
<ul class="livestats">
<li>
<span class="title">Channel</span>
<span><strong>{!! $channel !!}</strong></span>
</li>
</ul>

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB