@@ -5,30 +5,30 @@ See [https://github.com/os2display/display-docs/blob/main/client.md](https://git
55
66## Config
77The client can be configured by creating ` public/config.json ` with relevant values.
8- See ` public/example_config.json ` for values.
9-
10- ``` json
11- {
12- " apiEndpoint" : " " ,
13- "authenticationEndpoint" : " /v2/authentication/ screen" ,
14- "authenticationRefreshTokenEndpoint" : " /v2/authentication/token/refresh " ,
15- "dataStrategy" : {
16- "type" : " pull " ,
17- " config" : {
18- "interval" : 30000 ,
19- "endpoint" : " "
20- }
21- },
22- "colorScheme" : {
23- "type" : " library " ,
24- "lat" : 56.0 ,
25- "lng" : 10.0
26- },
27- "schedulingInterval" : 60000 ,
28- " debug" : false
29- }
30- ```
31- All endpoint should be configured with out a trailing slash. The endpoints ` apiEndpoint ` and ` dataStrategy.config.endpoint ` can be
8+ See ` public/example_config.json ` for example values.
9+
10+ Values explained:
11+
12+ * apiEndpoint - The endpoint where the API is located.
13+ * loginCheckTimeout - How often (milliseconds) should the screen check for
14+ status when it is not logged in, and waiting for being activated in the
15+ administration.
16+ * configFetchInterval - How often (milliseconds) should a fresh
17+ config.json be fetched.
18+ * refreshTokenTimeout - How often (milliseconds) should it be checked
19+ whether the token needs to be refreshed?
20+ * releaseTimestampIntervalTimeout - How often (milliseconds) should the
21+ code check if a new release has been deployed, and reload if true?
22+ * dataStrategy.config.interval - How often (milliseconds) should data be fetched
23+ for the logged in screen?
24+ * colorScheme.lat - Where is the screen located? Used for darkmode.
25+ * colorScheme.lng - Where is the screen located? Used for darkmode.
26+ * schedulingInterval - How often (milliseconds) should scheduling for the
27+ screen be checked.
28+ * debug - Should the screen be in debug mode? If true, the cursor will be
29+ invisible.
30+
31+ All endpoint should be configured without a trailing slash. The endpoints ` apiEndpoint ` can be
3232left empty if the api is hosted from the root of the same domain as the client. E.g. if the api is at https://example.org and the client is at
3333https://example.org/client
3434
0 commit comments