diff options
| -rw-r--r-- | .gitignore | 1 | ||||
| -rw-r--r-- | templates/error.html | 19 | ||||
| -rw-r--r-- | templates/export_choice.html | 13 | ||||
| -rw-r--r-- | templates/main.html | 15 |
4 files changed, 47 insertions, 1 deletions
@@ -6,7 +6,6 @@ .sw? *.elf *.pdf -*.html **/bin **/build **/target diff --git a/templates/error.html b/templates/error.html new file mode 100644 index 0000000..c532365 --- /dev/null +++ b/templates/error.html @@ -0,0 +1,19 @@ +<head> + <title>Heating</title> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <link rel= "stylesheet" + type= "text/css" + href= "{{ url_for('static',filename='style.css') }}"> +</head> +<body> + <h1> + Error + </h1> + <p> + {{ error }} + </p> + <a href = "/"> + <h2> + Return to home + </h2> +</body> diff --git a/templates/export_choice.html b/templates/export_choice.html new file mode 100644 index 0000000..2ed6b11 --- /dev/null +++ b/templates/export_choice.html @@ -0,0 +1,13 @@ +<head> + <title>Heating</title> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <link rel= "stylesheet" + type= "text/css" + href= "{{ url_for('static',filename='style.css') }}"> +</head> +<body> + <a href="/"> <p>Home</p> </a> + <a href="/export/pdf"> <p>Export as pdf</p> </a> + <a href="/export/csv"> <p>Export as csv</p> </a> + <a href="/api/info"> <p>Use API</p> </a> +</body> diff --git a/templates/main.html b/templates/main.html new file mode 100644 index 0000000..296d813 --- /dev/null +++ b/templates/main.html @@ -0,0 +1,15 @@ +<head> + <title>Heating</title> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <link rel= "stylesheet" + type= "text/css" + href= "{{ url_for('static',filename='style.css') }}"> +</head> +<body> + <p> {{ forecast_temp }} </p> + <a href="/up"> <p>Increase</p> </a> + <p> {{ actual_temp }} </p> + <p> {{ target_temp }} </p> + <a href="/down"> <p>Decrease</p> </a> + <a href="/export"> <p>Export data</p> </a> +</body> |
