How to run the MW "Stalker" portal in debug mode

Login to the STB via ssh (Port 22, Login/Pass root/930920), if SSH access is closed, update STB with Public firmware version.

Terminate process stbapp

Manually start the portal with the parameter ?debug

killall stbapp /usr/share/qt-4.6.0/stbapp -qws -display directfb http://<your_domain_or_ip>/stalker_portal/c/?debug

How to make screenshot from STB

For version 0.2.16 and later

Put the file from the archive fbdump.zip in the root directory of the USB drive.

Connect the USB-drive to the STB

Login to STB via ssh

Go to the root directory of USB-drive

cd /media/<name of USB-drive>/

set permissions

chmod a+x fbdump

Take a screenshot

./fbdump 1.png

For version 0.2.14

Login to the STB via ssh

Connect USB Flash drive to STB

Save framebuffer dump on USB Flash drive

dd if=/dev/fb0 of=/media/USB-123/1.raw

Where /media/USB-123/ - mount point of the USB Flash drive (with write privileges)

It is necessary to convert dump in png. You can do it using IrfanView.

While opening raw file ti is necessary to set:

picture size (720х576, 1280х720, etc. )

color - 32BPP

Color order option- RGB

Interleaved option

Press OK. The picture should be correct but with wrong color.

Open “Image”→“Swap Colors” and choose RGB→BGR

What to do, if the portal does not load?

Check the last messages in error.log apache (/var/log/apache2/error.log).

Load portal with debug and analize the log

Have loaded the logo of TV Channel, but it doesn't work

At the moment the logo destinates for API and doesn't display at the STB's interface.

Starting from version v 4.8.60 logo of TV channels displays in OSD on the TV screen.

How to lock access to the portal for the new STBs

Starting from Stalker MW 4.8.63 in configuration file was add new option default_stb_status. New STB will be OFF by default, you need to add in server/custom.ini:

default_stb_status = 0

For older versions in mysql base it is necessary to do:

ALTER TABLE `users` MODIFY `status` tinyint DEFAULT 1;

All new STBs will be with “OFF” status.

Access to portal using Login&Pass

It is possible to arrange access to portal for new stb by login and password. For this:

In custom.ini add string

auth_url = http://localhost/stalker_portal/server/tools/auth_simple.php

In Admin-Interface in Users > Add add user, it's enough to set only login (unique) and password. Field MAC address leave empty.

While first loading stb to portal, windows with authorization will appear. After successful authorization, MAC address of stb will become attached to login you entered, and further during further loadings stb won't need further authorization.

Interface debug

For fast interface debugging portal on PC run Stalker portal in emulation mode via next address:

http://<your_ip>/stalker_portal/c/?debug&debug_key=...&mac=...

debug_key you need to take from table administrators(MySQL).

It is better to use Google Chrome, and you need to set the exact size of window for chosen resolution 1280х720, 720х576, 720х480)

Add channels more than 999

To add more then 999 channels in Admin interface - open configuration file /stalker_portal/server/administrator/add_itv.php and set the value of maxlength from 3 to 4

maxlength="4"

Make next customizations in case if there is need to input more then 3 digits from the Remote Control.

In file /stalker_portal/c/player.js it is necessary to change next:

From

if (this.quick_ch_switch.input.innerHTML.length < 3){

to

if (this.quick_ch_switch.input.innerHTML.length < 4){

In file /stalker_portal/c/tv.js change:

From

if (this.quick_ch_switch.input.innerHTML.length < 3){

to

if (this.quick_ch_switch.input.innerHTML.length < 4){

Decrease font size for .quick_ch_input in /stalker_portal/c/template/default/layer.list.css because 4 digits will not fit in window.

Tv series in Videoclub

Create for example folder Sherlock Season 1

Enter storage and add next files in Sherlock folder:

1.mkv 2.mkv 3.mkv etc…

Then you will have TV series in folder.

2) If Custom url is used check that in contain sXXeXX then portal will see it as an TV show with maximum set series in eXX.