changeset 29:27217790dc04

add web manifest
author Paul Fisher <paul@pfish.zone>
date Tue, 19 May 2020 10:11:28 -0400
parents f817fa785c93
children c760ab7f93c2
files weather_server/static/icons/192.png weather_server/static/icons/512.png weather_server/static/icons/icon.svg weather_server/static/manifest.webmanifest weather_server/templates/index.html weather_server/templates/location.html
diffstat 6 files changed, 123 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
Binary file weather_server/static/icons/192.png has changed
Binary file weather_server/static/icons/512.png has changed
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/weather_server/static/icons/icon.svg	Tue May 19 10:11:28 2020 -0400
@@ -0,0 +1,96 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!-- Created with Inkscape (http://www.inkscape.org/) -->
+
+<svg
+   xmlns:dc="http://purl.org/dc/elements/1.1/"
+   xmlns:cc="http://creativecommons.org/ns#"
+   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
+   xmlns:svg="http://www.w3.org/2000/svg"
+   xmlns="http://www.w3.org/2000/svg"
+   xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
+   xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
+   width="512"
+   height="512"
+   viewBox="0 0 135.46666 135.46667"
+   version="1.1"
+   id="svg8"
+   sodipodi:docname="icon.svg"
+   inkscape:version="0.92.4 (5da689c313, 2019-01-14)">
+  <defs
+     id="defs2" />
+  <sodipodi:namedview
+     id="base"
+     pagecolor="#0d47a1"
+     bordercolor="#666666"
+     borderopacity="1.0"
+     inkscape:pageopacity="1"
+     inkscape:pageshadow="2"
+     inkscape:zoom="1"
+     inkscape:cx="291.40897"
+     inkscape:cy="81.345565"
+     inkscape:document-units="px"
+     inkscape:current-layer="layer2"
+     showgrid="true"
+     units="px"
+     inkscape:window-width="3840"
+     inkscape:window-height="1996"
+     inkscape:window-x="0"
+     inkscape:window-y="56"
+     inkscape:window-maximized="1">
+    <inkscape:grid
+       type="xygrid"
+       id="grid834"
+       spacingx="2.1166666"
+       spacingy="2.1166666"
+       empspacing="4"
+       color="#ff3f3f"
+       opacity="0.1254902"
+       empcolor="#ff3fff"
+       empopacity="0.25098039" />
+  </sodipodi:namedview>
+  <metadata
+     id="metadata5">
+    <rdf:RDF>
+      <cc:Work
+         rdf:about="">
+        <dc:format>image/svg+xml</dc:format>
+        <dc:type
+           rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
+        <dc:title></dc:title>
+      </cc:Work>
+    </rdf:RDF>
+  </metadata>
+  <g
+     inkscape:groupmode="layer"
+     id="layer2"
+     inkscape:label="Layer 2"
+     style="opacity:1">
+    <path
+       style="fill:none;stroke:#ffffff;stroke-width:4.23333328;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
+       d="M 110.06666,84.66667 101.6,88.9 l -8.466667,12.7 -8.46667,-4.23333 -8.466667,-12.7 -8.466664,-12.7 -8.466667,4.23333 -8.466666,-8.46667 -8.466667,4.23334 -8.466666,-21.166672 -8.466667,4.23334 -8.466667,-8.46667 -8.4666662,4.23333 L -8.0000146e-7,46.566668 v 0 0 c 0,0 0,0 0,0 H -8.4666671"
+       id="path876"
+       inkscape:connector-curvature="0" />
+    <rect
+       rx="4.2333331"
+       y="48.683334"
+       x="105.83333"
+       height="35.983334"
+       width="8.4666662"
+       id="rect874"
+       style="opacity:1;fill:#ffffff;fill-opacity:1;stroke:none;stroke-width:4.23333328;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;paint-order:markers stroke fill" />
+    <rect
+       style="opacity:1;fill:none;fill-opacity:1;stroke:#ffffff;stroke-width:4.23333328;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;paint-order:markers stroke fill"
+       id="rect872"
+       width="8.4666662"
+       height="59.266666"
+       x="105.83333"
+       y="25.400002"
+       rx="4.2333331" />
+    <circle
+       style="opacity:1;fill:#0d47a1;fill-opacity:1;stroke:#ffffff;stroke-width:4.23333328;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;paint-order:normal"
+       id="path868"
+       cx="110.06667"
+       cy="84.666664"
+       r="8.4666662" />
+  </g>
+</svg>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/weather_server/static/manifest.webmanifest	Tue May 19 10:11:28 2020 -0400
@@ -0,0 +1,24 @@
+{
+    "short_name": "Temperatures",
+    "name": "Temperature Sensors",
+    "description": "Graphs from the temperature sensors you have peppered throughout your home",
+    "icons": [
+        {
+            "src": "/static/icons/192.png",
+            "type": "image/png",
+            "sizes": "192x192",
+            "purpose": "maskable any"
+        },
+        {
+            "src": "/static/icons/512.png",
+            "type": "image/png",
+            "sizes": "512x512",
+            "purpose": "maskable any"
+        }
+    ],
+    "start_url": "/",
+    "background_color": "#263238",
+    "display": "minimal-ui",
+    "scope": "/",
+    "theme_color": "#263238"
+}
--- a/weather_server/templates/index.html	Sun Jan 19 17:05:11 2020 -0500
+++ b/weather_server/templates/index.html	Tue May 19 10:11:28 2020 -0400
@@ -9,6 +9,7 @@
         <link
             rel="shortcut icon"
             href="{{ url_for('static', filename='thermometer.png') }}">
+        <link rel="manifest" href="/static/manifest.webmanifest">
     </head>
     <body class="home">
         <h1><span>Weather</span></h1>
--- a/weather_server/templates/location.html	Sun Jan 19 17:05:11 2020 -0500
+++ b/weather_server/templates/location.html	Tue May 19 10:11:28 2020 -0400
@@ -9,7 +9,8 @@
         <link
             rel="shortcut icon"
             href="{{ url_for('static', filename='thermometer.png') }}">
-    </head>
+        <link rel="manifest" href="/static/manifest.webmanifest">
+        </head>
     <body class="location plain">
         <h1><span><a href="{{ url_for('home') }}">Weather</a>: {{ location.name }}</span></h1>
         {% if last_reading %}