Moderator Control Panel ]

DVBlast Tunner status web interface

News and information about TBS products.

DVBlast Tunner status web interface

Postby ahmedramze » Tue Jul 18, 2017 7:26 am

Hello
I just complete php page for tunner signal SNR and signal strength for running dvblast , need to add -r /tmp/1.sock to dvlast command for example


Code: Select all
dvblast -a 1 -e -Y -W -f  12340000  -s 27500000 -v 18 -m psk_8  -r /tmp/4.sock -c /root/dvblast_3.conf

the code for page to read from soct that made on /tmp folder or elese


im try to add code but form limit only 10000 char and also not accept php or txt or any source files will split it into two post

TBS also please add it to your web interface for all products also please add ( -Y and -W and -e to pass the EPG and network information for channels like name etc)


and the result for 4 tunner or more you can copy and past just change scoket number.

dvb.PNG




Code: Select all
table align="center" border=1>
  <tr>
    <th>

<h1>< Tunner LNB-0 Status ></h1>
<B>Signal SNR:</B>
<style>
#meter_item
{
    width: 100%;
}
 
#scale {
    display: table;
    width: 100%;
    padding: 0px 0px 0px 0px;
    margin: 2px 0px 10px 0px;
    border: 0px 0px 0px 0px;
    text-align: center;
}
 
#scale li {
    width: 10%;
    display: table-cell;
    white-space: nowrap;
}?
</style>
 
<div style="width: 100%">
    <meter id="meter_item" min="0" value=<?php $sig = shell_exec('dvblastctl -r  /tmp/1.sock fe_status | grep -i "snr"| cut -d\: -f2 | sed -e
"s| ||g" '); $sig = intval ($sig / 655,2); echo $sig;?> max="100" ></meter>
    <ul id="scale">
    <li style="width: 5%"><span></span></li>
    <li><span id="scale">10</span></li>
    <li><span id="scale">20</span></li>
    <li><span id="scale">30</span></li>
    <li><span id="scale">40</span></li>
    <li><span id="scale">50</span></li>
    <li><span id="scale">60</span></li>
    <li><span id="scale">70</span></li>
    <li><span id="scale">80</span></li>
    <li><span id="scale">90</span></li>
    <li style="width: 10%"><span id="scale"></span></li>
    </ul>
</div>
<B>Signal Strength:</B>
<style>
#meter_item
{
    width: 100%;
}
 
#scale {
    display: table;
    width: 100%;
    padding: 0px 0px 0px 0px;
    margin: 2px 0px 10px 0px;
    border: 0px 0px 0px 0px;
    text-align: center;
}
 
#scale li {
    width: 10%;
    display: table-cell;
    white-space: nowrap;
}?
</style>
 
<div style="width: 100%">
    <meter id="meter_item" min="0" value=<?php $sig = shell_exec('dvblastctl -r  /tmp/1.sock fe_status | grep -i "strength"| cut -d\: -f2 | se
d -e "s| ||g" '); $sig = intval ($sig / 655,2); echo $sig;?> max="100" ></meter>
    <ul id="scale">
    <li style="width: 5%"><span></span></li>
    <li><span id="scale">10</span></li>
    <li><span id="scale">20</span></li>
    <li><span id="scale">30</span></li>
    <li><span id="scale">40</span></li>
    <li><span id="scale">50</span></li>
    <li><span id="scale">60</span></li>
    <li><span id="scale">70</span></li>
    <li><span id="scale">80</span></li>
    <li><span id="scale">90</span></li>
    <li style="width: 10%"><span id="scale"></span></li>
    </ul>
</div>


</th>
<th>
<h1>< Tunner LNB-1 Status ></h1>
<B>Signal SNR:</B>
<style>
#meter_item
{
    width: 100%;
}
 
#scale {
    display: table;
    width: 100%;
    padding: 0px 0px 0px 0px;
    margin: 2px 0px 10px 0px;
    border: 0px 0px 0px 0px;
    text-align: center;
}
 
#scale li {
    width: 10%;
    display: table-cell;
    white-space: nowrap;
}?
</style>
 
