initial commit

This commit is contained in:
2023-05-21 18:46:48 +02:00
commit 19772073ae
27 changed files with 17663 additions and 0 deletions

6
views/error.pug Normal file
View File

@ -0,0 +1,6 @@
extends layout
block content
h1= message
h2= error.status
pre #{error.stack}

7
views/index.pug Normal file
View File

@ -0,0 +1,7 @@
extends layout
block content
h1 PM2.5 [<span id="pm25"></span>] & PM10 [<span id="pm10"></span>]
p#lastStatus
div(style="width:100%; height:75vh;")
canvas#chart

10
views/layout.pug Normal file
View File

@ -0,0 +1,10 @@
doctype html
html
head
title= title
link(rel='stylesheet', href='/stylesheets/style.css')
script(src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/3.4.0/chart.js")
script(src="https://cdnjs.cloudflare.com/ajax/libs/chartjs-plugin-annotation/1.0.2/chartjs-plugin-annotation.js")
body
block content
script(src="/javascripts/main.js")