Commit 67b2aaa1 authored by Philipp's avatar Philipp

new repo due to incompetence...

parents
{
"directory": "src/bower_components"
}
src/bower_components
node_modules
src/archive/*.json
src/photocam
src/webcam
\ No newline at end of file
DS-Font's TrueType Fonts
Font name: DS-Digital (Normal, Bold, Italic, Bold Italic), Version 1.0
Author: Dusit Supasawat
Web Site: http://ds-font.hypermart.net
Contact me: Dusit Supasawat, 325/38 Suksawat32 Ratburana Bangkok Thailand 10140
Email address: dusit@mailcity.com
Thanks for trying! We hope you really enjoy this my typeface. This font is
distributed as shareware. You can use this font for a long time as you want.
After all, when you think this font can be usefulness for you. You can send
me some money, that would be way cool.
I'm only asking $20 US shareware fee per this typeface for personal use.
And $45 US is the usual amount per this typeface for commercial use.
Distribution: You are free to distribute this archive so long as this text
file is distributed with the archive, the font file have not been modified,
and it is understood that the font's copyright remains with the original
author (Dusit Supasawat).
To register send your payment to:
Dusit Supasawat
325/38 Suksawat32 Ratburana
Bangkok Thailand 10140
And fill out something as this order form, and send it in with your payment.
Font name:_________________________________________
Your information
Name:______________________________________________
Address:___________________________________________
City, State : _____________________________________
Zip Code:__________________________________________
Country:___________________________________________
E-MAIL address:____________________________________
You will receive fonts which you order by Email after registration. These fonts
will be generated for you by specify your name in font information.
\ No newline at end of file
This diff is collapsed.
/*
* Rabenwetter is free template for weewx (weewx.com) by Philipp Giebel (info@ambnet.biz)
* For more info check out
* https://www.rabenwetter.de or https://gitlab.ambhost.net/stimpy/website_rabenwetter
*/
module.exports = function (grunt) {
grunt.loadNpmTasks('grunt-contrib-htmlmin');
grunt.loadNpmTasks('grunt-contrib-cssmin');
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-contrib-copy');
grunt.loadNpmTasks('grunt-processhtml');
grunt.loadNpmTasks('grunt-contrib-clean');
grunt.loadNpmTasks('grunt-file-append');
grunt.initConfig({
cssmin: {
options: {
shorthandCompacting: false,
roundingPrecision: -1
},
main: {
files: {
//'src/assets/css/complete.min.css': [ 'src/bower_components/bootstrap/dist/css/bootstrap.css', 'src/bower_components/ie10-viewport-bug-workaround/dist/ie10-viewport-bug-workaround.css', 'src/bower_components/devextreme/css/dx.common.css', 'src/bower_components/devextreme/css/dx.light.css', 'src/bower_components/bootstrap-datepicker/dist/css/bootstrap-datepicker.css', 'src/assets/css/main.css' ],
'src/assets/css/complete.min.css': [ 'src/bower_components/bootstrap/dist/css/bootstrap.css', 'src/bower_components/ie10-viewport-bug-workaround/dist/ie10-viewport-bug-workaround.css', 'src/bower_components/devextreme/css/dx.common.css', 'src/bower_components/bootstrap-datepicker/dist/css/bootstrap-datepicker.css', 'src/assets/css/main.css' ],
'src/assets/css/incomplete.min.css': [ 'src/bower_components/bootstrap/dist/css/bootstrap.css', 'src/bower_components/ie10-viewport-bug-workaround/dist/ie10-viewport-bug-workaround.css', 'src/assets/css/main.css' ]
}
}
},
uglify: {
options: {
mangle: false
},
main: {
files: {
'src/assets/js/complete.min.js': ['src/bower_components/jquery/dist/jquery.js', 'src/bower_components/bootstrap/dist/js/bootstrap.js', 'src/devextreme_bundler/dx.custom.js', 'src/bower_components/bootstrap-datepicker/dist/js/bootstrap-datepicker.js', 'bower_components/bootstrap-datepicker/dist/locales/bootstrap-datepicker.de.min.js', 'src/bower_components/jquery-zoom/jquery.zoom.min.js', 'src/bower_components/jquery-fullscreen/jquery.fullscreen.js', 'src/bower_components/ie10-viewport-bug-workaround/dist/ie10-viewport-bug-workaround.js', 'src/assets/js/main.js' ],
'src/assets/js/incomplete.min.js': ['src/bower_components/jquery/dist/jquery.js', 'src/bower_components/bootstrap/dist/js/bootstrap.js', 'src/bower_components/jquery-zoom/jquery.zoom.min.js', 'src/bower_components/ie10-viewport-bug-workaround/dist/ie10-viewport-bug-workaround.js', 'src/assets/js/main.js' ],
'src/assets/js/iecompat.min.js': ['src/bower_components/html5shiv/dist/html5shiv.min.js', 'src/bower_components/respond/dest/respond.min.js' ]
}
}
},
htmlmin: {
main: {
options: {
removeComments: true,
collapseWhitespace: true,
minifyCSS: true,
minifyJS: true,
sortAttributes: true,
sortClassName: true
},
files: {
'src/index.min.html.tmpl': 'src/index.html.tmpl',
'src/archive.min.html.tmpl': 'src/archive.html.tmpl',
'src/info.min.html.tmpl': 'src/info.html.tmpl',
'src/contact.min.html.tmpl': 'src/contact.html.tmpl',
'src/fullscreen1.min.html.tmpl': 'src/fullscreen1.html.tmpl',
'src/fullscreen2.min.html.tmpl': 'src/fullscreen2.html.tmpl'
}
}
},
file_append: {
default_options: {
files: [
{
append: "",
prepend: "#errorCatcher Echo\n#encoding UTF-8\n",
input: 'src/index.min.html.tmpl',
output: 'src/index.prep.min.html.tmpl'
},
{
append: "",
prepend: "#errorCatcher Echo\n#encoding UTF-8\n",
input: 'src/archive.min.html.tmpl',
output: 'src/archive.prep.min.html.tmpl'
},
{
append: "",
prepend: "#errorCatcher Echo\n#encoding UTF-8\n",
input: 'src/info.min.html.tmpl',
output: 'src/info.prep.min.html.tmpl'
},
{
append: "",
prepend: "#errorCatcher Echo\n#encoding UTF-8\n",
input: 'src/contact.min.html.tmpl',
output: 'src/contact.prep.min.html.tmpl'
}
]
}
},
copy: {
main: {
files: [
{src: 'src/skin.conf', dest: 'dist/skin.conf'},
{src: 'src/index.prep.min.html.tmpl', dest: 'dist/index.html.tmpl'},
{src: 'src/archive.prep.min.html.tmpl', dest: 'dist/archive.html.tmpl'},
{src: 'src/info.prep.min.html.tmpl', dest: 'dist/info.html.tmpl'},
{src: 'src/contact.prep.min.html.tmpl', dest: 'dist/contact.html.tmpl'},
{src: 'src/fullscreen1.min.html.tmpl', dest: 'dist/fullscreen1.html.tmpl'},
{src: 'src/fullscreen2.min.html.tmpl', dest: 'dist/fullscreen2.html.tmpl'},
{src: 'src/assets/js/complete.min.js', dest: 'dist/assets/js/complete.min.js'},
{src: 'src/assets/js/incomplete.min.js', dest: 'dist/assets/js/incomplete.min.js'},
{src: 'src/assets/js/iecompat.min.js', dest: 'dist/assets/js/iecompat.min.js'},
{src: 'src/assets/css/complete.min.css', dest: 'dist/assets/css/complete.min.css'},
{src: 'src/assets/css/incomplete.min.css', dest: 'dist/assets/css/incomplete.min.css'},
{expand: true, cwd: 'src/archive', src: ['*.tmpl'], dest: 'dist/archive/'},
{expand: true, cwd: 'src/NOAA', src: ['*.tmpl'], dest: 'dist/NOAA/'},
{expand: true, cwd: 'src/RSS', src: ['*.tmpl'], dest: 'dist/RSS/'},
{expand: true, cwd: 'src/assets/img', src: ['**'], dest: 'dist/assets/img/'},
{expand: true, cwd: 'src/assets/fonts', src: ['**'], dest: 'dist/assets/fonts/'},
{expand: true, cwd: 'src/assets/favicons', src: ['**'], dest: 'dist/'},
{expand: true, cwd: 'src/bower_components/devextreme/css/icons', src: ['**'], dest: 'dist/assets/css/icons/'},
{expand: true, cwd: 'src/bower_components/bootstrap/dist/fonts', src: ['**'], dest: 'dist/assets/fonts/'}
]
}
},
processhtml: {
dist: {
options: {
process: true,
data: {
title: 'Rabenwetter',
message: 'WeeWX Template'
}
},
files: {
'src/index.html.tmpl': ['src/index.html'],
'src/archive.html.tmpl': ['src/archive.html'],
'src/info.html.tmpl': ['src/info.html'],
'src/contact.html.tmpl': ['src/contact.html'],
'src/fullscreen1.html.tmpl': ['src/fullscreen1.html'],
'src/fullscreen2.html.tmpl': ['src/fullscreen2.html']
}
}
},
clean: ["src/*.tmpl", "src/fullscreen*.min.html", "src/assets/js/complete.min.js", "src/assets/js/incomplete.min.js", "src/assets/js/iecompat.min.js", "src/assets/css/complete.min.css", "src/assets/css/incomplete.min.css" ]
});
grunt.registerTask('build', ["processhtml", "cssmin", "uglify", "htmlmin", "file_append" ]);
grunt.registerTask('dist', ["copy"]);
grunt.registerTask('default', ["build", "dist", "clean"]);
};
SIL Open Font License v1.10
This license can also be found at this permalink: https://www.fontsquirrel.com/license/League-Gothic
Copyright (c) 2010, Caroline Hadilaksono & Micah Rich
, with Reserved Font Name: “League Gothic”.
This Font Software is licensed under the SIL Open Font License, Version 1.1.
This license is copied below, and is also available with a FAQ at: http://scripts.sil.org/OFL
—————————————————————————————-
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
—————————————————————————————-
PREAMBLE
The goals of the Open Font License (OFL) are to stimulate worldwide development of collaborative font projects, to support the font creation efforts of academic and linguistic communities, and to provide a free and open framework in which fonts may be shared and improved in partnership with others.
The OFL allows the licensed fonts to be used, studied, modified and redistributed freely as long as they are not sold by themselves. The fonts, including any derivative works, can be bundled, embedded, redistributed and/or sold with any software provided that any reserved names are not used by derivative works. The fonts and derivatives, however, cannot be released under any other type of license. The requirement for fonts to remain under this license does not apply to any document created using the fonts or their derivatives.
DEFINITIONS
“Font Software” refers to the set of files released by the Copyright Holder(s) under this license and clearly marked as such. This may include source files, build scripts and documentation.
“Reserved Font Name” refers to any names specified as such after the copyright statement(s).
“Original Version” refers to the collection of Font Software components as distributed by the Copyright Holder(s).
“Modified Version” refers to any derivative made by adding to, deleting, or substituting—in part or in whole—any of the components of the Original Version, by changing formats or by porting the Font Software to a new environment.
“Author” refers to any designer, engineer, programmer, technical writer or other person who contributed to the Font Software.
PERMISSION & CONDITIONS
Permission is hereby granted, free of charge, to any person obtaining a copy of the Font Software, to use, study, copy, merge, embed, modify, redistribute, and sell modified and unmodified copies of the Font Software, subject to the following conditions:
1) Neither the Font Software nor any of its individual components, in Original or Modified Versions, may be sold by itself.
2) Original or Modified Versions of the Font Software may be bundled, redistributed and/or sold with any software, provided that each copy contains the above copyright notice and this license. These can be included either as stand-alone text files, human-readable headers or in the appropriate machine-readable metadata fields within text or binary files as long as those fields can be easily viewed by the user.
3) No Modified Version of the Font Software may use the Reserved Font Name(s) unless explicit written permission is granted by the corresponding Copyright Holder. This restriction only applies to the primary font name as presented to the users.
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font Software shall not be used to promote, endorse or advertise any Modified Version, except to acknowledge the contribution(s) of the Copyright Holder(s) and the Author(s) or with their explicit written permission.
5) The Font Software, modified or unmodified, in part or in whole, must be distributed entirely under this license, and must not be distributed under any other license. The requirement for fonts to remain under this license does not apply to any document created using the Font Software.
TERMINATION
This license becomes null and void if any of the above conditions are not met.
DISCLAIMER
THE FONT SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM OTHER DEALINGS IN THE FONT SOFTWARE.
\ No newline at end of file
Copyright 2018 Philipp Giebel <info@ambnet.biz>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
\ No newline at end of file
# Rabenwetter
**A [weeWX](http://weewx.com/) skin for [rabenwetter.de](https://rabenwetter.de)**
## Introduction / Warning
While this is in production use on [rabenwetter.de](https://rabenwetter.de)
already, it's still kinda messy and you should expect bugs. Only use it, if
you're willing to spend a few hours on this...
I will eventually update and really release it, when it's ready, but it's not, yet...
## Demo
See this skin in action at [rabenwetter.de](https://rabenwetter.de)
## Installation
* **Copy `dist/*` to a new folder inside your weewx `skins` directory.**
> **Example:**
> `cp -r website_rabenwetter/dist/* /etc/weewx/skins/Rabenwetter/`
* **Apply supplied patch.**
> **Example:**
> `patch -p1 /usr/share/weewx/weewx/cheetahgenerator.py website_rabenwetter/cheetahgenerator.patch`
>
> This patch adds the ability to append week numbers to archive filenames,
> which is needed for the graphs on the archive page.
> **As of weeWX v3.8.0, you will need to reapply this patch everytime, you're
> updating your weewx version!**
>
> The patch has already been [merged with the development branch](https://github.com/weewx/weewx/pull/319)
> of weewx, so it will be included with future releases of weeWX, rendering
> this step useless in the future. I'll update this readme accordingly.
* **Edit `skin.conf` according to your system.**
> **Example:**
> `vim /etc/weewx/skins/Rabenwetter/skin.conf`
* **Edit `info.html.tmpl` and `contact.html.tmpl` according to your needs.**
* **Edit `weewx.conf` to use the new skin.**
Look for the parameter `"skin"` below the section `"[[StandardReport]]"` and
change it to `"Rabenwetter"`
> **Example:**
> `[[StandardReport]]`
> ` skin = Rabenwetter`
* **Webcam(s) (optional)**
This skin can make use of up to two webcams. If you don't have of want them,
simply delete or comment the corresponding configuration parameters from the
included `skin.conf`.
If, however, you ARE running a webcam, you may also take a look
at some scripts, I wrote for several different types of webcams playing nice
with this template: https://gitlab.ambhost.net/stimpy/scripts_webcam
## Development
### Initial dependencies
* [npm](https://nodejs.org/en/)
### Install remaining dependencies:
> `~# npm install`
> `~# bower install`
### Sources
All development is done inside the folder `src/`. It's done in a way, so you
can use the `src` folder as webroot on your development webserver.
There will be some errors with weewx variables and logic bits, but it works
good enough to see, what you're doing without having to render it through
weewx everytime.
### Distribution
Use grunt to create a usable weeWX skin inside the folder `dist/`:
> `~# grunt`
## Updates
You can always find the latest version of this
[at my gitlab](https://gitlab.ambhost.net/stimpy/website_rabenwetter).
## License
This template is licensed under the MIT License. Please see included
[`LICENSE`](https://gitlab.ambhost.net/stimpy/website_rabenwetter/blob/master/LICENSE)
file for details.
However, the used [DevExtreme](https://js.devexpress.com/) library isn't.
So this template is for non-commercial use only! (Or, you'll have to buy a license from them..) Please see included
[`DXEULA`](https://gitlab.ambhost.net/stimpy/website_rabenwetter/blob/master/DXEULA)
file for details.
## 3rd party licenses
* **[jQuery](https://jquery.com):** [Proprietary](https://github.com/jquery/jquery/blob/master/LICENSE.txt)
* **[Bootstrap](https://getbootstrap.com):** [MIT License](https://github.com/twbs/bootstrap/blob/v3.4.0-dev/LICENSE)
* **[Bootstrap Datepicker](https://github.com/eternicode/bootstrap-datepicker):** [Apache License 2.0](https://github.com/uxsolutions/bootstrap-datepicker/blob/master/LICENSE)
* **[jQuery Zoom](http://jacklmoore.com/zoom/):** [MIT License](https://github.com/jackmoore/zoom/blob/master/LICENSE.md)
* **[DevExtreme](https://js.devexpress.com/):** [Proprietary](https://js.devexpress.com/EULAs/DevExtremeNonCommercial/)
* **[DSDIGI Font](http://ds-font.hypermart.net):** [Proprietary](https://gitlab.ambhost.net/stimpy/website_rabenwetter/blob/master/DSDIGI)
* **[Leagure Gothic Font](https://www.fontsquirrel.com/fonts/League-Gothic):** [SIL](https://gitlab.ambhost.net/stimpy/website_rabenwetter/blob/master/LEAGUEGOTHIC)
\ No newline at end of file
{
"name": "website_rabenwetter",
"version": "1.0.0",
"main": "dist/assets/css/complete.css",
"ignore": [
".jshintrc",
"**/*.txt"
],
"dependencies": {
"Respond": "1.4.2",
"bootstrap": "3.3.7",
"devextreme": "17.2.7",
"respond": "Respond#1.4.2",
"html5shiv": "3.7.3",
"ie10-viewport-bug-workaround": "1.0.4",
"jquery-zoom": "1.7.20",
"bootstrap-datepicker": "1.8.0",
"jquery-fullscreen": "1.1.4"
},
"devDependencies": {}
}
--- cheetahgenerator.orig.py 2018-04-05 11:53:40.322833632 +0200
+++ cheetahgenerator.py 2018-04-05 12:43:28.971182834 +0200
@@ -59,6 +59,8 @@
import os.path
import syslog
import time
+# Needed for week-of-year calculation, added by stimpy.
+import datetime
import configobj
@@ -380,18 +382,21 @@
_filename = os.path.basename(template).replace('.tmpl', '')
- # If the filename contains YYYY, MM, or DD, then do the replacement
- if 'YYYY' in _filename or 'MM' in _filename or 'DD' in _filename:
+ # If the filename contains YYYY, MM, DD or WW, then do the replacement
+ if 'YYYY' in _filename or 'MM' in _filename or 'DD' in _filename or 'WW' in _filename:
# Get strings representing year, month, and day
_yr_str = "%4d" % ref_tt[0]
_mo_str = "%02d" % ref_tt[1]
_day_str = "%02d" % ref_tt[2]
+ _week_str = "%02d" % datetime.date( ref_tt[0], ref_tt[1], ref_tt[2] ).isocalendar()[1];
# Replace any instances of 'YYYY' with the year string
_filename = _filename.replace('YYYY', _yr_str)
# Do the same thing with the month...
_filename = _filename.replace('MM', _mo_str)
# ... and the day
_filename = _filename.replace('DD', _day_str)
+ # added by stimpy: The week.
+ _filename = _filename.replace('WW', _week_str)
return _filename
#errorCatcher Echo
#set $YM="%Y %m"
#set $D=" %d"
#set $M=" %b"
#set $Time=" %H:%M"
#set $NODAY=" N/A"
#set $Temp="%6.1f"
#set $Wind="%6.1f"
#set $Dir="%6.0f"
#set $Count="%6d"
#set $NONE=" N/A"
#if $unit.unit_type_dict.group_rain == "mm"
#set $Rain="%6.1f"
#else
#set $Rain="%6.2f"
#end if
MONTHLY CLIMATOLOGICAL SUMMARY for $month_name $year_name
NAME: $station.location
ELEV: $station.altitude LAT: $station.latitude[0]-$station.latitude[1] $station.latitude[2] LONG: $station.longitude[0]-$station.longitude[1] $station.longitude[2]
TEMPERATURE ($unit.label.outTemp.strip()), RAIN ($unit.label.rain.strip()), WIND SPEED ($unit.label.windSpeed.strip())
HEAT COOL AVG
MEAN DEG DEG WIND DOM
DAY TEMP HIGH TIME LOW TIME DAYS DAYS RAIN SPEED HIGH TIME DIR
---------------------------------------------------------------------------------------
#for $day in $month.days
#if $day.barometer.count.raw
$day.dateTime.format($D) $day.outTemp.avg.nolabel($Temp,$NONE) $day.outTemp.max.nolabel($Temp,$NONE) $day.outTemp.maxtime.format($Time) $day.outTemp.min.nolabel($Temp,$NONE) $day.outTemp.mintime.format($Time) $day.heatdeg.sum.nolabel($Temp,$NONE) $day.cooldeg.sum.nolabel($Temp,$NONE) $day.rain.sum.nolabel($Rain,$NONE) $day.wind.avg.nolabel($Wind,$NONE) $day.wind.max.nolabel($Wind,$NONE) $day.wind.maxtime.format($Time) $day.wind.vecdir.nolabel($Dir,$NONE)
#else
$day.dateTime.format($D)
#end if
#end for
---------------------------------------------------------------------------------------
$month.outTemp.avg.nolabel($Temp,$NONE) $month.outTemp.max.nolabel($Temp,$NONE) $month.outTemp.maxtime.format($D) $month.outTemp.min.nolabel($Temp,$NONE) $month.outTemp.mintime.format($D) $month.heatdeg.sum.nolabel($Temp,$NONE) $month.cooldeg.sum.nolabel($Temp,$NONE) $month.rain.sum.nolabel($Rain,$NONE) $month.wind.avg.nolabel($Wind,$NONE) $month.wind.max.nolabel($Wind,$NONE) $month.wind.maxtime.format($D) $month.wind.vecdir.nolabel($Dir)
#errorCatcher Echo
#set $YM="%Y %m"
#set $D=" %d"
#set $M=" %b"
#set $NODAY=" N/A"
#set $Temp="%6.1f"
#set $Wind="%6.1f"
#set $Dir="%6.0f"
#set $Count="%6d"
#set $NONE=" N/A"
#if $unit.unit_type_dict.group_temperature == "degree_F"
#set $Hot =(90.0,"degree_F")
#set $Cold =(32.0,"degree_F")
#set $VeryCold=(0.0, "degree_F")
#else
#set $Hot =(30.0,"degree_C")
#set $Cold =(0.0,"degree_C")
#set $VeryCold=(-20.0,"degree_C")
#end if
#if $unit.unit_type_dict.group_rain == "inch"
#set $Trace =(0.01,"inch")
#set $SomeRain =(0.1, "inch")
#set $Soak =(1.0, "inch")
#set $Rain="%6.2f"
#elif $unit.unit_type_dict.group_rain == "mm"
#set $Trace =(.3, "mm")
#set $SomeRain =(3, "mm")
#set $Soak =(30.0,"mm")
#set $Rain="%6.1f"
#else
#set $Trace =(.03,"cm")
#set $SomeRain =(.3, "cm")
#set $Soak =(3.0,"cm")
#set $Rain="%6.2f"
#end if
#def ShowInt($T)
$("%6d" % $T[0])#slurp
#end def
#def ShowFloat($R)
$("%6.2f" % $R[0])#slurp
#end def
CLIMATOLOGICAL SUMMARY for year $year_name
NAME: $station.location
ELEV: $station.altitude LAT: $station.latitude[0]-$station.latitude[1] $station.latitude[2] LONG: $station.longitude[0]-$station.longitude[1] $station.longitude[2]
TEMPERATURE ($unit.label.outTemp.strip())
HEAT COOL MAX MAX MIN MIN
MEAN MEAN DEG DEG >= <= <= <=
YR MO MAX MIN MEAN DAYS DAYS HI DAY LOW DAY $ShowInt($Hot) $ShowInt($Cold) $ShowInt($Cold) $ShowInt($VeryCold)
------------------------------------------------------------------------------------------------
#for $month in $year.months
#if $month.barometer.count.raw
$month.dateTime.format($YM) $month.outTemp.meanmax.nolabel($Temp,$NONE) $month.outTemp.meanmin.nolabel($Temp,$NONE) $month.outTemp.avg.nolabel($Temp,$NONE) $month.heatdeg.sum.nolabel($Temp,$NONE) $month.cooldeg.sum.nolabel($Temp,$NONE) $month.outTemp.max.nolabel($Temp,$NONE) $month.outTemp.maxtime.format($D,$NODAY) $month.outTemp.min.nolabel($Temp,$NONE) $month.outTemp.mintime.format($D,$NODAY) $month.outTemp.max_ge($Hot).nolabel($Count,$NONE) $month.outTemp.max_le($Cold).nolabel($Count,$NONE) $month.outTemp.min_le($Cold).nolabel($Count,$NONE) $month.outTemp.min_le($VeryCold).nolabel($Count,$NONE)
#else
$month.dateTime.format($YM)
#end if
#end for
------------------------------------------------------------------------------------------------
$year.outTemp.meanmax.nolabel($Temp,$NONE) $year.outTemp.meanmin.nolabel($Temp,$NONE) $year.outTemp.avg.nolabel($Temp,$NONE) $year.heatdeg.sum.nolabel($Temp,$NONE) $year.cooldeg.sum.nolabel($Temp,$NONE) $year.outTemp.max.nolabel($Temp,$NONE) $year.outTemp.maxtime.format($M,$NODAY) $year.outTemp.min.nolabel($Temp,$NONE) $year.outTemp.mintime.format($M,$NODAY) $year.outTemp.max_ge($Hot).nolabel($Count,$NONE) $year.outTemp.max_le($Cold).nolabel($Count,$NONE) $year.outTemp.min_le($Cold).nolabel($Count,$NONE) $year.outTemp.min_le($VeryCold).nolabel($Count,$NONE)
PRECIPITATION ($unit.label.rain.strip())
MAX ---DAYS OF RAIN---
OBS. OVER
YR MO TOTAL DAY DATE $ShowFloat(Trace) $ShowFloat($SomeRain) $ShowFloat($Soak)
------------------------------------------------
#for $month in $year.months
#if $month.barometer.count.raw
$month.dateTime.format($YM) $month.rain.sum.nolabel($Rain,$NONE) $month.rain.maxsum.nolabel($Rain,$NONE) $month.rain.maxsumtime.format($D,$NODAY) $month.rain.sum_ge($Trace).nolabel($Count,$NONE) $month.rain.sum_ge($SomeRain).nolabel($Count,$NONE) $month.rain.sum_ge($Soak).nolabel($Count,$NONE)
#else
$month.dateTime.format($YM)
#end if
#end for
------------------------------------------------
$year.rain.sum.nolabel($Rain,$NONE) $year.rain.maxsum.nolabel($Rain,$NONE) $year.rain.maxsumtime.format($M,$NODAY) $year.rain.sum_ge($Trace).nolabel($Count,$NONE) $year.rain.sum_ge($SomeRain).nolabel($Count,$NONE) $year.rain.sum_ge($Soak).nolabel($Count,$NONE)
WIND SPEED ($unit.label.windSpeed.strip())
DOM
YR MO AVG HI DATE DIR
-----------------------------------
#for $month in $year.months
#if $month.barometer.count.raw
$month.dateTime.format($YM) $month.wind.avg.nolabel($Wind,$NONE) $month.wind.max.nolabel($Wind,$NONE) $month.wind.maxtime.format($D,$NODAY) $month.wind.vecdir.nolabel($Dir,$NONE)
#else
$month.dateTime.format($YM)
#end if
#end for
-----------------------------------
$year.wind.avg.nolabel($Wind,$NONE) $year.wind.max.nolabel($Wind,$NONE) $year.wind.maxtime.format($M,$NODAY) $year.wind.vecdir.nolabel($Dir,$NONE)
<?xml version="1.0"?>
<rss version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" >
<channel>
<title>$station.location, Weather Conditions</title>
<link>$station.station_url</link>
<description>Current conditions, and daily, monthly, and yearly summaries</description>
<language>en-us</language>
<pubDate>$current.dateTime.format("%a, %d %b %Y %H:%M:%S %Z")</pubDate>
<lastBuildDate>$current.dateTime.format("%a, %d %b %Y %H:%M:%S %Z")</lastBuildDate>
<docs>http://blogs.law.harvard.edu/tech/rss</docs>
<generator>weewx $station.version</generator>
<ttl>$current.interval.string('')</ttl>
<item>
<title>Weather Conditions at $current.dateTime</title>
<link>$station.station_url</link>
<description>
Outside temperature: $current.outTemp;
Barometer: $current.barometer;
Wind: $current.windSpeed from $current.windDir;
Rain rate: $current.rainRate;
Inside temperature: $current.inTemp
</description>
<pubDate>$current.dateTime.format("%a, %d %b %Y %H:%M:%S %Z")</pubDate>
<geo:lat>$station.latitude_f</geo:lat>
<geo:long>$station.longitude_f</geo:long>
<content:encoded><![CDATA[
<p>
Time: $current.dateTime<br/>
Outside Temperature: $current.outTemp<br/>
Inside Temperature: $current.inTemp<br/>
Wind Chill: $current.windchill<br/>
Heat Index: $current.heatindex<br/>
Dewpoint: $current.dewpoint<br/>
Humidity: $current.outHumidity<br/>
Barometer: $current.barometer<br/>
Wind: $current.windSpeed from $current.windDir<br/>
Rain Rate: $current.rainRate<br/>
</p>
]]></content:encoded>
</item>
<item>
<title>Daily Weather Summary as of $current.dateTime</title>
<link>$station.station_url</link>
<description>
Min outside temperature: $day.outTemp.min at $day.outTemp.mintime;
Max outside temperature: $day.outTemp.max at $day.outTemp.maxtime;
Min inside temperature: $day.inTemp.min at $day.inTemp.mintime;
Max inside temperature: $day.inTemp.max at $day.inTemp.maxtime;
Min barometer: $day.barometer.min at $day.barometer.mintime;
Max barometer: $day.barometer.max at $day.barometer.maxtime;
Max wind : $day.wind.max from $day.wind.gustdir at $day.wind.maxtime;
Rain today: $day.rain.sum
</description>
<pubDate>$current.dateTime.format("%a, %d %b %Y %H:%M:%S %Z")</pubDate>
<geo:lat>$station.latitude_f</geo:lat>
<geo:long>$station.longitude_f</geo:long>
<content:encoded><![CDATA[
<p>
Day: $day.dateTime.format("%d %b %Y")<br/>
Min Outside Temperature: $day.outTemp.min at $day.outTemp.mintime<br/>
Max Outside Temperature: $day.outTemp.max at $day.outTemp.maxtime<br/>
Min Inside Temperature: $day.inTemp.min at $day.inTemp.mintime<br/>
Max Inside Temperature: $day.inTemp.max at $day.inTemp.maxtime<br/>
Min Barometer: $day.barometer.min at $day.barometer.mintime<br/>
Max Barometer: $day.barometer.max at $day.barometer.maxtime<br/>
Max Wind : $day.wind.max from $day.wind.gustdir at $day.wind.maxtime<br/>
Rain today: $day.rain.sum<br/>
</p>
]]></content:encoded>
</item>
<item>
<title>Monthly Weather Summary as of $current.dateTime</title>
<link>$station.station_url/month.html</link>
<description>
Min outside temperature: $month.outTemp.min at $month.outTemp.mintime;
Max outside temperature: $month.outTemp.max at $month.outTemp.maxtime;
Min inside temperature: $month.inTemp.min at $month.inTemp.mintime;
Max inside temperature: $month.inTemp.max at $month.inTemp.maxtime;
Min barometer: $month.barometer.min at $month.barometer.mintime;
Max barometer: $month.barometer.max at $month.barometer.maxtime;
Max wind : $month.wind.max from $month.wind.gustdir at $month.wind.maxtime;
Rain total for month: $month.rain.sum
</description>
<pubDate>$current.dateTime.format("%a, %d %b %Y %H:%M:%S %Z")</pubDate>
<content:encoded><![CDATA[
<p>
Month: $month.dateTime.format("%B %Y")<br/>
Max Outside Temperature: $month.outTemp.max at $month.outTemp.maxtime<br/>
Min Outside Temperature: $month.outTemp.min at $month.outTemp.mintime<br/>
Max Inside Temperature: $month.inTemp.max at $month.inTemp.maxtime<br/>
Min Inside Temperature: $month.inTemp.min at $month.inTemp.mintime<br/>
Min Barometer: $month.barometer.min at $month.barometer.mintime<br/>
Max Barometer: $month.barometer.max at $month.barometer.maxtime<br/>
Max Wind : $month.wind.max from $month.wind.gustdir at $month.wind.maxtime<br/>
Rain total for month: $month.rain.sum<br/>
</p>
]]></content:encoded>
</item>
<item>
<title>Yearly Weather Summary as of $current.dateTime</title>
<link>$station.station_url/year.html</link>
<description>
Min outside temperature: $year.outTemp.min at $year.outTemp.mintime;
Max outside temperature: $year.outTemp.max at $year.outTemp.maxtime;
Min inside temperature: $year.inTemp.min at $year.inTemp.mintime;
Max inside temperature: $year.inTemp.max at $year.inTemp.maxtime;
Min barometer: $year.barometer.min at $year.barometer.mintime;
Max barometer: $year.barometer.max at $year.barometer.maxtime;
Max wind : $year.wind.max from $year.wind.gustdir at $year.wind.maxtime;
Rain total for year: $year.rain.sum
</description>
<pubDate>$current.dateTime.format("%a, %d %b %Y %H:%M:%S %Z")</pubDate>
<content:encoded><![CDATA[
<p>
Year: $year.dateTime.format("%Y")<br/>
Max Outside Temperature: $year.outTemp.max at $year.outTemp.maxtime<br/>
Min Outside Temperature: $year.outTemp.min at $year.outTemp.mintime<br/>
Max Inside Temperature: $year.inTemp.max at $year.inTemp.maxtime<br/>
Min Inside Temperature: $year.inTemp.min at $year.inTemp.mintime<br/>
Min Barometer: $year.barometer.min at $year.barometer.mintime<br/>
Max Barometer: $year.barometer.max at $year.barometer.maxtime<br/>