<div style="width: 100%">
    <meter id="meter_item" min="0" value=<?php $sig = shell_exec('dvblastctl -r  /tmp/2.sock fe_status | grep -i "snr"| cut -d\: -f2 | sed -e
"s| ||g" '); $sig = intval ($sig / 655,2); echo $sig;?> max="100" ></meter>
    <ul id="scale">
    <li style="width: 5%"><span></span></li>
    <li><span id="scale">10</span></li>
    <li><span id="scale">20</span></li>
    <li><span id="scale">30</span></li>
    <li><span id="scale">40</span></li>
    <li><span id="scale">50</span></li>
    <li><span id="scale">60</span></li>
    <li><span id="scale">70</span></li>
    <li><span id="scale">80</span></li>
    <li><span id="scale">90</span></li>
    <li style="width: 10%"><span id="scale"></span></li>
    </ul>
</div>
<B>Signal Strength:</B>
<style>
#meter_item
{
    width: 100%;
}
 
#scale {
    display: table;
    width: 100%;
    padding: 0px 0px 0px 0px;
    margin: 2px 0px 10px 0px;
    border: 0px 0px 0px 0px;
    text-align: center;
}
 
#scale li {
    width: 10%;
    display: table-cell;
    white-space: nowrap;
}?
</style>
 
<div style="width: 100%">
    <meter id="meter_item" min="0" value=<?php $sig = shell_exec('dvblastctl -r  /tmp/2.sock fe_status | grep -i "strength"| cut -d\: -f2 | se
d -e "s| ||g" '); $sig = intval ($sig / 655,2); echo $sig;?> max="100" ></meter>
    <ul id="scale">
    <li style="width: 5%"><span></span></li>
    <li><span id="scale">10</span></li>
    <li><span id="scale">20</span></li>
    <li><span id="scale">30</span></li>
    <li><span id="scale">40</span></li>
    <li><span id="scale">50</span></li>
    <li><span id="scale">60</span></li>
    <li><span id="scale">70</span></li>
    <li><span id="scale">80</span></li>
    <li><span id="scale">90</span></li>
    <li style="width: 10%"><span id="scale"></span></li>
    </ul>
</div>

</th>
</tr>
 <tr>
<td>
<h1>< Tunner LNB-2 Status ></h1>
<B>Signal SNR:</B>
<style>
#meter_item
{
    width: 100%;
}
 
#scale {
    display: table;
    width: 100%;
    padding: 0px 0px 0px 0px;
    margin: 2px 0px 10px 0px;
    border: 0px 0px 0px 0px;
    text-align: center;
}
 
#scale li {
    width: 10%;
    display: table-cell;
    white-space: nowrap;
}?
</style>



ahmedramze
 
Posts: 19
Joined: Tue Dec 03, 2013 10:16 am

Re: DVBlast Tunner status web interface

Postby ahmedramze » Tue Jul 18, 2017 7:28 am

2nd part

Code: Select all

<
 
<div style="width: 100%">
    <meter id="meter_item" min="0" value=<?php $sig = shell_exec('dvblastctl -r  /tmp/3.sock fe_status | grep -i "snr"| cut -d\: -f2 | sed -e
"s| ||g" '); $sig = intval ($sig / 655,2); echo $sig;?> max="100" ></meter>
    <ul id="scale">
    <li style="width: 5%"><span></span></li>
    <li><span id="scale">10</span></li>
    <li><span id="scale">20</span></li>
    <li><span id="scale">30</span></li>
    <li><span id="scale">40</span></li>
    <li><span id="scale">50</span></li>
    <li><span id="scale">60</span></li>
    <li><span id="scale">70</span></li>
    <li><span id="scale">80</span></li>
    <li><span id="scale">90</span></li>
    <li style="width: 10%"><span id="scale"></span></li>
    </ul>
</div>
<B>Signal Strength:</B>
<style>
#meter_item
{
    width: 100%;
}
 
#scale {
    display: table;
    width: 100%;
    padding: 0px 0px 0px 0px;
    margin: 2px 0px 10px 0px;
    border: 0px 0px 0px 0px;
    text-align: center;
}
 
#scale li {
    width: 10%;
    display: table-cell;
    white-space: nowrap;
}?
</style>
 
