fixes from review
This commit is contained in:
parent
7b643a8150
commit
69b4d26107
@ -13,12 +13,12 @@ widget:
|
||||
url: http://host.or.ip
|
||||
username: homepage
|
||||
password: pass
|
||||
interfaceName: eth0
|
||||
interfaceName: eth0 # optional
|
||||
```
|
||||
|
||||
## Interface
|
||||
|
||||
Adding an interfaceName (e.g eth0) will display information for that particular device, otherwise it will display general system info.
|
||||
Setting `interfaceName` (e.g. eth0) will display information for that particular device, otherwise the widget will display general system info.
|
||||
|
||||
## Authorization
|
||||
|
||||
|
||||
@ -782,10 +782,9 @@
|
||||
},
|
||||
"openwrt": {
|
||||
"uptime": "Uptime",
|
||||
"uptimeValue": "{{days}}d {{hours}}h {{minutes}}m {{seconds}}s",
|
||||
"cpuLoad": "CPU Load Avg (5 mins)",
|
||||
"up": "UP",
|
||||
"down": "DOWN",
|
||||
"cpuLoad": "CPU Load Avg (5m)",
|
||||
"up": "Up",
|
||||
"down": "Down",
|
||||
"bytesTx": "Transmitted",
|
||||
"bytesRx": "Received"
|
||||
},
|
||||
|
||||
@ -22,12 +22,7 @@ export default function Component({ service }) {
|
||||
<Container service={service}>
|
||||
<Block
|
||||
label="openwrt.uptime"
|
||||
value={t("openwrt.uptimeValue", {
|
||||
days: Math.floor(uptime / 86400),
|
||||
hours: Math.floor((uptime % 86400) / 3600),
|
||||
minutes: Math.floor((uptime % 3600) / 60),
|
||||
seconds: uptime % 60,
|
||||
})}
|
||||
value={t("common.uptime", { value: uptime })}
|
||||
/>
|
||||
<Block label="openwrt.cpuLoad" value={cpuLoad} />
|
||||
</Container>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user