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 net, without marks or labels hypertext between its brands and end of file header.
HeadAims to mark the start of the data block and station identification. It contains the following fields:
* VER = DATA2
Mark the beginning of the file. Version data file. Constant value.
* COD = [código_estación]
ID code of the station
* UPD = [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 = US_03/14/2007 14:25
Current DataContains the data upon sending the file and make the following fields:
* TMP = [temperature]
Temperature in degrees Celsius
* WND = [velocidad_viento]
Wind speed in km / h
* AZI = [address]
Wind direction. Can be stated in degrees, where 0 ° or 360 ° are the north and 90 º, 180 º and 270 º 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)
* BAR = [pressure]
Pressure in hPa or mb.
* HUM = [moisture]
relative humidity
* SUN = [radiación_solar]
Solar radiation W/m2. Blank if not provided.
Daily dataContains the daily maximum and minimum and total precipitation of the day, according to the following fields:
* DHTM = [temperature]
Maximum daytime temperature in degrees Celsius
* DLTM = [temperature]
Minimum day temperature in Celsius
* DHHM = [humidity]
Maximum relative humidity of the day
* DLHM = [humidity]
Minimum relative humidity of day
* DHBR = [pressure]
Maximum pressure of the day
* DLBR = [pressure]
Minimum pressure of the day
DGST * = [velocidad_viento]
Maximum wind gust of the day
* DPCP = [precipitation]
Total precipitation days in mm
Monthly dataContains the maximum and minimum monthly and total rainfall of the month, according to the following fields:
* MHTM = [temperature]
Maximum temperature in degrees Celsius of the month
* MLTM = [temperature]
Minimum temperature in degrees Celsius of the month
* MHHM = [humidity]
Maximum relative humidity of the month
* MLHM = [humidity]
Minimum relative humidity of the month
* MHBR = [pressure]
Maximum pressure of the month
* MLBR = [pressure]
Minimum pressure of the month
MGST * = [velocidad_viento]
Maximum wind gust of the month
* MPCP = [precipitation]
Total precipitation in mm month
Annual DataContains the maximum and minimum annual total rainfall of the year, according to the following fields:
* YHTM = [temperature]
Maximum temperature in degrees Celsius year
* YLTM = [temperature]
Minimum temperature in degrees Celsius year
* YHHM = [humidity]
Maximum relative humidity of the year
* YLHM = [humidity]
Minimum relative humidity of the year
* YHBR = [pressure]
Maximum pressure of the year
* YLBR = [pressure]
Minimum pressure of the year
* YGST = [velocidad_viento]
Maximum wind gust of the year
* YPCP = [precipitation]
Total precipitation in mm year
End of fileThe 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 beginning and end of data file with these tags.
EXAMPLE FILE
*VER=DATA2
*COD=ESCAT0800000008226A
*UPD=06/01/2007 20:01
*SKY=
*TMP=8.1
*WND=0
*AZI=N
*BAR=1027.2
*HUM=74
*SUN=
*DHTM=13.2
*DLTM=5.3
*DHHM=80
*DLHM=56
*DHBR=1028.9
*DLBR=1025.7
*DGST=16
*DPCP=0
*MHTM=14.5
*MLTM=5.3
*MHHM=80
*MLHM=32
*MHBR=1035.0
*MLBR=1023.5
*MGST=23
*MPCP=0
*YHTM=14.5
*YLTM=5.3
*YHHM=80
*YLHM=32
*YHBR=1035.0
*YLBR=1023.5
*YGST=23
*YPCP=0
*EOT*