49 lines
1.5 KiB
Markdown
49 lines
1.5 KiB
Markdown
# NOC Screen Tab Rotator
|
|
|
|
This app will automatically rotate and refresh tabs based on the hostname of the ?hostname variable passed to the script.
|
|
|
|
It assumes that the www folder is accessible via http[s]://somehostname/screen/, the settings.json should be in the parent folder.
|
|
|
|
Place a logo.png within the www folder for it to be used on the loading screen...
|
|
|
|
The config Has the following:
|
|
|
|
* **defaults** - common defaults across all clients
|
|
* * **tabTime** - how long each tab should be displayed for (Default: 30)
|
|
* * **tabRefresh** - Global setting for if a tab should be refreshed before display (Default: true)
|
|
* * **masterRefresh** - How often should the overal page be reloaded in seconds - default 86400
|
|
* **screens** - A list of clients
|
|
* * **__hostname__** - config for the host
|
|
* * * **tabTime** - Overide for this host
|
|
* * * **tabRefresh** - Overide for this host
|
|
* * * **masterRefresh** - Overide for this host
|
|
* * * **urls** - A dict of URLs to display
|
|
* * * * **__url__** - the URL to load
|
|
* * * * * **tabRefresh** - optionall overide if this tab should(n't) be refresh before display
|
|
|
|
Example Config:
|
|
|
|
```js
|
|
{
|
|
"defaults": {
|
|
"tabTime": 30,
|
|
"tabRefresh": true,
|
|
"masterRefresh": 86400
|
|
},
|
|
"screens": {
|
|
"screen0": {
|
|
"urls": {
|
|
"http://www.example.com/": {"tabRefresh": false},
|
|
"http://news.bbc.co.uk/": {}
|
|
}
|
|
},
|
|
"screen1": {
|
|
"tabTime": 60,
|
|
"urls": {
|
|
"http://www.google.com/": {}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
```
|