<div style="width: 100%">
    <meter id="meter_item" min="0" value=<?php $sig = shell_exec('dvblastctl -r  /tmp/3.sock fe_status | grep -i "strength"| cut -d\: -f2 | se
d -e "s| ||g" '); $sig = intval ($sig / 655,2); echo $sig;?> max="100" ></meter>
    <ul id="scale">
    <li style="width: 5%"><span></span></li>
    <li><span id="scale">10</span></li>
    <li><span id="scale">20</span></li>
    <li><span id="scale">30</span></li>
    <li><span id="scale">40</span></li>
    <li><span id="scale">50</span></li>
    <li><span id="scale">60</span></li>
    <li><span id="scale">70</span></li>
    <li><span id="scale">80</span></li>
    <li><span id="scale">90</span></li>
    <li style="width: 10%"><span id="scale"></span></li>
    </ul>
</div>


</td>
<td>
<h1>< Tunner LNB-3 Status ></h1>
<B>Signal SNR:</B>
<style>
#meter_item
{
    width: 100%;
}
 
#scale {
    display: table;
    width: 100%;
    padding: 0px 0px 0px 0px;
    margin: 2px 0px 10px 0px;
    border: 0px 0px 0px 0px;
    text-align: center;
}
 
#scale li {
    width: 10%;
    display: table-cell;
    white-space: nowrap;
}?
</style>
 
<div style="width: 100%">
    <meter id="meter_item" min="0" value=<?php $sig = shell_exec('dvblastctl -r  /tmp/4.sock fe_status | grep -i "snr"| cut -d\: -f2 | sed -e
"s| ||g" '); $sig = intval ($sig / 655,2); echo $sig;?> max="100" ></meter>
    <ul id="scale">
    <li style="width: 5%"><span></span></li>
    <li><span id="scale">10</span></li>
    <li><span id="scale">20</span></li>
    <li><span id="scale">30</span></li>
    <li><span id="scale">40</span></li>
    <li><span id="scale">50</span></li>
    <li><span id="scale">60</span></li>
    <li><span id="scale">70</span></li>
    <li><span id="scale">80</span></li>
    <li><span id="scale">90</span></li>
    <li style="width: 10%"><span id="scale"></span></li>
    </ul>
</div>
<B>Signal Strength:</B>
<style>
#meter_item
{
    width: 100%;
}
 
#scale {
    display: table;
    width: 100%;
    padding: 0px 0px 0px 0px;
    margin: 2px 0px 10px 0px;
    border: 0px 0px 0px 0px;
    text-align: center;
}
 
#scale li {
    width: 10%;
    display: table-cell;
    white-space: nowrap;
}?
</style>
 
<div style="width: 100%">
    <meter id="meter_item" min="0" value=<?php $sig = shell_exec('dvblastctl -r  /tmp/4.sock fe_status | grep -i "strength"| cut -d\: -f2 | se
d -e "s| ||g" '); $sig = intval ($sig / 655,2); echo $sig;?> max="100" ></meter>
    <ul id="scale">
    <li style="width: 5%"><span></span></li>
    <li><span id="scale">10</span></li>
    <li><span id="scale">20</span></li>
    <li><span id="scale">30</span></li>
    <li><span id="scale">40</span></li>
    <li><span id="scale">50</span></li>
    <li><span id="scale">60</span></li>
    <li><span id="scale">70</span></li>
    <li><span id="scale">80</span></li>
    <li><span id="scale">90</span></li>
    <li style="width: 10%"><span id="scale"></span></li>
    </ul>
</div>

</td>
  </tr>
</table>
 
ahmedramze
 
Posts: 19
Joined: Tue Dec 03, 2013 10:16 am

Re: DVBlast Tunner status web interface

Postby steven » Fri Dec 08, 2017 10:35 am

Hi ahmedramze

very nice thanks for your share ; )

Kind Regards

steven
steven
 
Posts: 1950
Joined: Fri Aug 06, 2010 3:23 pm

Re: DVBlast Tunner status web interface

Postby sajjads24 » Thu Jun 28, 2018 6:30 am

hi
please add this app to fedora or rpmfusion repository for install on fedora 28 ?
please add to repo or make rpm package ?
User avatar
sajjads24
 
Posts: 21
Joined: Sun Jun 26, 2016 9:58 pm

Re: DVBlast Tunner status web interface

Postby AraldoJanes » Sat May 04, 2019 1:36 am

Hi....this will install a few binaries and scripts in/usr/local/bin and create the folder /usr/local/share/rtranscode containing a configuration file and and a default (empty) channel database. An existing channel database (from rtranscode 3) will not be overwritten and you can continue to use it, although the database format has slightly changed.
AraldoJanes
 
Posts: 1
Joined: Fri May 03, 2019 1:17 am


Return to News

Who is online

Users browsing this forum: No registered users and 1 guest