Closed LiranV closed 4 months ago
I have no way to test or verify this and I dont know if anyone else has reported. @DanGRT ?
This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new discussion for related concerns. See our contributing guidelines for more details.
Proposed change
Issue:
I've configured the OpenWRT widget in my
homepage
container, but saw the following:Tested on:
v0.8.13
andmaster
23.05.0
The service configuration I've used:
Explanation:
The widget starts by issuing an unauthorized request to OpenWRT, which for some reason results with a response
id
that isnull
(according to the JSON-RPC 2.0 specification this is discouraged) and it seems to not play nice with the json-rpc-2.0 package)My first commit solves this issue by checking if the response
id
isnull
and setting it as1
instead. This solves the issue and the widget starts working:Additional Fix:
After the widget started working I've noticed that the CPU Load number was "off" and didn't look like the standard UNIX load format expected by something like
uptime
. To solve this I've added the following calculation according to this:After fixing CPU load representation:
Type of change
Checklist: