2024-04-06 16:06:16 -05:00
2024-01-28 14:12:56 -06:00
2023-11-07 09:43:42 -06:00
2024-01-28 22:14:55 -06:00
2024-01-28 22:00:25 -06:00
2024-04-06 16:06:16 -05:00
2023-11-06 11:25:03 -06:00
2024-01-28 15:33:36 -06:00

Laundry status

This script generates a website that tracks the washing machine and dryer use of my apartment building. The washing machine and dryer are plugged into smartplugs (Sonoff S31s) that are running ESPHome. A homeassistant instance gets that data every 1 minute and sends it to an InfluxDB database. laundry_status.R reads that database with an api key, restructures the data, and generates a website using laundry_status.Rmd. It also generates a long-term data visualization using laundry_longterm_data.Rmd.

Both the status page and long-term data have Spanish translations (laundry_status_es.Rmd and laundry_longterm_data_es.Rmd).

You can see the website here: laundry.dendroalsia.net

Required libraries:

  • tidyverse
  • influxdbclient
  • rmarkdown
Description
Queries InfluxDB to determine the status of a communal washing machine and dryer. Then it generates a website with RMarkdown
https://laundry.dendroalsia.net
Readme 2.8 MiB
Languages
R 97%
HTML 3%