summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xdeploy.sh4
-rw-r--r--favicon.icobin0 -> 15406 bytes
-rw-r--r--history.html16
3 files changed, 18 insertions, 2 deletions
diff --git a/deploy.sh b/deploy.sh
index 216d0cb..6069922 100755
--- a/deploy.sh
+++ b/deploy.sh
@@ -1,7 +1,7 @@
#!/bin/bash
set -e
-scp plot.py read_sensors.py water_the_plant create_backup make_photo index.html history.html *.png robert@waterpi:
+scp favicon.ico plot.py read_sensors.py water_the_plant create_backup make_photo index.html history.html *.png robert@waterpi:
ssh robert@waterpi -C '\
- sudo cp index.html history.html *.png /var/www/html; \
+ sudo cp favicon.ico index.html history.html *.png /var/www/html; \
sudo chown www-data:www-data /var/www/html/*.html /var/www/html/*.png; \
sudo cp plot.py read_sensors.py create_backup make_photo read_temperature.py water_the_plant /usr/local/bin'
diff --git a/favicon.ico b/favicon.ico
new file mode 100644
index 0000000..21770de
--- /dev/null
+++ b/favicon.ico
Binary files differ
diff --git a/history.html b/history.html
index c0f0369..8bd95da 100644
--- a/history.html
+++ b/history.html
@@ -143,6 +143,22 @@ function updateButtons() {
currentDate.getTime() === today.getTime();
}
+document.addEventListener('keydown', function(event) {
+ switch(event.key) {
+ case 'ArrowUp':
+ jumpDays(7); // Vorwärts um 1 Stunde
+ break;
+ case 'ArrowDown':
+ jumpDays(-7); // Rückwärts um 1 Stunde
+ break;
+ case 'ArrowRight':
+ jumpDays(1); // Vorwärts um 15 Minuten
+ break;
+ case 'ArrowLeft':
+ jumpDays(-1); // Rückwärts um 15 Minuten
+ break;
+ }
+});
// Initial gallery setup
updateGallery();