https://github.com/webdad/turboplayer2sockets
Tracks Turboplayer-Export-XML and presents the data with sockets.
https://github.com/webdad/turboplayer2sockets
Last synced: about 1 month ago
JSON representation
Tracks Turboplayer-Export-XML and presents the data with sockets.
- Host: GitHub
- URL: https://github.com/webdad/turboplayer2sockets
- Owner: WebDaD
- Created: 2021-09-19T14:48:00.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2022-08-14T13:25:10.000Z (almost 4 years ago)
- Last Synced: 2025-01-18T16:39:26.154Z (over 1 year ago)
- Language: JavaScript
- Size: 400 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# turboplayer2sockets
Tracks Turboplayer-Export-XML and presents the data with sockets.
## Config
The easy way is to simply create a __config.json__.
- __port__: Port for the Service. (default: 3000)
- __turboplayerxml__: Where is the xml-file. (default: /opt/turboplayer.xml)
- __log/loglevel__: The Loglevel. (default: INFO)
Example:
```json
{
"port": 3000,
"turboplayerxml": "/opt/turboplayer.xml",
"log": {
"loglevel":"INFO"
}
}
```
Additional Config from otherr packages:
- Under the key __security__:
- Under the key __log__:
- Under the key __metrics__:
## Usage
There are two ways to get information: Sockets and a REST-API.
You may combine both methods, e.g. loading the present element on client start
and then listening to changes on the sockets.
### Sockets
We are using [socket.io](https://socket.io/)
In your HTML-File add the following snippet before the `