Message from discussion
Some issues and problems
Discussion <weewx-user@googlegroups.com>
Received: by 10.101.166.30 with SMTP id t30mr65527ano.16.1336570924245;
Wed, 09 May 2012 06:42:04 -0700 (PDT)
X-BeenThere: weewx-user@googlegroups.com
Received: by 10.236.114.50 with SMTP id b38ls9294459yhh.1.gmail; Wed, 09 May
2012 06:42:03 -0700 (PDT)
Received: by 10.101.152.27 with SMTP id e27mr55727ano.24.1336570923484;
Wed, 09 May 2012 06:42:03 -0700 (PDT)
Received: by 10.101.152.27 with SMTP id e27mr55725ano.24.1336570923447;
Wed, 09 May 2012 06:42:03 -0700 (PDT)
Return-Path: <manxo...@gmail.com>
Received: from mail-yw0-f50.google.com (mail-yw0-f50.google.com [209.85.213.50])
by gmr-mx.google.com with ESMTPS id f27si871280anj.1.2012.05.09.06.42.03
(version=TLSv1/SSLv3 cipher=OTHER);
Wed, 09 May 2012 06:42:03 -0700 (PDT)
Received-SPF: pass (google.com: domain of manxo...@gmail.com designates 209.85.213.50 as permitted sender) client-ip=209.85.213.50;
Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of manxo...@gmail.com designates 209.85.213.50 as permitted sender) smtp.mail=manxo...@gmail.com; dkim=pass header...@gmail.com
Received: by mail-yw0-f50.google.com with SMTP id j63so349376yhj.23
for <weewx-user@googlegroups.com>; Wed, 09 May 2012 06:42:03 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=20120113;
h=mime-version:in-reply-to:references:date:message-id:subject:from:to
:content-type;
bh=pCsP9Apm5Bk0zuPVSiPABg1cV+gixHBdGoOUw3ar4yw=;
b=lJZlBZWnJYffFS6nHZTlJfUIjH0uc15sd0bvAH0s6nIQ70NvhSrgtRErzJzI94Mx3q
xuuxsduynFrYmmw0GO/O/abU31ReVgaWcoitOrswSzU6PyF9oK652pyR6nx5uPrRnSiK
vgnrVkpP8dWHVYiv1k9J0tbbTg0WMsVnvPTSWKL6cNDkG7Ulp+jkqfw5rRlksyETQVBy
roiNfDL8uFgq8tHvyThq8Qy5qluCQewJJ3UlctHkqDKtlfK7tGryztV433zLXSZY1uX/
klqanIWOU6WhS4suw8C3wIdfLtFsV/lce9II3CwSEVXVY/1HFdHiF8E0k44TMndaIhOF
39cQ==
MIME-Version: 1.0
Received: by 10.42.159.9 with SMTP id j9mr114516icx.5.1336570922641; Wed, 09
May 2012 06:42:02 -0700 (PDT)
Received: by 10.64.129.136 with HTTP; Wed, 9 May 2012 06:42:02 -0700 (PDT)
In-Reply-To: <CAPq0zEAoH-U0e6E+Vu-a7wkUTK1hrqy2Q9X+fb9TCtakkd0...@mail.gmail.com>
References: <CABKFOzcneScSAAVpV0iznRiGco-r-ZuVoXz7b3Mvki+GccP...@mail.gmail.com>
<CAPq0zEBxvR+XPiio33vfEezm7KGYW=7zDGAQYjn3My+TSfN...@mail.gmail.com>
<CABKFOzeG-LedazPmHUqZd9XE7mnRwP9bbVgrHeXah2tztsH...@mail.gmail.com>
<CAPq0zEC954OLOvYWsRYF1jxtMz2Nn9oovaRPn+OCLa4hjwh...@mail.gmail.com>
<CABKFOzcXYkptonA8H_SyJ3zJ587q1Kg+CeXYKmA68Z+kcOo...@mail.gmail.com>
<CAPq0zEAoH-U0e6E+Vu-a7wkUTK1hrqy2Q9X+fb9TCtakkd0...@mail.gmail.com>
Date: Wed, 9 May 2012 15:42:02 +0200
Message-ID: <CABKFOzfGWj5otrZrNWgwWF=PJ1A3UxR=3T3TD4J3kTj1Lj1...@mail.gmail.com>
Subject: Re: [weewx-user] Some issues and problems
From: eumesmamente <manxo...@gmail.com>
To: weewx-user@googlegroups.com
Content-Type: multipart/alternative; boundary=90e6ba6e842c0fa99504bf9aab01
--90e6ba6e842c0fa99504bf9aab01
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
I have creted a template as described before for testing with name
meteoclimatic.html.tmpl on skins/Standard and added it on skins.conf:
[[[Meoclimatic]]]
template =3D meteoclimatic.html.tmpl
but I can see meteoclimatic.html on public_html after generation.
Any help?
2012/5/8 Thomas Keffer <tkef...@gmail.com>
> This looks like a very straightforward file. I doubt that you will need t=
o
> create a custom generator. Just create a template with the format as
> outlined, and put in dot codes for the required values.
>
> Here's a sample of what it would like look (NOT TESTED):
>
> *Current Data*
> * TMP =3D $current.outTemp.degree_C
> * WND =3D $current.windSpeed.km_per_hour
> * AZI =3D $current.windDir
> ...
>
> *Daily data*
> * DHTM =3D $day.outTemp.max.degree_C
> * DLTM =3D $day.outTemp.min.degree_C
> * DHBR =3D $day.barometer.min
> ...
>
> and so on.
>
> -tk
>
>
>
>
> On Mon, May 7, 2012 at 7:21 AM, eumesmamente <manxo...@gmail.com> wrote:
>
>> Hi again.
>>
>> 1 - I have solved the problem using html entities...
>>
>> 3 - About the meteoclimatic template. I understand that I need to create
>> a similar file to the example mygenerator.py using the correct values...=
as
>> explained on http://www.weewx.com/docs/customizing.htm
>>
>> But I need some help with this values. Where I can find all the possible
>> equivalent values for creating a custom generator for meteoclimatic
>> template? More info about meteoclimatic template in spanish:
>> http://www.meteoclimatic.com/index/wp/plantilla_es.html
>>
>> And a quick automatic translation from google...
>> many thanks again
>>
>> Data File Format
>> The data file comprises a series of fields. Each field consists of an
>> identifying label and the corresponding value. The label shall state in
>> uppercase characters, is preceded by an asterisk and ends with an equals
>> sign. This tag identifies the value that follows it.
>> Broadly speaking, this file is divided into:
>>
>> Head
>> Current Data
>> Daily data (highs, lows and precipitation)
>> Monthly data (highs, lows and precipitation)
>> Annual data (highs, lows and precipitation)
>> End of file
>>
>> Important: The purpose of this file is to be understood by a program and
>> not shown to a user. It is therefore very important not to format the
>> information to make it visually attractive. It needs to be a text file n=
et,
>> without marks or labels hypertext between its brands and end of file hea=
der.
>>
>> *Head*
>> Aims to mark the start of the data block and station identification. It
>> contains the following fields:
>> * VER =3D DATA2
>> Mark the beginning of the file. Version data file. Constant value.
>> * COD =3D [c=C3=B3digo_estaci=C3=B3n]
>> ID code of the station
>> * UPD =3D [update]
>> Date and time of the data. The date should indicate in a standardized
>> format day / month / year. It means the Anglo-Saxon type format month / =
day
>> / year. Following the date must state the time, preferably in 24 hours.
>> Exception: If the user specifically requires the date format Anglo-Saxon=
,
>> this date will be preceded by the characters us_ Example: * UPD =3D
>> US_03/14/2007 14:25
>>
>> *Current Data*
>> Contains the data upon sending the file and make the following fields:
>> * TMP =3D [temperature]
>> Temperature in degrees Celsius
>> * WND =3D [velocidad_viento]
>> Wind speed in km / h
>> * AZI =3D [address]
>> Wind direction. Can be stated in degrees, where 0 =C2=B0 or 360 =C2=B0 a=
re the
>> north and 90 =C2=BA, 180 =C2=BA and 270 =C2=BA are the east, south and w=
est, respectively.
>> You can also specify the geographical or literal format (N, NNE, NE, ENE=
,
>> E, ESE, SE, SSE, S, SSW, SSW, SW, SW, WSW, SW, W, W, WNW, NW, NW , NW, N=
NW,
>> NW)
>> * BAR =3D [pressure]
>> Pressure in hPa or mb.
>> * HUM =3D [moisture]
>> relative humidity
>>
>> * SUN =3D [radiaci=C3=B3n_solar]
>> Solar radiation W/m2. Blank if not provided.
>>
>> *Daily data*
>> Contains the daily maximum and minimum and total precipitation of the
>> day, according to the following fields:
>> * DHTM =3D [temperature]
>> Maximum daytime temperature in degrees Celsius
>> * DLTM =3D [temperature]
>> Minimum day temperature in Celsius
>> * DHHM =3D [humidity]
>> Maximum relative humidity of the day
>> * DLHM =3D [humidity]
>> Minimum relative humidity of day
>> * DHBR =3D [pressure]
>> Maximum pressure of the day
>> * DLBR =3D [pressure]
>> Minimum pressure of the day
>> DGST * =3D [velocidad_viento]
>> Maximum wind gust of the day
>> * DPCP =3D [precipitation]
>> Total precipitation days in mm
>>
>> *Monthly data*
>> Contains the maximum and minimum monthly and total rainfall of the month=
,
>> according to the following fields:
>> * MHTM =3D [temperature]
>> Maximum temperature in degrees Celsius of the month
>> * MLTM =3D [temperature]
>> Minimum temperature in degrees Celsius of the month
>> * MHHM =3D [humidity]
>> Maximum relative humidity of the month
>> * MLHM =3D [humidity]
>> Minimum relative humidity of the month
>> * MHBR =3D [pressure]
>> Maximum pressure of the month
>> * MLBR =3D [pressure]
>> Minimum pressure of the month
>> MGST * =3D [velocidad_viento]
>> Maximum wind gust of the month
>> * MPCP =3D [precipitation]
>> Total precipitation in mm month
>>
>> *Annual Data*
>> Contains the maximum and minimum annual total rainfall of the year,
>> according to the following fields:
>> * YHTM =3D [temperature]
>> Maximum temperature in degrees Celsius year
>> * YLTM =3D [temperature]
>> Minimum temperature in degrees Celsius year
>> * YHHM =3D [humidity]
>> Maximum relative humidity of the year
>> * YLHM =3D [humidity]
>> Minimum relative humidity of the year
>> * YHBR =3D [pressure]
>> Maximum pressure of the year
>> * YLBR =3D [pressure]
>> Minimum pressure of the year
>> * YGST =3D [velocidad_viento]
>> Maximum wind gust of the year
>> * YPCP =3D [precipitation]
>> Total precipitation in mm year
>>
>> *End of file*
>> The data file ends with a mark end of text * EOT *
>> Because many free services web hosting based funding in the insertion of
>> advertising, often modify the pages that send users to make this appear.=
To
>> be able to discriminate between advertising and data, marks the beginnin=
g
>> and end of data file with these tags.
>>
>> EXAMPLE FILE
>>
>> *VER=3DDATA2
>> *COD=3DESCAT0800000008226A
>> *UPD=3D06/01/2007 20:01
>> *SKY=3D
>> *TMP=3D8.1
>> *WND=3D0
>> *AZI=3DN
>> *BAR=3D1027.2
>> *HUM=3D74
>> *SUN=3D
>> *DHTM=3D13.2
>> *DLTM=3D5.3
>> *DHHM=3D80
>> *DLHM=3D56
>> *DHBR=3D1028.9
>> *DLBR=3D1025.7
>> *DGST=3D16
>> *DPCP=3D0
>> *MHTM=3D14.5
>> *MLTM=3D5.3
>> *MHHM=3D80
>> *MLHM=3D32
>> *MHBR=3D1035.0
>> *MLBR=3D1023.5
>> *MGST=3D23
>> *MPCP=3D0
>> *YHTM=3D14.5
>> *YLTM=3D5.3
>> *YHHM=3D80
>> *YLHM=3D32
>> *YHBR=3D1035.0
>> *YLBR=3D1023.5
>> *YGST=3D23
>> *YPCP=3D0
>> *EOT*
>>
>> 2012/5/5 Thomas Keffer <tkef...@gmail.com>
>>
>>> Hello.
>>>
>>> 1. Thanks for the reminder that #encoding UTF-8 has to be at the top of
>>> Cheetah template files! The templates test for UTF8 characters and then
>>> sets the meta charset accordingly, but there doesn't seem to be possibl=
e to
>>> automatically include the #encoding directive. I'll have to investigate=
.
>>>
>>> Unfortunately, the image files must be in Latin-1, because the Python
>>> Imaging Library does not support UTF8 characters. This is explained in =
the
>>> Customizing weewx manual (cf. section 3.2.3)
>>>
>>> 2. The templates are very flexible in how the time can be formatted.
>>> This is explained in the manual Customizing weewx manual under the
>>> section Type dateTime<http://www.weewx.com/docs/customizing.htm#Type_da=
teTime>
>>> .
>>>
>>> 3. The meteoclimatic link is very cryptic about just what data is neede=
d
>>> and what format it should be in. I think you'll find that the template =
"dot
>>> code" used by weewx is very flexible --- most likely you will not have =
to
>>> write any Python code. Just request the proper formatting. But, it's ha=
rd
>>> to say without more information about what meteoclimatic expects.
>>>
>>> -tk
>>>
>>> On Fri, May 4, 2012 at 1:31 PM, eumesmamente <manxo...@gmail.com> wrote=
:
>>>
>>>> Many thanks...
>>>>
>>>> 1. Next week I will send you the syslog with debug=3D1, but looking fo=
r
>>>> this problem on weewx group I found this possible solution from
>>>> Michal Leinweber:
>>>>
>>>> I spent last 2 days searching for solution of this error when using
>>>> UTF-8 characters in templates:
>>>>
>>>> UnicodeDecodeError: 'ascii' codec can't decode byte ....... : ordinal
>>>> not in range(128)
>>>>
>>>> Finally I found answer in Cheetah documentation (http://
>>>>
>>>> www.cheetahtemplate.org/docs/users_guide_html_multipage/moduleFormatti=
ng.encoding.html).
>>>>
>>>> After adding line:
>>>>
>>>> #encoding UTF-8
>>>>
>>>> as the first line of template file, everything works ok.
>>>>
>>>> Maybe it helps somebody.
>>>>
>>>> PS: I'm still unsuccessfull with UTF-8 image titles (it is internally
>>>> converted by weewx directly to Latin-1 :().
>>>>
>>>> 2. I was thinking about extractind the necessary columns for the
>>>> generation of a meteoclimatic template for sending ftp data to
>>>> meteoclimatic.com with cron and a bash script. The last answer about
>>>> question 3 is very interesting... Let's go with it...
>>>>
>>>> 3. I think that I can send the meteoclimatic template using ftp or I
>>>> can put this template with data on any public web site accesible from
>>>> meteoclimatic.com. I have seen this code and it seems to be
>>>> interesting:
>>>>
>>>> http://code.google.com/p/wfrog/source/browse/trunk/wfrender/renderer/m=
eteoclimatic.py?r=3D838
>>>> I also thik the "Cheetah template" is the solution... but I need more
>>>> information from meteoclimatic and about "Cheetah template"...
>>>>
>>>> Many thanks in advance
>>>>
>>>>
>>>> 2012/5/4 Thomas Keffer <tkef...@gmail.com>
>>>>
>>>>> Hello, and welcome to the weewx users group!
>>>>>
>>>>> 1. This will be familiar to long-time users, but please set debug=3D1=
,
>>>>> run again, then send the relevant log snippet! Also, when you say you=
are
>>>>> using the utf8 option, do you mean that you replaced the line
>>>>> encoding =3D html_entities
>>>>> with a line
>>>>> encoding =3D utf8
>>>>>
>>>>> 2. The dateTime column is what is called "unix epoch time<http://en.w=
ikipedia.org/wiki/Unix_time>".
>>>>> The template conversion code in weewx should do the conversion to loc=
al
>>>>> time for you. If you want to do something special, say time in a diff=
erent
>>>>> time zone, that gets more involved. Can you give us more detail what =
you
>>>>> are trying to do?
>>>>>
>>>>> 3. The link to the format used by meteoclimatic is lacking some
>>>>> detail. Does one fill out a file with the desired information then se=
nd it
>>>>> to them? Or, is this an HTTP GET? If the former, then there it should=
be
>>>>> quite easy --- just create a Cheetah template, just like the other
>>>>> templates, with the framework they give and plug in the relevant numb=
ers
>>>>> using "dot" codes. So, it would look something like:
>>>>>
>>>>> *VER=3DDATA2
>>>>> *COD=3D
>>>>> *SIG=3D
>>>>> *UPD=3D$current.dateTime # You may have to do a time conversion h=
ere!
>>>>> *TMP=3D$current.outTemp
>>>>> *WND=3D$current.windSpeed
>>>>>
>>>>> ...
>>>>>
>>>>>
>>>>> -tk
>>>>>
>>>>> On Fri, May 4, 2012 at 6:51 AM, eumesmamente <manxo...@gmail.com>wrot=
e:
>>>>>
>>>>>> Hi all.
>>>>>> I am new to the group and wanted to introduce myself and ask some
>>>>>> questions. I'm from Galicia in Spain and am trying to install weewx =
using
>>>>>> a Vantage Vue in a school. I am a user with good knowledge of Linux,
>>>>>> but not programming. My issues and problems are:
>>>>>>
>>>>>> 1 - I'm trying to translate to Galician some templates. When I use t=
he
>>>>>> translated index.html.tmpl the reports and web pages are not
>>>>>> generated correctly and an error in syslog appears about some '
>>>>>> ascii' can not encode or decode 0xXX character (I forget). I'm using
>>>>>> utf8 option on skins.conf file.
>>>>>>
>>>>>> 2 - I can not interpret the contents of the dateTime column in the
>>>>>> Sqlite database. How can I convert the contents of this column on a
>>>>>> date and time?.
>>>>>>
>>>>>> 3 - I wish I could send data to meteoclimatic.com station, a Spanish=
weather
>>>>>> web. They use a data template like this:
>>>>>>
>>>>>> http://personal.telefonica.terra.es/web/majycman/freewxsummary10.htm=
l
>>>>>> http://jordicorbella.com/meteocam/meteo/meteoclimatic.htx
>>>>>>
>>>>>> I may do this in some way from weewx?
>>>>>> Many thanks
>>>>>>
>>>>>> --
>>>>>> You received this message because you are subscribed to the Google
>>>>>> Groups "Weewx Weather Station Discussion" group.
>>>>>> To post to this group, send email to weewx-user@googlegroups.com.
>>>>>> To unsubscribe from this group, send email to
>>>>>> weewx-user+unsubscribe@googlegroups.com.
>>>>>> For more options, visit this group at
>>>>>> http://groups.google.com/group/weewx-user?hl=3Den.
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> Thomas Keffer
>>>>>
>>>>> kef...@threefools.org
>>>>> +1 541-386-8891 (h)
>>>>> +1 541-490-9507 (c)
>>>>> Skype: tkeffer
>>>>>
>>>>> --
>>>>> You received this message because you are subscribed to the Google
>>>>> Groups "Weewx Weather Station Discussion" group.
>>>>> To post to this group, send email to weewx-user@googlegroups.com.
>>>>> To unsubscribe from this group, send email to
>>>>> weewx-user+unsubscribe@googlegroups.com.
>>>>> For more options, visit this group at
>>>>> http://groups.google.com/group/weewx-user?hl=3Den.
>>>>>
>>>>
>>>> --
>>>> You received this message because you are subscribed to the Google
>>>> Groups "Weewx Weather Station Discussion" group.
>>>> To post to this group, send email to weewx-user@googlegroups.com.
>>>> To unsubscribe from this group, send email to
>>>> weewx-user+unsubscribe@googlegroups.com.
>>>> For more options, visit this group at
>>>> http://groups.google.com/group/weewx-user?hl=3Den.
>>>>
>>>
>>>
>>>
>>> --
>>> Thomas Keffer
>>>
>>> kef...@threefools.org
>>> +1 541-386-8891 (h)
>>> +1 541-490-9507 (c)
>>> Skype: tkeffer
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Weewx Weather Station Discussion" group.
>>> To post to this group, send email to weewx-user@googlegroups.com.
>>> To unsubscribe from this group, send email to
>>> weewx-user+unsubscribe@googlegroups.com.
>>> For more options, visit this group at
>>> http://groups.google.com/group/weewx-user?hl=3Den.
>>>
>>
>> --
>> You received this message because you are subscribed to the Google Group=
s
>> "Weewx Weather Station Discussion" group.
>> To post to this group, send email to weewx-user@googlegroups.com.
>> To unsubscribe from this group, send email to
>> weewx-user+unsubscribe@googlegroups.com.
>> For more options, visit this group at
>> http://groups.google.com/group/weewx-user?hl=3Den.
>>
>
>
>
> --
> Thomas Keffer
>
> kef...@threefools.org
> +1 541-386-8891 (h)
> +1 541-490-9507 (c)
> Skype: tkeffer
>
> --
> You received this message because you are subscribed to the Google Groups
> "Weewx Weather Station Discussion" group.
> To post to this group, send email to weewx-user@googlegroups.com.
> To unsubscribe from this group, send email to
> weewx-user+unsubscribe@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/weewx-user?hl=3Den.
>
--90e6ba6e842c0fa99504bf9aab01
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
I have creted a template as described before for testing with name meteocli=
matic.html.tmpl on skins/Standard and added it on skins.conf:<br><br>[[[Meo=
climatic]]]<br>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=
=C2=A0 template =3D meteoclimatic.html.tmpl<br><br>but I can see meteoclima=
tic.html on public_html after generation.<br>
<br>Any help?<br><br><br><br><br><div class=3D"gmail_quote">2012/5/8 Thomas=
Keffer <span dir=3D"ltr"><<a href=3D"mailto:tkef...@gmail.com" target=
=3D"_blank">tkef...@gmail.com</a>></span><br><blockquote class=3D"gmail_=
quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1=
ex">
This looks like a very straightforward file. I doubt that you will need to =
create a custom generator. Just create a template with the format as outlin=
ed, and put in dot codes for the required values.<div><br></div><div>Here&#=
39;s a sample of what it would like look (NOT TESTED):</div>
<div><br></div><div><font face=3D"'courier new', monospace"><b>Curr=
ent Data</b><br>* TMP =3D $current.outTemp.degree_C<br>* WND =3D $current.w=
indSpeed.km_per_hour</font></div><div><font face=3D"'courier new', =
monospace">* AZI =3D $current.windDir</font></div>
<div><font face=3D"'courier new', monospace">...</font></div><div><=
font face=3D"'courier new', monospace"><br></font></div><div><font =
face=3D"'courier new', monospace"><b>Daily data</b><br>* DHTM =3D $=
day.outTemp.max.degree_C<br>
* DLTM =3D $day.outTemp.min.degree_C<br>* DHBR =3D $day.barometer.min<br></=
font></div><div><font face=3D"'courier new', monospace">...</font><=
/div><div><br></div><div>and so on.</div><span class=3D"HOEnZb"><font color=
=3D"#888888"><div>
<br></div><div>-tk</div></font></span><div class=3D"HOEnZb"><div class=3D"h=
5"><div><br>
</div><div><br></div><div><br><br><div class=3D"gmail_quote">On Mon, May 7,=
2012 at 7:21 AM, eumesmamente <span dir=3D"ltr"><<a href=3D"mailto:manx=
o...@gmail.com" target=3D"_blank">manxo...@gmail.com</a>></span> wrote:<=
br>
<blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p=
x #ccc solid;padding-left:1ex">
Hi again.<br><br>1 - I have solved the problem using html entities...<br><b=
r>3 - About the meteoclimatic template. I understand that I need to create =
a similar file to the example mygenerator.py using the correct values... as=
explained on=C2=A0 <a href=3D"http://www.weewx.com/docs/customizing.htm" t=
arget=3D"_blank">http://www.weewx.com/docs/customizing.htm</a><br>
<br>But I need some help with this values. Where I can find all the possibl=
e equivalent values for creating a custom generator for meteoclimatic templ=
ate?=C2=A0 More info about meteoclimatic template in spanish: <a href=3D"ht=
tp://www.meteoclimatic.com/index/wp/plantilla_es.html" target=3D"_blank">ht=
tp://www.meteoclimatic.com/index/wp/plantilla_es.html</a><br>
<br>And a quick automatic translation from google...<br>many thanks again<b=
r><br>Data File Format<br>The data file comprises a series of fields. Each =
field consists of an identifying label and the corresponding value. The lab=
el shall state in uppercase characters, is preceded by an asterisk and ends=
with an equals sign. This tag identifies the value that follows it.<br>
Broadly speaking, this file is divided into:<br><br>=C2=A0=C2=A0=C2=A0 Head=
<br>=C2=A0=C2=A0=C2=A0 Current Data<br>=C2=A0=C2=A0=C2=A0 Daily data (highs=
, lows and precipitation)<br>=C2=A0=C2=A0=C2=A0 Monthly data (highs, lows a=
nd precipitation)<br>=C2=A0=C2=A0=C2=A0 Annual data (highs, lows and precip=
itation)<br>
=C2=A0=C2=A0=C2=A0 End of file<br><br>Important: The purpose of this file i=
s to be understood by a program and not shown to a user. It is therefore ve=
ry important not to format the information to make it visually attractive. =
It needs to be a text file net, without marks or labels hypertext between i=
ts brands and end of file header.<br>
<br><b>Head</b><br>Aims to mark the start of the data block and station ide=
ntification. It contains the following fields:<br>* VER =3D DATA2<br>Mark t=
he beginning of the file. Version data file. Constant value.<br>* COD =3D [=
c=C3=B3digo_estaci=C3=B3n]<br>
ID code of the station<br>* UPD =3D [update]<br>Date and time of the data. =
The date should indicate in a standardized format day / month / year. It me=
ans the Anglo-Saxon type format month / day / year. Following the date must=
state the time, preferably in 24 hours. Exception: If the user specificall=
y requires the date format Anglo-Saxon, this date will be preceded by the c=
haracters us_ Example: * UPD =3D US_03/14/2007 14:25<br>
<br><b>Current Data</b><br>Contains the data upon sending the file and make=
the following fields:<br>* TMP =3D [temperature]<br>Temperature in degrees=
Celsius<br>* WND =3D [velocidad_viento]<br>Wind speed in km / h<br>* AZI =
=3D [address]<br>
Wind direction. Can be stated in degrees, where 0 =C2=B0 or 360 =C2=B0 are =
the north and 90 =C2=BA, 180 =C2=BA and 270 =C2=BA are the east, south and =
west, respectively. You can also specify the geographical or literal format=
(N, NNE, NE, ENE, E, ESE, SE, SSE, S, SSW, SSW, SW, SW, WSW, SW, W, W, WNW=
, NW, NW , NW, NNW, NW)<br>
* BAR =3D [pressure]<br>Pressure in hPa or mb.<br>* HUM =3D [moisture] <br>=
relative humidity<br><br>* SUN =3D [radiaci=C3=B3n_solar]<br>Solar radiatio=
n W/m2. Blank if not provided.<br><br><b>Daily data</b><br>Contains the dai=
ly maximum and minimum and total precipitation of the day, according to the=
following fields:<br>
* DHTM =3D [temperature]<br>Maximum daytime temperature in degrees Celsius<=
br>* DLTM =3D [temperature]<br>Minimum day temperature in Celsius<br>* DHHM=
=3D [humidity]<br>Maximum relative humidity of the day<br>* DLHM =3D [humi=
dity]<br>
Minimum relative humidity of day<br>* DHBR =3D [pressure]<br>Maximum pressu=
re of the day<br>* DLBR =3D [pressure]<br>Minimum pressure of the day<br>DG=
ST * =3D [velocidad_viento]<br>Maximum wind gust of the day<br>* DPCP =3D [=
precipitation]<br>
Total precipitation days in mm<br><br><b>Monthly data</b><br>Contains the m=
aximum and minimum monthly and total rainfall of the month, according to th=
e following fields:<br>* MHTM =3D [temperature]<br>Maximum temperature in d=
egrees Celsius of the month<br>
* MLTM =3D [temperature]<br>Minimum temperature in degrees Celsius of the m=
onth<br>* MHHM =3D [humidity]<br>Maximum relative humidity of the month<br>=
* MLHM =3D [humidity]<br>Minimum relative humidity of the month<br>* MHBR =
=3D [pressure]<br>
Maximum pressure of the month<br>* MLBR =3D [pressure]<br>Minimum pressure =
of the month<br>MGST * =3D [velocidad_viento]<br>Maximum wind gust of the m=
onth<br>* MPCP =3D [precipitation]<br>Total precipitation in mm month<br><b=
r>
<b>Annual Data</b><br>Contains the maximum and minimum annual total rainfal=
l of the year, according to the following fields:<br>* YHTM =3D [temperatur=
e]<br>Maximum temperature in degrees Celsius year<br>* YLTM =3D [temperatur=
e]<br>
Minimum temperature in degrees Celsius year<br>* YHHM =3D [humidity]<br>Max=
imum relative humidity of the year<br>* YLHM =3D [humidity]<br>Minimum rela=
tive humidity of the year<br>* YHBR =3D [pressure]<br>Maximum pressure of t=
he year<br>
* YLBR =3D [pressure]<br>Minimum pressure of the year<br>* YGST =3D [veloci=
dad_viento]<br>Maximum wind gust of the year<br>* YPCP =3D [precipitation]<=
br>Total precipitation in mm year<br><br><b>End of file</b><br>The data fil=
e ends with a mark end of text * EOT *<br>
Because many free services web hosting based funding in the insertion of ad=
vertising, often modify the pages that send users to make this appear. To b=
e able to discriminate between advertising and data, marks the beginning an=
d end of data file with these tags.<br>
<br>EXAMPLE FILE<br><br>*VER=3DDATA2<br>*COD=3DESCAT0800000008226A<br>*UPD=
=3D06/01/2007 20:01<br>*SKY=3D<br>*TMP=3D8.1<br>*WND=3D0<br>*AZI=3DN<br>*BA=
R=3D1027.2<br>*HUM=3D74<br>*SUN=3D<br>*DHTM=3D13.2<br>*DLTM=3D5.3<br>*DHHM=
=3D80<br>*DLHM=3D56<br>*DHBR=3D1028.9<br>
*DLBR=3D1025.7<br>*DGST=3D16<br>*DPCP=3D0<br>*MHTM=3D14.5<br>*MLTM=3D5.3<br=
>*MHHM=3D80<br>*MLHM=3D32<br>*MHBR=3D1035.0<br>*MLBR=3D1023.5<br>*MGST=3D23=
<br>*MPCP=3D0<br>*YHTM=3D14.5<br>*YLTM=3D5.3<br>*YHHM=3D80<br>*YLHM=3D32<br=
>*YHBR=3D1035.0<br>*YLBR=3D1023.5<br>
*YGST=3D23<br>*YPCP=3D0<br>*EOT* <br><div><div><br><div class=3D"gmail_quot=
e">2012/5/5 Thomas Keffer <span dir=3D"ltr"><<a href=3D"mailto:tkeffer@g=
mail.com" target=3D"_blank">tkef...@gmail.com</a>></span><br>
<blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p=
x #ccc solid;padding-left:1ex">
Hello.<div><br></div><div>1. Thanks for the reminder that<font face=3D"cour=
ier new, monospace"> #encoding UTF-8</font> has to be at the top of Cheetah=
template files! The templates test for UTF8 characters and then sets the m=
eta charset accordingly, but there doesn't seem to be possible to autom=
atically include the <font face=3D"courier new, monospace">#encoding</font>=
directive. I'll have to investigate.</div>
<div><br></div><div>Unfortunately, the image files must be in Latin-1, beca=
use the Python Imaging Library does not support UTF8 characters. This is ex=
plained in the Customizing weewx manual (cf. section 3.2.3)<br><br>2. The t=
emplates are very flexible in how the time can be formatted. This is explai=
ned in the manual=C2=A0<a href=3D"http://www.weewx.com/docs/customizing.htm=
#Type_dateTime" target=3D"_blank">Customizing weewx manual under the sectio=
n Type dateTime</a>.=C2=A0</div>
<div><br></div><div>3. The meteoclimatic link is very cryptic about just wh=
at data is needed and what format it should be in. I think you'll find =
that the template "dot code" used by weewx is very flexible --- m=
ost likely you will not have to write any Python code. Just request the pro=
per formatting. But, it's hard to say without more information about wh=
at meteoclimatic expects.</div>
<span><font color=3D"#888888">
<div><br></div><div>-tk</div></font></span><div><div><div><br><div class=3D=
"gmail_quote">On Fri, May 4, 2012 at 1:31 PM, eumesmamente <span dir=3D"ltr=
"><<a href=3D"mailto:manxo...@gmail.com" target=3D"_blank">manxopar@gmai=
l.com</a>></span> wrote:<br>
<blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p=
x #ccc solid;padding-left:1ex">Many thanks...<br><br>1. Next week I will se=
nd you the syslog with debug=3D1, but looking for this problem on weewx gro=
up I found this possible solution from <span><div>
<span></span></div></span> <span> <span><span style=3D"color:rgb(121,6,25)"=
>Michal Leinweber</span></span></span>:<br><br><div style=3D"margin-left:40=
px">I spent last 2 days searching for solution of this error when using
<br>UTF-8 characters in templates:
<br>
<br>UnicodeDecodeError: 'ascii' codec can't decode byte .......=
=C2=A0: ordinal
<br>not in range(128)
<br>
<br>Finally I found answer in Cheetah documentation (http://
<br><a href=3D"http://www.cheetahtemplate.org/docs/users_guide_html_multipa=
ge/moduleFormatting.encoding.html" target=3D"_blank">www.cheetahtemplate.or=
g/docs/users_guide_html_multipage/moduleFormatting.encoding.html</a>).
<br>After adding line:
<br>
<br>#encoding UTF-8
<br>
<br>as the first line of template file, everything works ok.
<br>
<br>Maybe it helps somebody.
<br>
<br>PS: I'm still unsuccessfull with UTF-8 image titles (it is internal=
ly
<br>converted by weewx directly to Latin-1 :().<br><br></div>2. I was think=
ing about extractind the necessary columns for the generation of a meteocli=
matic template for sending ftp data to <a href=3D"http://meteoclimatic.com"=
target=3D"_blank">meteoclimatic.com</a> with cron and a bash script. The l=
ast answer about question 3 is very interesting... Let's go with it...<=
br>
<br>3. I think that I can send the meteoclimatic template using ftp or I ca=
n put this template with data on any public web site accesible from <a href=
=3D"http://meteoclimatic.com" target=3D"_blank">meteoclimatic.com</a>. I ha=
ve seen this code and it seems to be interesting:<br>
<a href=3D"http://code.google.com/p/wfrog/source/browse/trunk/wfrender/rend=
erer/meteoclimatic.py?r=3D838" target=3D"_blank">http://code.google.com/p/w=
frog/source/browse/trunk/wfrender/renderer/meteoclimatic.py?r=3D838</a><br>=
I also thik the "Cheetah template" is the solution... but I need =
more information from meteoclimatic and about "Cheetah template".=
.. <br>
<br>Many thanks in advance<div><div><br><br><div class=3D"gmail_quote">2012=
/5/4 Thomas Keffer <span dir=3D"ltr"><<a href=3D"mailto:tkef...@gmail.co=
m" target=3D"_blank">tkef...@gmail.com</a>></span><br>
<blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p=
x #ccc solid;padding-left:1ex">
Hello, and welcome to the weewx users group!<div><br></div><div>1. This wil=
l be familiar to long-time users, but please set debug=3D1, run again, then=
send the relevant log snippet! Also, when you say you are using the utf8 o=
ption, do you mean that you replaced the line=C2=A0</div>
<div><font face=3D"courier new, monospace">=C2=A0 encoding =3D html_entitie=
s</font></div><div>with a line</div><div><font face=3D"courier new, monospa=
ce">=C2=A0 encoding =3D utf8</font></div><div><br></div><div>2. The dateTim=
e column is what is called "<a href=3D"http://en.wikipedia.org/wiki/Un=
ix_time" target=3D"_blank">unix epoch time</a>". The template conversi=
on code in weewx should do the conversion to local time for you. If you wan=
t to do something special, say time in a different time zone, that gets mor=
e involved. Can you give us more detail what you are trying to do?</div>
<div><br></div><div>3. The link to the format used by meteoclimatic is lack=
ing some detail. Does one fill out a file with the desired information then=
send it to them? Or, is this an HTTP GET? If the former, then there it sho=
uld be quite easy --- just create a Cheetah template, just like the other t=
emplates, with the framework they give and plug in the relevant numbers usi=
ng "dot" codes. So, it would look something like:</div>
<div><pre style=3D"word-wrap:break-word;white-space:pre-wrap">*VER=3DDATA2
*COD=3D
*SIG=3D
*UPD=3D$current.dateTime # You may have to do a time conversion here!
*TMP=3D$current.outTemp
*WND=3D$current.windSpeed</pre><pre style=3D"word-wrap:break-word;white-spa=
ce:pre-wrap">...</pre><br>-tk</div><div><br><div class=3D"gmail_quote"><div=
><div>On Fri, May 4, 2012 at 6:51 AM, eumesmamente <span dir=3D"ltr"><<a=
href=3D"mailto:manxo...@gmail.com" target=3D"_blank">manxo...@gmail.com</a=
>></span> wrote:<br>
</div></div><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;bo=
rder-left:1px #ccc solid;padding-left:1ex"><div><div><span lang=3D"en"><spa=
n>Hi all</span><span>.</span><br> <span>I am new to</span> <span>the group<=
/span> <span>and wanted to</span> <span>introduce myself and</span> <span>a=
sk some</span> <span>questions.</span> <span>I'm from</span> <span>Gali=
cia</span> <span>in Spain</span> <span>and am</span> <span>trying to instal=
l</span> <span>weewx</span> <span>using a</span> <span>Vantage</span> <span=
>Vue</span> <span>in a school.</span> <span>I am</span> <span>a user</span>=
<span>with good knowledge of</span> <span>Linux</span><span>, but not</spa=
n> <span>programming</span><span>.</span> <span>My issues</span> <span>and =
problems</span> <span>are:</span><br>
<br> <span>1 -</span> <span>I'm trying to</span> <span>translate</span>=
<span>to Galician</span> <span>some templates</span><span>.</span> <span>W=
hen I use</span> <span>the </span></span><span lang=3D"en"><span>translated=
</span></span><span lang=3D"en"><span></span> <span>index.html.tmpl</span> =
<span>the reports and web pages are not generated</span> <span>correctly</s=
pan>=C2=A0<span></span> <span>and an error</span> <span>in</span> <span>sys=
log</span> <span>appears about</span> <span>some '</span><span>ascii=
9;</span> <span>can not</span> <span>encode</span> <span>or</span> <span>de=
code</span> <span>0xXX</span> <span>character</span> <span>(I forget</span>=
<span>).</span> <span>I'm using</span> <span>utf8</span> option o<span>=
n</span> <span>skins.conf file.</span><br>
<br> <span>2 -</span> <span>I can not</span> <span>interpret</span> <span>t=
he contents of the</span> <span>dateTime</span> <span>column</span> <span>i=
n</span> <span>the</span></span><span lang=3D"en"> <span>Sqlite</span></spa=
n><span lang=3D"en"><span> database</span><span></span><span>.</span> <span=
>How</span><span> can</span> I <span>convert the contents of</span> <span>t=
his column</span> <span>on a date</span> <span>and time</span><span>?</span=
><span>.</span><br>
<br> <span>3 -</span> <span>I wish I could</span> <span>send data</span> <s=
pan>to</span> <span><a href=3D"http://meteoclimatic.com" target=3D"_blank">=
meteoclimatic.com</a></span> <span>station</span><span>, a</span> <span>Spa=
nish</span> weather <span>web</span><span></span><span>.</span> <span>They =
use</span> <span>a data template</span> <span>like this:<br>
<br><a href=3D"http://personal.telefonica.terra.es/web/majycman/freewxsumma=
ry10.html" target=3D"_blank">http://personal.telefonica.terra.es/web/majycm=
an/freewxsummary10.html</a><br><a href=3D"http://jordicorbella.com/meteocam=
/meteo/meteoclimatic.htx" target=3D"_blank">http://jordicorbella.com/meteoc=
am/meteo/meteoclimatic.htx</a><br>
</span><br> <span>I may</span> <span>do this</span> <span>in some way</span=
> <span>from</span> <span>weewx</span><span>?<br>Many thanks<span><font col=
or=3D"#888888"><br></font></span></span></span></div></div><span><font colo=
r=3D"#888888">
<p></p>
-- <br>
You received this message because you are subscribed to the Google Groups &=
quot;Weewx Weather Station Discussion" group.<br>
To post to this group, send email to <a href=3D"mailto:weewx-user@googlegro=
ups.com" target=3D"_blank">weewx-user@googlegroups.com</a>.<br>
To unsubscribe from this group, send email to <a href=3D"mailto:weewx-user%=
2Bunsubscribe@googlegroups.com" target=3D"_blank">weewx-user+unsubscribe@go=
oglegroups.com</a>.<br>
For more options, visit this group at <a href=3D"http://groups.google.com/g=
roup/weewx-user?hl=3Den" target=3D"_blank">http://groups.google.com/group/w=
eewx-user?hl=3Den</a>.<span><font color=3D"#888888"><br>
</font></span></font></span></blockquote></div><span><font color=3D"#888888=
"><br><br clear=3D"all"><div><br></div>-- <br>Thomas Keffer<br><br><a href=
=3D"mailto:kef...@threefools.org" target=3D"_blank">kef...@threefools.org</=
a><br>
<a href=3D"tel:%2B1%20541-386-8891" value=3D"+15413868891" target=3D"_blank=
">+1 541-386-8891</a> (h)<br><a href=3D"tel:%2B1%20541-490-9507" value=3D"+=
15414909507" target=3D"_blank">+1 541-490-9507</a> (c)<div>
Skype: tkeffer<br></div><br>
</font></span></div><span><font color=3D"#888888">
<p></p>
-- <br>
You received this message because you are subscribed to the Google Groups &=
quot;Weewx Weather Station Discussion" group.<br>
To post to this group, send email to <a href=3D"mailto:weewx-user@googlegro=
ups.com" target=3D"_blank">weewx-user@googlegroups.com</a>.<br>
To unsubscribe from this group, send email to <a href=3D"mailto:weewx-user%=
2Bunsubscribe@googlegroups.com" target=3D"_blank">weewx-user+unsubscribe@go=
oglegroups.com</a>.<br>
For more options, visit this group at <a href=3D"http://groups.google.com/g=
roup/weewx-user?hl=3Den" target=3D"_blank">http://groups.google.com/group/w=
eewx-user?hl=3Den</a>.<br>
</font></span></blockquote></div><br>
<p></p>
-- <br>
You received this message because you are subscribed to the Google Groups &=
quot;Weewx Weather Station Discussion" group.<br>
To post to this group, send email to <a href=3D"mailto:weewx-user@googlegro=
ups.com" target=3D"_blank">weewx-user@googlegroups.com</a>.<br>
To unsubscribe from this group, send email to <a href=3D"mailto:weewx-user%=
2Bunsubscribe@googlegroups.com" target=3D"_blank">weewx-user+unsubscribe@go=
oglegroups.com</a>.<br>
For more options, visit this group at <a href=3D"http://groups.google.com/g=
roup/weewx-user?hl=3Den" target=3D"_blank">http://groups.google.com/group/w=
eewx-user?hl=3Den</a>.<br>
</div></div></blockquote></div><br><br clear=3D"all"><div><br></div>-- <br>=
Thomas Keffer<br><br><a href=3D"mailto:kef...@threefools.org" target=3D"_bl=
ank">kef...@threefools.org</a><br><a href=3D"tel:%2B1%20541-386-8891" value=
=3D"+15413868891" target=3D"_blank">+1 541-386-8891</a> (h)<br>
<a href=3D"tel:%2B1%20541-490-9507" value=3D"+15414909507" target=3D"_blank=
">+1 541-490-9507</a> (c)<div>
Skype: tkeffer<br></div><br>
</div>
<p></p>
-- <br>
You received this message because you are subscribed to the Google Groups &=
quot;Weewx Weather Station Discussion" group.<br>
To post to this group, send email to <a href=3D"mailto:weewx-user@googlegro=
ups.com" target=3D"_blank">weewx-user@googlegroups.com</a>.<br>
To unsubscribe from this group, send email to <a href=3D"mailto:weewx-user%=
2Bunsubscribe@googlegroups.com" target=3D"_blank">weewx-user+unsubscribe@go=
oglegroups.com</a>.<br>
For more options, visit this group at <a href=3D"http://groups.google.com/g=
roup/weewx-user?hl=3Den" target=3D"_blank">http://groups.google.com/group/w=
eewx-user?hl=3Den</a>.<br>
</div></div></blockquote></div><br>
<p></p>
-- <br>
You received this message because you are subscribed to the Google Groups &=
quot;Weewx Weather Station Discussion" group.<br>
To post to this group, send email to <a href=3D"mailto:weewx-user@googlegro=
ups.com" target=3D"_blank">weewx-user@googlegroups.com</a>.<br>
To unsubscribe from this group, send email to <a href=3D"mailto:weewx-user%=
2Bunsubscribe@googlegroups.com" target=3D"_blank">weewx-user+unsubscribe@go=
oglegroups.com</a>.<br>
For more options, visit this group at <a href=3D"http://groups.google.com/g=
roup/weewx-user?hl=3Den" target=3D"_blank">http://groups.google.com/group/w=
eewx-user?hl=3Den</a>.<br>
</div></div></blockquote></div><br><br clear=3D"all"><div><br></div>-- <br>=
Thomas Keffer<br><br><a href=3D"mailto:kef...@threefools.org" target=3D"_bl=
ank">kef...@threefools.org</a><br><a href=3D"tel:%2B1%20541-386-8891" value=
=3D"+15413868891" target=3D"_blank">+1 541-386-8891</a> (h)<br>
<a href=3D"tel:%2B1%20541-490-9507" value=3D"+15414909507" target=3D"_blank=
">+1 541-490-9507</a> (c)<div>
Skype: tkeffer<br></div><br>
</div>
<p></p>
-- <br>
You received this message because you are subscribed to the Google Groups &=
quot;Weewx Weather Station Discussion" group.<br>
To post to this group, send email to <a href=3D"mailto:weewx-user@googlegro=
ups.com" target=3D"_blank">weewx-user@googlegroups.com</a>.<br>
To unsubscribe from this group, send email to <a href=3D"mailto:weewx-user%=
2Bunsubscribe@googlegroups.com" target=3D"_blank">weewx-user+unsubscribe@go=
oglegroups.com</a>.<br>
For more options, visit this group at <a href=3D"http://groups.google.com/g=
roup/weewx-user?hl=3Den" target=3D"_blank">http://groups.google.com/group/w=
eewx-user?hl=3Den</a>.<br>
</div></div></blockquote></div><br>
--90e6ba6e842c0fa99504bf9aab01--