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