laundry_status/laundry_status.Rmd

45 lines
1.7 KiB
Plaintext
Raw Normal View History

2023-11-06 16:18:30 -06:00
---
title: "Laundry Status"
2023-11-07 09:43:42 -06:00
output:
html_document:
includes:
in_header: favicon_header.html
2023-11-06 16:18:30 -06:00
---
2023-11-06 17:15:43 -06:00
updated: `r format(Sys.time(), format = "%A %I:%M %p", tz = "America/Chicago")`
2023-11-06 17:45:06 -06:00
2023-11-06 17:42:51 -06:00
this site updates every `r update_interval` minutes
2023-11-06 16:18:30 -06:00
2023-11-20 10:20:21 -06:00
## The washing machine is currently: `r current_status[["washing_machine_power"]]`
2023-11-06 18:23:01 -06:00
2023-11-06 18:24:05 -06:00
2023-11-20 10:20:21 -06:00
The washer `r ifelse(current_status$washing_machine_power=="on", "started", "ended")` its most recent cycle at `r ifelse(current_status$washing_machine_power=="on", strftime(washer_last_off, format = "%A %I:%M %p", tz = "America/Chicago"), strftime(washer_last_on, format = "%A %I:%M %p", tz = "America/Chicago"))`
2023-11-06 22:02:01 -06:00
:
2023-11-20 10:20:21 -06:00
`r ifelse(current_status$washing_machine_power=="on", round(difftime(Sys.time(), washer_last_off, unit = "mins"),0), round(difftime(Sys.time(), washer_last_on, units = "mins"),0))`
2023-11-06 22:16:25 -06:00
minutes ago
2023-11-06 18:23:01 -06:00
2023-11-06 18:24:05 -06:00
2023-11-20 10:20:21 -06:00
## The dryer is currently: `r current_status[["dryer_power"]]`
2023-11-06 16:18:30 -06:00
2023-11-06 22:16:25 -06:00
2023-11-20 10:20:21 -06:00
The dryer `r ifelse(current_status$dryer_power=="on", "started", "ended")` its most recent cycle at `r ifelse(current_status$dryer_power=="on", strftime(dryer_last_off, format = "%A %I:%M %p", tz = "America/Chicago"), strftime(dryer_last_on, format = "%A %I:%M %p", tz = "America/Chicago"))`
2023-11-06 22:16:25 -06:00
:
2023-11-20 10:20:21 -06:00
`r ifelse(current_status$dryer_power=="on", round(difftime(Sys.time(), dryer_last_off, unit = "mins"),0), round(difftime(Sys.time(), dryer_last_on, units = "mins"),0))`
2023-11-06 22:16:25 -06:00
minutes ago
---
2023-11-06 16:18:30 -06:00
```{r setup, include=FALSE}
knitr::opts_chunk$set(echo = TRUE)
```
2023-11-06 21:59:14 -06:00
This site tracks the washing machine and dryer of our building. My hope is that it helps people find good times to do laundry.
2023-11-06 16:18:30 -06:00
```{r plot_1day, echo=FALSE}
plot(plot_1day)
```
```{r plot_1week, echo=FALSE}
plot(plot_1week)
```
If you have any issues or questions, please email `admin@dendroalsia.net`