From 972ef9cbaddfaf49b404199509db6dfd71f68338 Mon Sep 17 00:00:00 2001 From: Mike Beattie Date: Wed, 21 Mar 2012 21:25:01 +1300 Subject: Add html and html generation script. Signed-off-by: Mike Beattie --- encode_html.sh | 16 ++++++++++++ html/index_20120321.html | 67 ++++++++++++++++++++++++++++++++++++++++++++++++ html/index_veryold.html | 51 ++++++++++++++++++++++++++++++++++++ index.html | 67 ++++++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 201 insertions(+) create mode 100755 encode_html.sh create mode 100644 html/index_20120321.html create mode 100644 html/index_veryold.html create mode 100644 index.html diff --git a/encode_html.sh b/encode_html.sh new file mode 100755 index 0000000..26f6677 --- /dev/null +++ b/encode_html.sh @@ -0,0 +1,16 @@ +#!/bin/sh + +# Copy HTML to a web server.... +scp index.html prometheus.ethernal.org:public_html/arduino.html + +# Fetch HTML with appropriate Accept-Encoding: header -> save to raw file +echo -ne "GET /~mjb/arduino.html HTTP/1.0\nAccept-Encoding: gzip\n\n" | nc www.ethernal.org 80 > index_gzip.raw + +# Process Raw file - delete headers and blank line -> save to raw gzip dat file +sed -e '0,/^\r$/d' index_gzip.raw > index_gzip.dat + +# Process raw gzip dat file into hex array for inclusion in program +od -A n -t x1 index_gzip.dat | sed -e 's/ \(..\)/0x\1, /g' -e 's/^/ /' > index_gzip.txt + +ls -l index_gzip.* + diff --git a/html/index_20120321.html b/html/index_20120321.html new file mode 100644 index 0000000..cde502a --- /dev/null +++ b/html/index_20120321.html @@ -0,0 +1,67 @@ +Door Control + + + + + + +
+

15 Park Lane

+

Door Control

+ + + + + + + + + + + + + + + + + + + + + + + + + +
Open
Unlocked
Closed
Open
Closed
Open
Closed
+
+ + diff --git a/html/index_veryold.html b/html/index_veryold.html new file mode 100644 index 0000000..ed1b342 --- /dev/null +++ b/html/index_veryold.html @@ -0,0 +1,51 @@ +Door Control + + + + +
+

15 Park Lane

+

Door Control

+
+ + + + + + + + + + + + + + + + + + + + + + + + + +
Open
Unlocked
Closed
Open
Closed
Open
Closed
+
+
+ + diff --git a/index.html b/index.html new file mode 100644 index 0000000..727b7b3 --- /dev/null +++ b/index.html @@ -0,0 +1,67 @@ +Door Control + + + + + + +
+

15 Park Lane

+

Door Control

+ + + + + + + + + + + + + + + + + + + + + + + + + +
Open
Unlocked
Closed
Open
Closed
Open
Closed
+
+ + -- cgit v1.2.3