| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586 |
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="UTF-8">
- <meta name="viewport" content="width=device-width,initial-scale=1">
- <title>Weather Station</title>
- <style>
- div.graph-container {
- text-align: center;
- }
- h2, #last-update {
- text-align: center;
- font-family: sans, 'sans-serif';
- }
- #time-series-graphs canvas {
- max-width: 800px;
- max-height: 300px;
- display: inline-block !important;
- }
- div.graph-container h2 {
- display: inline-block;
- margin-right: 0.5em;
- }
- #gauges {
- display: flex;
- flex-flow: row wrap;
- justify-content: center;
- width: 100%;
- }
- #gauges > div {
- flex-grow: 1;
- flex-shrink: 1;
- flex-basis: 2cm;
- max-width: 5cm;
- }
- /* The unfilled part of a dial */
- #gauges .gauge > .dial {
- stroke-width: 3px;
- }
- /* The filled part of a dial */
- #gauges .gauge > .value {
- stroke-width: 7px;
- }
- @media only screen and (max-width: 500px) {
- #gauges > div.temperature {
- min-width: 80%;
- flex-grow: 2;
- flex-shrink: 0;
- }
- #gauges > div:not(.temperature) {
- min-width: 30%;
- }
- }
- </style>
- </head>
- <body>
- <div id="gauges"></div>
- <div id="last-update">
- <strong>Latest reading:</strong>
- <span id="last-update-value"></span>
- </div>
- <div id="time-series-graphs"></div>
- <div id="hour-selector">
- <label>
- Hours to show:
- <select id="hours-ago"></select>
- </label>
- <!-- <button id="log-entries">Log raw entries</button>-->
- </div>
- <!--suppress HtmlUnknownTarget -->
- <script src="js/main.js" async></script>
- </body>
- </html>
|