Breadcrumbs

SystemWebConfig

The SystemWebConfig is a webinterface to simply change the common settings and control and monitor the device.

The system is a server client webapplication written in html, javascript and php using the lighttpd server.

Server

Modules

Name

Description

lighttpd

the http server

todo

todo

Web Application

The WebApplication is stored in the directory /opt/webconfig

webconfig_window.png

The window is splitted into three frames

Name

Description

Header

Contains the common device information

  • ip addresses (lan, wifi, openvpn)

  • time date

  • uptime

  • image version

  • logo

Menu

Contains the menu tree.

Each entry opens a html page in the content frame.

Content

Content of a menu point.


Modules in the directory

Name

Description

htdocs

html files used in the project

Name

Description

index.html

Entry html with the tree frames header, menu, content

menu.html

Menu html file, with dynamic menu tree creation, based on available content.

network.html

Network Content, Eth0..x, wifi, bridge
















htdocs/assets/codemirror

javascript editor source code 

htdocs/assets/css

css files used in the project

Name

Description






htdocs/assets/images

images used in the project

htdocs/assets/js

javascript files used in the project

Name

Description








htdocs/assets/php

php files used in the project

Name

Description








htdocs/assets/scripts

scripts files used in the project

Name

Description








Settings Variables

With the settings variables in the file webconfig.conf the webconfig can be configured to a specific specific board/environment.

The file content is based on a init file format.

Group

Name

Default Values

Description

Firmware

ftpserver


url to ftp server for images (backup/restore)

Firmware

ftpfilelist


use only newest version of image read from /opt/versions/image, 1 list all images (img, img.gz, zip)

SystemConfig

ConfFile


local systemconfig conf file

SystemConfig

UserFile


local systemconfig user file

SystemConfig

HwManualUrl


url to the HW Manual

SystemConfig

SysDisplayBrightness


sys path to the display backlight driver

SystemConfig

MinDisplayBrightness


minimal display brightness

SystemConfig

FormatDiskOffset


format disk first partition offset

SystemConfig

FormatDiskSize


format disk first partition size

SystemConfig

FormatDiskLabel


format disk first partition label

SystemConfig

BackupFileSub


backup image contains sub file .livesystem.tar

SystemConfig

ExportDirectory

/tmp

temp directory to export user and system data in firmware.html

SystemConfig

ExportScript


used script to export user and system data in firmware.html

SystemConfig

SRamDev


sys path to the sram drive

SystemConfig

BackupImage


file name of backup image

SystemConfig

EthFindNames

empty

find string to get ethernet adapters in header and network.html, if empty autodetect ethernet adapter by enumeratin /sys/class/net

SystemConfig

DisabledPages

empty

disabled html content (not visible) Syntax PAGEID.ELEMENTID, seperated by space

SystemConfig

OfflineTimeOutMs


check offline time in header in ms, 0 is disabled

SystemConfig

RefreshCycleHeader


cycle time of refresh header (ip info is called every 3rd time)

SystemConfig

RefreshCycleProcessListLow


cycle time of process list

SystemConfig

RefreshCycleRessourceMonitor


cycle time of ressources

SystemConfig

LinuxLogFile

/log/var/messaged

log file path

SystemConfig

SecurityManagerInit

1

enable/disable security manager on load webconfig

SystemConfig

WlanConfigMode

2

0 always hidden, 1, only available if wlan detected, 2 always visible

SystemConfig

LiveSearch

1

0 disabled, 1 enables the livesearch support

Yocto Build Variables

Name

Default Values

Description

DISABLE_MINIFY

0

if 1 all html, css and js files will not executed with uglifyjs to reduce the size

SYSTEMWEBCONFIG_DISABLEDPAGES

as default settings used

settings variable value for DisabledPages

SYSTEMWEBCONFIG_SECURITYMANAGERINIT

as default settings used

settings variable value for SecurityManagerInit

SYSTEMWEBCONFIG_OFFLINETIMEOUTMS

as default settings used

settings variable value for OfflineTimeOutMs

SYSTEMWEBCONFIG_ETHFINDNAMES

as default settings used

settings variable value for EthFindNames

SYSTEMWEBCONFIG_REFRESHCYCLEHEADER

as default settings used

settings variable value for RefreshCycleHeader

SYSTEMWEBCONFIG_REFRESHCYCLEHEADERLOW

as default settings used

settings variable value for RefreshCycleHeaderLow

SYSTEMWEBCONFIG_AUTOREFRESH

as default settings used

settings variable value for AutoRefresh

SYSTEMWEBCONFIG_SDCARDDEVNAME

as default settings used

settings variable value for SdCardDeviceName

SYSTEMWEBCONFIG_EMMCDEVNAME

as default settings used

settings variable value for EmmcDeviceName

SYSTEMWEBCONFIG_SYSINFOREFRESH

as default settings used

settings variable value for SysInfoRefresh

SYSTEMWEBCONFIG_X11

as default settings used

settings variable value for hidden enable X11 check box in display content

SYSTEMWEBCONFIG_SW_MANUAL

empty

file path to pdf file for the sw manual viewer

SYSTEMWEBCONFIG_HW_MANUAL

empty

file path to pdf file for the hw manual viewer

SYSTEMWEBCONFIG_HW_MANUAL_LIST

empty

list of pdf file paths for the hw manual viewer (autodetected by manual file name and dts model value)

SYSTEMWEBCONFIG_HW_URL

empty

settings variable value for HwManualUrl

DEFAULT_INITIAL_BACKLIGHT_VALUE

100

settings variable value for InitalBaclkightValue (obsolete)