mirror of
https://github.com/karl0ss/homepage.git
synced 2025-05-01 21:13:39 +01:00
Added celcius labels
This commit is contained in:
parent
2c3947ea3f
commit
006fb80533
@ -47,8 +47,8 @@ export default function Component({ service }) {
|
|||||||
return (
|
return (
|
||||||
<Container service={service}>
|
<Container service={service}>
|
||||||
<Block label="octoPrint.printer_state" value={printerStats.state.text} />
|
<Block label="octoPrint.printer_state" value={printerStats.state.text} />
|
||||||
<Block label="octoPrint.temp_tool" value={`${printerStats.temperature.tool0.actual}°`} />
|
<Block label="octoPrint.temp_tool" value={`${printerStats.temperature.tool0.actual} °C`} />
|
||||||
<Block label="octoPrint.temp_bed" value={`${printerStats.temperature.bed.actual}°`} />
|
<Block label="octoPrint.temp_bed" value={`${printerStats.temperature.bed.actual} °C`} />
|
||||||
<Block label="octoPrint.job_completion" value={`${completion.toFixed(2)}%`} />
|
<Block label="octoPrint.job_completion" value={`${completion.toFixed(2)}%`} />
|
||||||
</Container>
|
</Container>
|
||||||
);
|
);
|
||||||
@ -57,8 +57,8 @@ export default function Component({ service }) {
|
|||||||
return (
|
return (
|
||||||
<Container service={service}>
|
<Container service={service}>
|
||||||
<Block label="octoPrint.printer_state" value={printerStats.state.text} />
|
<Block label="octoPrint.printer_state" value={printerStats.state.text} />
|
||||||
<Block label="octoPrint.temp_tool" value={`${printerStats.temperature.tool0.actual}°`} />
|
<Block label="octoPrint.temp_tool" value={`${printerStats.temperature.tool0.actual} °C`} />
|
||||||
<Block label="octoPrint.temp_bed" value={`${printerStats.temperature.bed.actual}°`} />
|
<Block label="octoPrint.temp_bed" value={`${printerStats.temperature.bed.actual} °C`} />
|
||||||
</Container>
|
</Container>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user