Local DWS API Reference#
The Diagnostic Web Server (DWS) provides local HTTP API access to BrightSign players for diagnostics and control.
Enabling DWS#
Sub EnableDWS()
nc = CreateObject("roNetworkConfiguration", 0)
nc.SetupDWS({
password: "your-secure-password"
})
End SubOr via registry:
reg = CreateObject("roRegistrySection", "networking")
reg.Write("dwse", "true") ' Enable DWS
reg.Write("dwsp", "password") ' Set password
reg.Flush()Base URL#
http://{player-ip}/api/v1/Authentication#
DWS uses HTTP Digest Authentication:
| |
System Information#
Get Device Info#
GET
/info
Digest AuthResponse:
| |
Get Storage Info#
GET
/storage
Digest AuthResponse:
| |
Control Operations#
Reboot Player#
PUT
/control/reboot
Digest AuthFactory Reset#
PUT
/control/factory-reset
Digest AuthWarning: This erases all content and settings.
Files#
List Files#
GET
/files/{path}
Digest AuthDownload File#
GET
/files/{path}?download=true
Digest AuthUpload File#
PUT
/files/{path}
Digest AuthDelete File#
DELETE
/files/{path}
Digest AuthLogs#
Get Log Files#
GET
/logs
Digest AuthResponse:
| |
Download Log#
GET
/logs/{filename}
Digest AuthScreenshots#
Capture Screenshot#
GET
/snapshot
Digest AuthReturns PNG image data.
Registry#
Read Registry Section#
GET
/registry/{section}
Digest AuthWrite Registry Key#
PUT
/registry/{section}/{key}
Digest Auth | |
Network#
Get Network Status#
GET
/network
Digest AuthResponse:
| |
Example: DWS Client#
| |
BrightScript Tip
DWS is disabled by default for security. Only enable it on trusted networks and always use a strong password.