Display temperature & humidity as graph over time of a brew.

Uses the available lib/server/graphQueryGenerator functions to get data.
This commit is contained in:
2023-05-30 17:28:07 +02:00
parent c0d1bbef60
commit f759638bf4
4 changed files with 51 additions and 32 deletions

View File

@@ -5,7 +5,7 @@
const path = (date: string) => '/brews/' + String(date);
const dateFormat = { year: 'numeric', month: 'short', day: 'numeric' };
const dateString = (date) => new Date(date * 1000).toLocaleDateString('no-NB', dateFormat);
const dateString = (date: number) => new Date(date * 1000).toLocaleDateString('no-NB', dateFormat);
</script>