Skip to content

Server Configuration

config.ini for server looks like this:

ini
[server]
host = 0.0.0.0
port = 5236

# a secret key hard to guess
token = token

[frontend]
title = Username's Device Status
theme = default

# default: /pic
background_url = /pic

# unit: seconds
refresh_interval = 3

# if the device doesn't report for more than offline_interval, it will be judged as offline
# shouldn't be less than client's report_interval
# unit: seconds
offline_interval = 10

Server Section

"server" section defines the basic information of your server, like "host", "port" and "token"

host: Normally, you don't need to modify "host".

port: Choose a port that is not occupied on your server. By default, it's 5236

token: Carefully set a token that is hard to guess, you have to have the same token set on your clients to report data to your server

Front End Section

"frontend" section defines your front end, which makes the web page customizable

title: your webpage title

theme: name of your theme, your theme needs to be placed in the server/theme folder

background_url: url of background image of your webpage, by default, it's /pic, which is a route for random wallpapers built in the default theme

refresh_interval: how often the frontend page retrieves data in seconds

offline_interval : the server will consider the device offline if it exceeds this time, and it should not be less than the client's report_interval