DVSMON/README.md

40 lines
1.7 KiB
Markdown
Raw Permalink Normal View History

2023-03-20 20:55:31 +00:00
# DVSMON - DVS dashboard monitor API
2023-03-20 20:54:51 +00:00
This internal API is used to provide last heard dashboard data on the dvsph.net website.
2023-03-22 11:04:01 +00:00
## Config
```
{
"last_access": 5, / Minutes before scraper sleep
"page": "http://phoenix-f.opendmr.net/ipsc/_monitor.html", / Source page
"reload": 3, / Scraper seconds
"users": "https://radioid.net/static/users.json", / Source of user names
"users_reload": 86400 / Seconds to reload user names
}
```
2023-03-20 21:04:16 +00:00
## Endpoints
- /monitor - Outputs last heard data
```
{
2023-03-22 11:04:01 +00:00
"num":"1", / Dashboard position
"date":"2023-03-20 20:58:37", / Date
"name":"John Doe", / Users name
"call":"M0ABC", / Users callsign
"id":"235165", / Users DMR ID
"sec":"28.9", / Seconds user has been transmitting
"slot":"1", / Slot user is active on
"talkgroup":"2345" / Talkgroup user is active on
2023-03-20 21:04:16 +00:00
}
```
- /monitor/stats
```
{
2024-01-06 11:23:44 +00:00
"stale_cache":false, / Is the cache stale
2023-03-22 11:04:01 +00:00
"hits":95, / Number of API hits
"refresh":287, / How many times the system has scraped data
"uptime":914 / API uptime in seconds
2023-03-20 21:04:16 +00:00
}
```
2023-03-20 20:54:51 +00:00
---
2023-03-20 20:55:31 +00:00
With love :heart: