diff options
author | dakkar <dakkar@thenautilus.net> | 2013-07-07 12:55:12 +0100 |
---|---|---|
committer | dakkar <dakkar@thenautilus.net> | 2013-07-07 12:55:12 +0100 |
commit | be17bfb8cd76af2d4f42bb81db8b959bc9620a48 (patch) | |
tree | 8fc2c6626d520f6d47009b23bed03dba00f5ae9a | |
parent | gitignore (diff) | |
download | HomePanel-be17bfb8cd76af2d4f42bb81db8b959bc9620a48.tar.gz HomePanel-be17bfb8cd76af2d4f42bb81db8b959bc9620a48.tar.bz2 HomePanel-be17bfb8cd76af2d4f42bb81db8b959bc9620a48.zip |
png icons, and table for timeline
-rw-r--r-- | forecast.html.tt | 60 | ||||
-rw-r--r-- | icons/1.png | bin | 0 -> 3128 bytes | |||
-rw-r--r-- | icons/10.png | bin | 0 -> 3465 bytes | |||
-rw-r--r-- | icons/11.png | bin | 0 -> 3085 bytes | |||
-rw-r--r-- | icons/12.png | bin | 0 -> 3517 bytes | |||
-rw-r--r-- | icons/13.png | bin | 0 -> 2076 bytes | |||
-rw-r--r-- | icons/14.png | bin | 0 -> 4005 bytes | |||
-rw-r--r-- | icons/15.png | bin | 0 -> 4828 bytes | |||
-rw-r--r-- | icons/16.png | bin | 0 -> 4806 bytes | |||
-rw-r--r-- | icons/17.png | bin | 0 -> 4577 bytes | |||
-rw-r--r-- | icons/18.png | bin | 0 -> 5250 bytes | |||
-rw-r--r-- | icons/19.png | bin | 0 -> 4161 bytes | |||
-rw-r--r-- | icons/2.png | bin | 0 -> 3830 bytes | |||
-rw-r--r-- | icons/20.png | bin | 0 -> 4603 bytes | |||
-rw-r--r-- | icons/21.png | bin | 0 -> 5273 bytes | |||
-rw-r--r-- | icons/22.png | bin | 0 -> 4901 bytes | |||
-rw-r--r-- | icons/23.png | bin | 0 -> 6341 bytes | |||
-rw-r--r-- | icons/24.png | bin | 0 -> 5623 bytes | |||
-rw-r--r-- | icons/25.png | bin | 0 -> 5370 bytes | |||
-rw-r--r-- | icons/26.png | bin | 0 -> 5870 bytes | |||
-rw-r--r-- | icons/27.png | bin | 0 -> 5848 bytes | |||
-rw-r--r-- | icons/28.png | bin | 0 -> 3402 bytes | |||
-rw-r--r-- | icons/29.png | bin | 0 -> 2280 bytes | |||
-rw-r--r-- | icons/3.png | bin | 0 -> 3140 bytes | |||
-rw-r--r-- | icons/30.png | bin | 0 -> 4368 bytes | |||
-rw-r--r-- | icons/31.png | bin | 0 -> 3728 bytes | |||
-rw-r--r-- | icons/32.png | bin | 0 -> 2604 bytes | |||
-rw-r--r-- | icons/33.png | bin | 0 -> 3132 bytes | |||
-rw-r--r-- | icons/34.png | bin | 0 -> 2952 bytes | |||
-rw-r--r-- | icons/35.png | bin | 0 -> 3576 bytes | |||
-rw-r--r-- | icons/36.png | bin | 0 -> 2992 bytes | |||
-rw-r--r-- | icons/37.png | bin | 0 -> 3549 bytes | |||
-rw-r--r-- | icons/38.png | bin | 0 -> 3577 bytes | |||
-rw-r--r-- | icons/39.png | bin | 0 -> 4703 bytes | |||
-rw-r--r-- | icons/4.png | bin | 0 -> 3847 bytes | |||
-rw-r--r-- | icons/40.png | bin | 0 -> 3927 bytes | |||
-rw-r--r-- | icons/41.png | bin | 0 -> 2863 bytes | |||
-rw-r--r-- | icons/42.png | bin | 0 -> 3296 bytes | |||
-rw-r--r-- | icons/43.png | bin | 0 -> 1878 bytes | |||
-rw-r--r-- | icons/44.png | bin | 0 -> 5092 bytes | |||
-rw-r--r-- | icons/45.png | bin | 0 -> 3803 bytes | |||
-rw-r--r-- | icons/46.png | bin | 0 -> 2579 bytes | |||
-rw-r--r-- | icons/47.png | bin | 0 -> 2169 bytes | |||
-rw-r--r-- | icons/5.png | bin | 0 -> 3616 bytes | |||
-rw-r--r-- | icons/6.png | bin | 0 -> 2766 bytes | |||
-rw-r--r-- | icons/7.png | bin | 0 -> 2974 bytes | |||
-rw-r--r-- | icons/8.png | bin | 0 -> 5935 bytes | |||
-rw-r--r-- | icons/9.png | bin | 0 -> 5327 bytes | |||
-rw-r--r-- | lib/HomePanel/Render.pm | 2 |
49 files changed, 30 insertions, 32 deletions
diff --git a/forecast.html.tt b/forecast.html.tt index eedc078..1a91bdd 100644 --- a/forecast.html.tt +++ b/forecast.html.tt @@ -26,33 +26,28 @@ <title>Forecast</title> <meta http-equiv="Content-type" content="text/html; charset=utf-8" /> <style type="text/css"> + body, table { font-size: 10px } + div.currently, div.next-hour, div.next-day { float: left; clear: none } + div.days { clear: both } + div.days dl { float: left; width: 30% } + + div.bus, div.tube { float: left } + + table { border-collapse: collapse; empty-cells: show } + table td { border: dotted thin black } + .icon img { width: 2em; height: 2em; float: left; } - .timeline { - position: relative; - height: 6em; - } .stripes { - position: absolute; text-align: center; border: solid thin black; - height: 2em; line-height: 2em; } .stripes span { font-size: 30%; vertical-align: middle; } - .timeline .summary > span { - top: 0; - } - .timeline .hours > span { - top: 2em; - } - .timeline .temperature > span { - top: 4em; - } </style> </head> <body> @@ -93,6 +88,7 @@ </div> <div class="days"> <div class="day today"> + <h2>Today</h2> <span class="icon"><img src="[% icon_for(today.icon) %]" alt="[% today.icon %]" /></span> <dl class="today"> <dt class="summary">Summary:</dt> @@ -107,22 +103,24 @@ <dd class="sunset"><span class="time">[% time(today.sunsetTime) %]</span></dd> </dl> <div class="timeline"> - <div class="summary"> - [% left=0 ;FOR span IN hourly.spans_by_string('summary'); - width=3*hours_length(span) %] - <span class="stripes" style="width: [% width %]em; left: [% left %]em"><span>[% span.value %]</span></span> - [% left=left+width; END %] - </div> - <div class="hours"> - [% left=0; FOR h IN hourly.data; BREAK IF loop.last %] - <span class="stripes" style="width: 3em; left: [% left %]em"><span>[% time(h.time) %]</span></span> - [% left=left+3; END %] - </div> - <div class="temperature"> - [% left=0; FOR h IN hourly.data; BREAK IF loop.last %] - <span class="stripes" style="width: 3em; left: [% left %]em"><span>[% h.temperature %]°</span></span> - [% left=left+3; END %] - </div> + <table class="timeline"> + <tr class="summary"> + [% FOR span IN hourly.spans_by_string('summary'); + width=hours_length(span) %] + <td class="stripes" colspan="[% width %]"><span>[% span.value %]</span></td> + [% END %] + </tr> + <tr class="hours"> + [% FOR h IN hourly.data; BREAK IF loop.last %] + <td class="stripes"><span>[% time(h.time) %]</span></td> + [% END %] + </tr> + <tr class="temperature"> + [% FOR h IN hourly.data; BREAK IF loop.last %] + <td class="stripes"><span>[% h.temperature %]°</span></td> + [% END %] + </tr> + </table> </div> </div> </div> diff --git a/icons/1.png b/icons/1.png Binary files differnew file mode 100644 index 0000000..7955877 --- /dev/null +++ b/icons/1.png diff --git a/icons/10.png b/icons/10.png Binary files differnew file mode 100644 index 0000000..4df9fb8 --- /dev/null +++ b/icons/10.png diff --git a/icons/11.png b/icons/11.png Binary files differnew file mode 100644 index 0000000..e4ad1a3 --- /dev/null +++ b/icons/11.png diff --git a/icons/12.png b/icons/12.png Binary files differnew file mode 100644 index 0000000..f3a7665 --- /dev/null +++ b/icons/12.png diff --git a/icons/13.png b/icons/13.png Binary files differnew file mode 100644 index 0000000..3095b73 --- /dev/null +++ b/icons/13.png diff --git a/icons/14.png b/icons/14.png Binary files differnew file mode 100644 index 0000000..c05b879 --- /dev/null +++ b/icons/14.png diff --git a/icons/15.png b/icons/15.png Binary files differnew file mode 100644 index 0000000..798906a --- /dev/null +++ b/icons/15.png diff --git a/icons/16.png b/icons/16.png Binary files differnew file mode 100644 index 0000000..9e42891 --- /dev/null +++ b/icons/16.png diff --git a/icons/17.png b/icons/17.png Binary files differnew file mode 100644 index 0000000..db86c80 --- /dev/null +++ b/icons/17.png diff --git a/icons/18.png b/icons/18.png Binary files differnew file mode 100644 index 0000000..8a74cb2 --- /dev/null +++ b/icons/18.png diff --git a/icons/19.png b/icons/19.png Binary files differnew file mode 100644 index 0000000..7a506f5 --- /dev/null +++ b/icons/19.png diff --git a/icons/2.png b/icons/2.png Binary files differnew file mode 100644 index 0000000..6a97c89 --- /dev/null +++ b/icons/2.png diff --git a/icons/20.png b/icons/20.png Binary files differnew file mode 100644 index 0000000..fd3cee0 --- /dev/null +++ b/icons/20.png diff --git a/icons/21.png b/icons/21.png Binary files differnew file mode 100644 index 0000000..3c30a00 --- /dev/null +++ b/icons/21.png diff --git a/icons/22.png b/icons/22.png Binary files differnew file mode 100644 index 0000000..56dcb0b --- /dev/null +++ b/icons/22.png diff --git a/icons/23.png b/icons/23.png Binary files differnew file mode 100644 index 0000000..9160d1b --- /dev/null +++ b/icons/23.png diff --git a/icons/24.png b/icons/24.png Binary files differnew file mode 100644 index 0000000..76665aa --- /dev/null +++ b/icons/24.png diff --git a/icons/25.png b/icons/25.png Binary files differnew file mode 100644 index 0000000..38f7ab5 --- /dev/null +++ b/icons/25.png diff --git a/icons/26.png b/icons/26.png Binary files differnew file mode 100644 index 0000000..5dd980a --- /dev/null +++ b/icons/26.png diff --git a/icons/27.png b/icons/27.png Binary files differnew file mode 100644 index 0000000..7fb6722 --- /dev/null +++ b/icons/27.png diff --git a/icons/28.png b/icons/28.png Binary files differnew file mode 100644 index 0000000..19c96f1 --- /dev/null +++ b/icons/28.png diff --git a/icons/29.png b/icons/29.png Binary files differnew file mode 100644 index 0000000..6d1eee8 --- /dev/null +++ b/icons/29.png diff --git a/icons/3.png b/icons/3.png Binary files differnew file mode 100644 index 0000000..cc1ff51 --- /dev/null +++ b/icons/3.png diff --git a/icons/30.png b/icons/30.png Binary files differnew file mode 100644 index 0000000..18271f5 --- /dev/null +++ b/icons/30.png diff --git a/icons/31.png b/icons/31.png Binary files differnew file mode 100644 index 0000000..941a74d --- /dev/null +++ b/icons/31.png diff --git a/icons/32.png b/icons/32.png Binary files differnew file mode 100644 index 0000000..1b1f90f --- /dev/null +++ b/icons/32.png diff --git a/icons/33.png b/icons/33.png Binary files differnew file mode 100644 index 0000000..7b43b58 --- /dev/null +++ b/icons/33.png diff --git a/icons/34.png b/icons/34.png Binary files differnew file mode 100644 index 0000000..1e2b863 --- /dev/null +++ b/icons/34.png diff --git a/icons/35.png b/icons/35.png Binary files differnew file mode 100644 index 0000000..80b0cfc --- /dev/null +++ b/icons/35.png diff --git a/icons/36.png b/icons/36.png Binary files differnew file mode 100644 index 0000000..3826de1 --- /dev/null +++ b/icons/36.png diff --git a/icons/37.png b/icons/37.png Binary files differnew file mode 100644 index 0000000..66f188e --- /dev/null +++ b/icons/37.png diff --git a/icons/38.png b/icons/38.png Binary files differnew file mode 100644 index 0000000..3d40b1a --- /dev/null +++ b/icons/38.png diff --git a/icons/39.png b/icons/39.png Binary files differnew file mode 100644 index 0000000..28621bf --- /dev/null +++ b/icons/39.png diff --git a/icons/4.png b/icons/4.png Binary files differnew file mode 100644 index 0000000..f7fd2d8 --- /dev/null +++ b/icons/4.png diff --git a/icons/40.png b/icons/40.png Binary files differnew file mode 100644 index 0000000..b78380f --- /dev/null +++ b/icons/40.png diff --git a/icons/41.png b/icons/41.png Binary files differnew file mode 100644 index 0000000..568028d --- /dev/null +++ b/icons/41.png diff --git a/icons/42.png b/icons/42.png Binary files differnew file mode 100644 index 0000000..5c22311 --- /dev/null +++ b/icons/42.png diff --git a/icons/43.png b/icons/43.png Binary files differnew file mode 100644 index 0000000..454f3c0 --- /dev/null +++ b/icons/43.png diff --git a/icons/44.png b/icons/44.png Binary files differnew file mode 100644 index 0000000..52793ad --- /dev/null +++ b/icons/44.png diff --git a/icons/45.png b/icons/45.png Binary files differnew file mode 100644 index 0000000..a02545e --- /dev/null +++ b/icons/45.png diff --git a/icons/46.png b/icons/46.png Binary files differnew file mode 100644 index 0000000..f18c735 --- /dev/null +++ b/icons/46.png diff --git a/icons/47.png b/icons/47.png Binary files differnew file mode 100644 index 0000000..a29da24 --- /dev/null +++ b/icons/47.png diff --git a/icons/5.png b/icons/5.png Binary files differnew file mode 100644 index 0000000..fc04308 --- /dev/null +++ b/icons/5.png diff --git a/icons/6.png b/icons/6.png Binary files differnew file mode 100644 index 0000000..84b789e --- /dev/null +++ b/icons/6.png diff --git a/icons/7.png b/icons/7.png Binary files differnew file mode 100644 index 0000000..53da68d --- /dev/null +++ b/icons/7.png diff --git a/icons/8.png b/icons/8.png Binary files differnew file mode 100644 index 0000000..6f565b7 --- /dev/null +++ b/icons/8.png diff --git a/icons/9.png b/icons/9.png Binary files differnew file mode 100644 index 0000000..b4d97bf --- /dev/null +++ b/icons/9.png diff --git a/lib/HomePanel/Render.pm b/lib/HomePanel/Render.pm index 6984048..df9a653 100644 --- a/lib/HomePanel/Render.pm +++ b/lib/HomePanel/Render.pm @@ -56,7 +56,7 @@ my %icon_for=( sub icon_for { my ($status) = @_; - return "icons/".($icon_for{$status}//'45').".svg"; + return "icons/".($icon_for{$status}//'45').".png"; } } |