WebInterface fr Octagon SF10x8 by dancefan
V111.15

This is my version of the web interface for the fortis receivers.
It was inspired by the web interface from the AAF forum.
The translation cam from user vevs@octagon-forum.com, Thank you

The design matches the On screen display of the octagon series.
The interface can easily extended for additional pages.

If EPGSacna is also active, the stored epg information is used and actualized.

To display OSD information, OSDCapture is used.page

Problems:
Since there is no session management, multible web sessions will disturb ech other.
Especially the explorer page will create unexpected results.
You maydamage you files. :-(

Available pages:
Explorer:
A simple file manager for media files.
    Copy, move, delete, create / delete directories

Network:
    Activate, edit and manage network shares. Like plugin's it is possible
    to set shares in the autorun.sh

plugin:
    Start/Stop, Autostart Start/Stop of installed Plugin's

EPG:
    Show the peg data. Is EPGScan is active, the pages uses the stored epg
    data, ant actualizes them.
    It is also possible to set the timer from a service entry.

Timer:
    Show active timers. Set new timers or edit existing timers.

OSD:
    a simple remote control for the receiver. Uses OSDCapture

TV Browser Interface:
TV Browser is an web based tv-guide, open source.(www.tvbrowser.org)
It is possible to set timers or activate channels directly from the
web pages.

In TV-Browser set a recording device using the standard interface.
url: http://ip.Box/cgi-bin/tvbrowser.sh

Parameter for record:
alarmmode=1&SDate={start_day}.{start_month}.{start_year}&STime={start_hour}%3A{start_minute}&ETime={end_hour}%3A{end_minute}&svselect={channel_name_external}&alarmtype=1&mcmd=set

Parameter for delete timers:
alarmmode=0&SDate={start_day}.{start_month}.{start_year}&STime={start_hour}%3A{start_minute}&ETime={end_hour}%3A{end_minute}&svselect={channel_name_external}&alarmtype=1&mcmd=delete

To enable channel selection: Extended command ==> Start:
mcmd=start&svselect={channel_name_external}

shut down the receiver:
mcmd=standby

The channel numbers have to be set in the tv-browser page:

If you use PolarEdit, open the channel list for your satellite (not favorites)
In the tab "channel" nad the column external name use the channel number -1

As an alternative take a look in the generated webpage for timer settings
in the web interface. There you will find a list of all channels with correct
channel numbers.

Now you may set timers directly from tv-browser.
When setting a timer, the web interface trys to find the correct service
from the epg data using start and end time. If found, the timesettings are
modified using the epg data.

===========================
For your own extensions:
the man menu is generated automatically. The names of the page scripts
have to use the following syntax:
xx.Name.page

xx = Position in navigation bar
Name = Name of the page in navigation bar

the postfix [.page] to find the script.

A page script has the following template:
#!/bin/bash
/var/www/cgi-bin/startpage.sh
#side Navi
echo "<li>...</li>
...
cat ./contentstart
echo "xx.Name.page" >/tmp/webio.page
...
cat ./footer

Examples:
Home page:
    home.sh
    reboot.sh

Explorer:
    20.Explorer.page
    fileman_do.sh

Plugin page:
    30.Plugin.page
    plugin_do.sh

EPG:
    40.EPG.page

OSD:
    99.OSD.page
    remote_control

the design may be changed using the css file and the images in the "img" directory.

The PlugIns EpgScan, EpgView und FortisWebIo use a common cfg file:
/var/etc/EpgScan.cfg

A templatefor this file is in the zip file. This file may be modified
using an standard text editior. (notepad). please copy to the correct directory and
rename the template file before installing the plugin.

Configurtaion parameter:

logwebio=/STORAGE/HDD/.webio.log
                create a log file

: =:= :         Entries for text localisation


History:
v111.16
- Bugfix: crash in OSD page with timer settings fixed

V111.15
- Bugfix: on the OSD page, the OK key needs more time than others

V111.14
- API Version 1.11
- Timer programming updated

V110.13
- API Version 1.10
- additional time for Message Queue.

V107.11
- FTP Download for Stream Files. To eneable this you must modify the file
  "/var/etc/passwd"
  replace line "ftp:*:15:14:ftp:/home/ftp:" with "ftp:*:15:14:ftp:/:"
  using a linux compatible editor.
- Extension of the epg and timer page for radio services
- The receiver may be activated via web interface from fast standby.
- english version added (thanks to user vevs)


regards
dancefan
