laundry_status/laundry_status.Rmd

63 lines
2.3 KiB
Plaintext
Raw Permalink 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
2024-01-28 22:14:55 -06:00
this site updates every 5 minutes
2023-11-06 16:18:30 -06:00
2024-01-28 14:12:56 -06:00
En [español](https://laundry.dendroalsia.net/es.html)
2023-11-21 14:06:51 -06:00
---
2024-01-28 14:12:56 -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-21 14:06:51 -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(last_change$washing_machine_power_off, format = "%A %I:%M %p", tz = "America/Chicago"), strftime(last_change$washing_machine_power_on, format = "%A %I:%M %p", tz = "America/Chicago"))`
2023-11-06 22:02:01 -06:00
:
2023-11-21 14:06:51 -06:00
`r ifelse(current_status$washing_machine_power=="on", calculateTimeAgo(last_change$washing_machine_power_off), calculateTimeAgo(last_change$washing_machine_power_on))`
`r ifelse(current_status$washing_machine_power=="off", paste0("The washing machine door is ", status_door$washing_machine_power), "")`
---
2023-11-06 18:24:05 -06:00
2024-01-28 14:12:56 -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-21 14:06:51 -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(last_change$dryer_power_off, format = "%A %I:%M %p", tz = "America/Chicago"), strftime(last_change$dryer_power_on, format = "%A %I:%M %p", tz = "America/Chicago"))`
2023-11-06 22:16:25 -06:00
:
2023-11-21 14:06:51 -06:00
`r ifelse(current_status$dryer_power=="on", calculateTimeAgo(last_change$dryer_power_off), calculateTimeAgo(last_change$dryer_power_on))`
2023-11-21 14:07:51 -06:00
`r ifelse(current_status$dryer_power=="off", paste0("The dryer door is ", status_door$dryer_power), "")`
2023-11-06 22:16:25 -06:00
---
2023-11-06 16:18:30 -06:00
```{r setup, include=FALSE}
knitr::opts_chunk$set(echo = TRUE)
```
2024-04-06 16:06:16 -05: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 when the machine is available.
2023-11-06 16:18:30 -06:00
```{r plot_1day, echo=FALSE}
plot(plot_1day)
```
2023-11-21 11:07:47 -06:00
```{r plot_1week_days, echo=FALSE}
plot(plot_1week_days)
```
2024-01-17 14:16:08 -06:00
2024-01-17 13:55:13 -06:00
---
2024-01-17 14:16:08 -06:00
## For longterm data, click [here](https://laundry.dendroalsia.net/longterm_data.html)
2024-01-17 13:55:13 -06:00
---
2023-11-21 11:09:02 -06:00
2023-11-21 14:44:22 -06:00
If you have any issues or questions, please email [ben@dendroalsia.net](mailto:ben@dendroalsia.net)
The code that I wrote to generate this website is available under the GPLv3 license here: [https://git.dendroalsia.net/ben/laundry_status](https://git.dendroalsia.net/ben/laundry_status)