You are on page 1of 19

EstoesunaintroduccinalficherodeconfiguracindeWeewxyenningnmomentopretendeserunaguaexhaustiva.

Siquieres
profundizaracudealmanualdeusuarioyalmanualdepersonalizacindeWeewx.

Encabezado
Empezamosporelencabezamientodelfichero.
Porlogeneral,nosetoca,salvoquetengamosproblemas.

#$Id:weewx.conf29012015020521:15:03Ztkeffer$
#
#WEEWXCONFIGURATIONFILE
#
#Copyright(c)20092014TomKeffer<tkeffer@gmail.com>
#SeethefileLICENSE.txtforyourfullrights.
##############################################################################
#Thissectionisforgeneralconfigurationinformation
#Setto1forextradebuginfo,otherwisecommentitoutorsettozero.
debug=0
#Rootdirectoryoftheweewxdatafilehierarchyforthisstation.
WEEWX_ROOT=/
#Howlongtowaitbeforetimingoutasocket(FTP,HTTP)connection:
socket_timeout=20
#Donotmodifythisitisusedbysetup.pywheninstallingandupdating.
version=3.1.0
##############################################################################

debug=0Elniveldeinformacinyerroresenellogeselestndar.
debug=1Lacantidaddeinformacindelosprocesosyloserroresserintensiva.Ojo,losficherosdelogpuedenadquirirtamaos
considerables
Elrestodevaloresnodebentocarse,salvoquerealmentesepasloqueestshaciendo.

Definicindelaestacin
AcontinuacinvamosaverlaseccindondedecimosaWeewxquetipodeestacinmeteorolgicavaamanejaryalgunosdatos
importantes.

##############################################################################

[Station]
#Thissectionisforinformationaboutyourstation

#Descriptionofthestationlocation.
location=RivasVaciamadrid

#Latitudeandlongitudeindecimaldegrees
latitude=40.3562475
longitude=3.5201664

#Altitudeofthestation,withunititisin.Thisisdownloadedfrom
#fromthestationifthehardwaresupportsit.
altitude=630,meter

#Settotypeofstationhardware.Theremustbeacorrespondingstanza
#inthisfilewitha'driver'parameterindicatingthedrivertobeused.
station_type=Vantage

#Ifyouhaveawebsite,youmayspecifyanURL
station_url=http://www.jantoni.es/weewx2

#Thestartoftherainyear(1=January10=October,etc.).Thisis
#downloadedfromthestationifthehardwaresupportsit.
rain_year_start=1

#Startofweek(0=Monday,6=Sunday)
week_start=0

##############################################################################

location=RivasVaciamadridEvidentementeesladescripcindedondeestubicadalaestacin
latitude=40.3562475Lalatituddelaubicacinengradosdecimales.
longitude=3.5201664Lalongituddelaubicacinengradosdecimales.Esteespositivo,Oesteesnegativo
altitude=630,meterIndicamoslaalturaDELACONSOLAylaunidaddemedida(meterofeet)enmetrosopies
station_type=VantageIndicamosqueclasedeestacinusamosdentrodelasadmitidasporWeewx.Elnombredebecoincidircon
algunadeellas.

DavisVantagePro2yVue
EstaeslaseccindeconfiguracindelasestacionesDavisVantagePro2yDavisVantageVue.Escomnparaambasyconfiguratantolos
Weatherlinkserie,losWeatherlinkusbylosWeatherlinkIP

[Vantage]

#ThissectionisforaDavisVantagePro2,VantageVueorWeatherLinkIP
#Connectiontype:serialorethernet
#serial(theclassicVantagePro)
#ethernet(theWeatherLinkIP)
type=serial
#Iftheconnectiontypeisserial,aportmustbespecified:
#Debian,Ubuntu,Redhat,Fedora,andSuSE:
#/dev/ttyUSB0isacommonUSBportname
#/dev/ttyS0isacommonserialportname
#BSD:
#/dev/cuaU0isacommonserialportname
port=/dev/ttyAMA0
#port=/dev/ttyUSB0
#Iftheconnectiontypeisethernet,anIPAddress/hostnameisrequired:
host=1.2.3.4
######################################################
#Therestofthissectionrarelyneedsanyattention.
#Youcansafelyleaveit"asis."
######################################################
#Serialbaudrate(usually19200)
baudrate=19200
#TCPport(whenusingtheWeatherLinkIP)
tcp_port=22222
#TCPsenddelay(whenusingtheWeatherLinkIP):
tcp_send_delay=1
#TheidofyourISSstation(usually1)
iss_id=1
#Howlongtowaitforaresponsefromthestationbeforegivingup(in
#secondsmustbegreaterthan2)
timeout=5
#Howlongtowaitbeforetryingagain(inseconds)
wait_before_retry=1.2
#Howmanytimestotrybeforegivingup:
max_tries=4
#Thedrivertouse:
driver=weewx.drivers.vantage

type=serialPondremosserialparalosWLserieylosWLUSB,yaqueesteltimo,enrealidadessolounconversor.
type=ethernetParalosWeathelinkIP
port=/dev/ttyUSB0Estoserenlainmensamayoradeloscasos.Enalgunasocasionespodrserotronmerodistintodecero,
porquenuestroordenadordetecteotropuertoSerieUSB.
SiusisunordenadorquedispongadepuertoRS232yloutilizisparaelWeatherLinkSerie,debisindicarelpuerto.Porlogeneralserel
/dev/ttyS0,/dev/ttyS1,etc,etc
Veisqueenmificheroaparece/dev/ttyAMA0.EseeselpuertoserieestndardeRaspberryPI(enloscontactosdelGPIO)quepodrnusar
directamenteaquellosquetenganunaconsolaDavisconfirmwareprevioal3.0,esdecir,funcionasindatalogger.

Sitenisdudassobrecualeselpuertoquetenisqueponer,podisusarestecomando:
dmesg|greptty*
Osaparecern,ademsdelttyAMA0,quesiempreestpresente,losadaptadoresseriequetengisconectados,incluidoeldatalogger,con
sunumeracin.SielordenadortienepuertosRS232estndar,tambinaparecernidentificados.
host=1.2.3.4AquindicamosladireccinIPdelWeatherlinkIP
Silaconsolaestenunaubicacinremota,debisponerladireccinIPpblicadelaubicacindondeestinstaladayabrirelpuerto
correspondientedelrouterremoto.
Comoindicaelficherooriginaldeconfiguracin,elrestodeparmetrossecambiamuyrarasveces,yesmejornotocarlossalvoquesepas
loquehaces.
Quizselnicoparmetrosea:
iss_id=1queidentificaqueISSdebeleerlaconsola.SalvoquetengisvariasDavisenlamismaubicacin,lonormalesquesiempresea
1.

OregonWMR88,WMR88A,WMR100,WMR100N,WMR180,WMR180AyWMRS200
LasiguienteseccinqueexplicamoseslaquecontrolalasOregonWMR88,WMR88A,WMR100,WMR100N,WMR180,WMR180Ay
WMRS200.OJO,OJOOJO......NOWMR200

[WMR100]
#ThissectionisfortheOregonScientificWMR100

#Thestationmodel,e.g.,WMR100,WMR100N,WMRS200
model=WMR100

#Howlongawindrecordcanbeusedtocalculatewindchill(inseconds)
stale_wind=30

#Thedrivertouse:
driver=weewx.drivers.wmr100

EstaseccinnosetocarprcticamenteNUNCA,salvoelmodelodeestacin

model=WMR100Esuntexto.Notieneningunaverificacin.Unicamenteseponeparaidentificareltipodeestacinenlaspginas
webgeneradas.

OregonWMR200
LasiguienteseccinesparalaOregnWMR200noWMRS200

[WMR200]
#ThissectionisfortheOregonScientificWMR200
#Thestationmodel,e.g.,WMR200,WMR200A,RadioShackW200
model=WMR200
#Thedrivertouse:
driver=weewx.drivers.wmr200

EnmodeloaplicamoslomismoqueheindicadoenlaseccindeWMR100
SiponesWMR200maravillosa,enlapginawebaparecerWMR200maravillosa
Esdecir,notieneningunaaplicacinmsquevisualenlaspginaswebgeneradas.
LaseccindeWMR200notieneningnajuste.

Oregon918,928,968
EstaseccinsededicaalasOregon918,928,968ytodassusvariantesenmarcascomoHuger,RadioShack,etc,etc

[WMR9x8]
#ThissectionisfortheOregonScientificWMR918/968

#Connectiontype.Fornow,'serial'istheonlyoption.
type=serial

#Serialportsuchas/dev/ttyS0,/dev/ttyUSB0,or/dev/cuaU0
port=/dev/ttyUSB0

#Thestationmodel,e.g.,WMR918,RadioShack631016
model=WMR968

#Thedrivertouse:
driver=weewx.drivers.wmr9x8

type=serialEslanicaopcin
Port=/dev/ttyUSB0LeeladescripcinenlaseccinDavis.
model=VMR968SeaplicalomismodichoenlaseccinWMR100yWMR200

FineOffsetoPCE
YahoranosmetemosconlaconfiguracindelaFineOffset.RecordadqueeselfabricantedelasPCEFSW20yquetambinsevendencon
milmarcasmas.

[FineOffsetUSB]
#ThissectionisfortheFineOffsetseriesofweatherstations.

#Thestationmodel,e.g.,WH1080,WS1090,WS2080,WH3081
model=WS2080

#ThepollingmodecanbePERIODICorADAPTIVE
#polling_mode=PERIODIC
polling_mode=ADAPTIVE

#Howoftentopollthestationfordata,inseconds
#EsteparametroesinnecesariosiusamosADAPTIVE
#polling_interval=60

#Thepressurecalibrationoffset,inhPa(millibars)
pressure_offset=1

#Thedrivertouse:
driver=weewx.drivers.fousb

model=WS2080lomismoindicadoenlasanterioressecciones.estecamposolonosvaleparaindicarlamarcadenuestraestacin.
Podemosponer,sinproblema,PCEFWS20
pollng_mode=ADAPTIVE
polling_mode=PERIODIC

ADAPTIVEsignificaque,cadavezquesegenereunregistroenlaconsola,seregistrarporpartedeWeewx
PERIODICsignificaque,cadaXsegundos(indicadosporpolling_interval)Weewxseconectaalaconsolayleeelltimoregistro.

Personalmenteheusadoambosmtodosynoheencontradodiferenciasenlafiabilidaddelsistema.

polling_interval=60ElperiododetiempoensegundosqueWeewxusarparaconectarsealaconsolayleerelltimoregistro.Siusas
ADAPTIVEdeshabilitaloponiendouna#delantedelcampo.

LaCrosseWS2300yWS2800
LassiguientesseccionessonparalasLaCrosseseriesWS2300yWS2800

[WS23xx]

#ThissectionisfortheLaCrosseWS2300seriesofweatherstations.

#Serialportsuchas/dev/ttyS0,/dev/ttyUSB0,or/dev/cuaU0
port=/dev/ttyUSB0

#Thestationmodel,e.g.,'LaCrosseWS2317'or'TFAPrimus'
model=LaCrosseWS23xx

#Thepressurecalibrationoffset,inhPa(millibars)
pressure_offset=0

#Thedrivertouse:
driver=weewx.drivers.ws23xx

[WS28xx]
#ThissectionisfortheLaCrosseWS2800seriesofweatherstations.

#RadiofrequencytousebetweenUSBtransceiverandconsole:USorEU
#USuses915MHz,EUuses868.3MHz.DefaultisUS.
transceiver_frequency=US

#Thestationmodel,e.g.,'LaCrosseC86234'or'TFAPrimus'
model=LaCrosseWS28xx

#Thepressurecalibrationoffset,inhPa(millibars)
pressure_offset=0

#Thedrivertouse:
driver=weewx.drivers.ws28xx

Loscamposport,modelypressure_offsetsonidnticosaloindicadoanteriormente,porloqueesdeaplicacinenlamismamedida.

Elnicocampoacomentares,enelcasodelasWS2800:

transceiver_frecuency=US
transceiver_frecuency=EU

Queevidentementeesparadecirquefrecuenciasusalaconsolaparacomunicarse.

LasiguienteseccinquecomentamoseslacorrespondientealaestacinTE923.BajoestenombrededriverWeewxsecomunicaconotras
milestacionesconnombreymodelodiferente.

Personalmente,siemprelashedenominadoHoneywellyaquelossensores,originalmente,eranconstruidosporestaempresa.

Actualmente,estedrivercontrolaestacionescomolasMebus,Honeywell,Hideki,TFANexusySinus,VentusW831,etc,etc,etc

Salvoquetengamossensoresadicionalesalossuministradosdemaneraestndar,notocaremosningnparmetro,yaqueloscamposde
configuracinserefierenalossensoresadicionales.Estaestacinpuedetenermultituddesensorestermohigromtricos.

Elcampomodelyalohemosexplicadohastalasaciedad.Pondremoselnombredenuestraestacin.

Honeywell,Hideki,TFASinus/Nexus,VentusW831

[TE923]
#ThissectionisfortheHidekiTE923seriesofweatherstations.

#Thestationmodel,e.g.,'MeadeTE923W'or'TFANexus'
model=TE923

#Thedrivertouse:
driver=weewx.drivers.te923

#Thedefaultconfigurationassociatesthechannel1sensorwithoutTemp
#andoutHumidity.Tochangethis,ortoassociateotherchannelswith
#specificcolumnsinthedatabaseschema,usethefollowingmaps.
[[sensor_map]]
#Maptheremotesensorstocolumnsinthedatabaseschema.
outTemp=t_1
outHumidity=h_1
extraTemp1=t_2
extraHumid1=h_2
extraTemp2=t_3
extraHumid2=h_3
extraTemp3=t_4
#WARNING:thefollowingarenotinthedefaultschema
extraHumid3=h_4
extraTemp4=t_5
extraHumid4=h_5

[[battery_map]]
txBatteryStatus=batteryUV
windBatteryStatus=batteryWind
rainBatteryStatus=batteryRain
outTempBatteryStatus=battery1
#WARNING:thefollowingarenotinthedefaultschema
extraBatteryStatus1=battery2
extraBatteryStatus2=battery3
extraBatteryStatus3=battery4
extraBatteryStatus4=battery5

PeetBros.
AcontinuacinlaseccinparalasestacionesPeetBrosUltimeter.

Novoyadejardeaprovecharlaocasinparavolveradecir,quehetenidounadeellasynomehangustado.Peroesoesotrahistoria.

Enestedriver,nohayqueconfigurarmsqueelpuertoausar.

[Ultimeter]
#ThissectionisforthePeetBrosUltimeterseriesofweatherstations.

#Serialportsuchas/dev/ttyS0,/dev/ttyUSB0,or/dev/cuaU0
port=/dev/ttyUSB0

#Thestationmodel,e.g.,Ultimeter2000,Ultimeter100
model=Ultimeter

#Thedrivertouse:
driver=weewx.drivers.ultimeter

port=/dev/ttyUSB0Yaexplicadoanteriormente.MiraenlaseccindeDavisVantageparaverladescripcin.
model=Ultimeterigualquelocomentadoanteriormente,eselmodelodelaestacin.

WS1yCC3000
Lasiguienteseccinesparaestacionesbastanteminoritarias,lasWS1ylaCC3000
LaWS1esprcticamenteidnticaalasFineOffset,peronosoninalmbricas.Lossensoresdevientoydepreciipitacin,sonidnticosala
FineOffset,noaseldetemperatura.

LaCC3000yMKIIIdeRainWisesonestacionesdelotroextremo,esdecirminoritariasporsuelevadoprecio.

[WS1]
#ThissectionisfortheADSWS1seriesofweatherstations.
#Serialportsuchas/dev/ttyS0,/dev/ttyUSB0,or/dev/cuaU0
port=/dev/ttyUSB0
#Thedrivertouse:
driver=weewx.drivers.ws1
##############################################################################
[CC3000]
#ThissectionisforRainWiseMarkIIIweatherstationsandCC3000logger.
#Serialportsuchas/dev/ttyS0,/dev/ttyUSB0,or/dev/cuaU0
port=/dev/ttyUSB0
#Thestationmodel,e.g.,CC3000orCC3000R
model=CC3000
#Thedrivertouse:
driver=weewx.drivers.cc3000

Tantoloscampomodelyportyasehanexplicadobastantesveces.

Simulador
Lasiguienteseccinesdelmodosimulador.
Nomedetendr,escasiautoexplicativoynotienemuchautilidad.

[Simulator]
#Thissectionisfortheweewxweatherstationsimulator
#Thetime(inseconds)betweenLOOPpackets.
loop_interval=2.5
#Thesimulatormodecanbeeither'simulator'or'generator'.
#Realtimesimulator.SleepbetweeneachLOOPpacket.
mode=simulator
#Generator.EmitLOOPpacketsasfastaspossible(usefulfortesting).
#mode=generator
#Thestarttime.Ifnotspecified,thedefaultistousethepresenttime.
#start=2011010100:00
#Thedrivertouse:
driver=weewx.drivers.simulator

Apartirdeestemomento,comienzalaconfiguracinmscompleja.

[StdRESTful]
#ThissectionisforuploadingdatatositesusingRESTfulprotocols.
[[StationRegistry]]
#Toregisterthisweatherstation,setthistoTrue:
register_this_station=True
[[AWEKAS]]
#ThissectionisforconfiguringpoststoAWEKAS
#Ifyouwishtodothis,uncommentthefollowingusernameandpassword
#linesandfillthemwithyourusernameandpassword:
username=pepito
password=pajarito
[[CWOP]]
#ThissectionisforconfiguringpoststoCWOP
#Ifyouwishtodothis,makesurethefollowinglineisuncommented
#andfilledoutwithyourstationID:
station=EA5XX
#IfyouareanAPRS(radioamateur)station,youwillneedapasscode:
passcode=12345
[[PWSweather]]
#ThissectionisforconfiguringpoststoPWSweather.com
#Ifyouwishtodothis,uncommentthefollowingstationandpassword
#linesandfillthemwithyourstationandpassword:
station=pepito
password=pajarito
[[WOW]]
#ThissectionisforconfiguringpoststoWOW
#Ifyouwishtodothis,uncommentthefollowingstationandpassword
#linesandfillthemwithyourstationandpassword:
#station=
#password=
[[Wunderground]]
#ThissectionisforconfiguringpoststotheWeatherUnderground
#Ifyouwishtodothis,uncommentthefollowingstationandpassword
#linesandfillthemwithyourstationandpassword:
station=pepito
password=pajarito
#SetthefollowingtoTruetohaveweewxusetheWU"Rapidfire"
#protocol.Notallhardwarecansupportit.SeetheUser'sGuide.
rapidfire=True

Enestaseccinvamosaconfigurarlosservicioswebalosquevamosamandardatos
En[[StationRegistry]]tansololeindicamosaWeewxquequeremosaparecerenelmapadeestacionesdeWeewx
Solohaydosopciones:
register_this_station=True
register_this_station=False
LapginadondeaparecenlasestacionesWeewxqueaslodeseaneshttp://weewx.com/stations.html
Acontinuacinnosaparecentodoslosservicioswebquepodemosmandardatos.
Laestructuraeslamismaentodosellos.
Siqueremosmandardatos,porlogenerallaestructuraes:
station=elnombreocodigodeestacion
password=laquenoshayandado
Sinoqueremosmandardatos,tansolotenemosqueponeruna#delantedecadacampo.
#station=
#password=
Particularidades:
EnelcasodeAwekas,elcampostationsesustituyeporusername
EnWundergroundtenemoselcampo:
rapidfire=True
rapidfire=False
Sinotienesunaestacinqueactualicelosdatoscadapocossegundos,comolasDavis,ponloaFalse.ElponerloenTrueimplicamandar
datosaWundergroundcadapocossegundos.Ojoconlasestacionesquemandendatospor3G,ponerloenFalseosecomerlatarifade
datos.
CWOP.EstaredeslamismadeAPRS.Porellosieresradioaficionadodebesindicarenstationtuindicativoderadioaficionadoyen
passworduncdigonumrico.EstecdigoeselmismoquedebesobtenerparaotrosprogramasdeAPRS.
Lovamoscomplicandounpocoms,perotampocomucho.
Cdigo:[Seleccionar]
[StdReport]
#Thissectionspecifieswhatreports,usingwhichskins,togenerate.
#Wheretheskinsreside,relativetoWEEWX_ROOT:
SKIN_ROOT=/etc/weewx/skins
#Wherethegeneratedreportsshouldgo,relativetoWEEWX_ROOT:
HTML_ROOT=/var/www/weewx
#Thedatabasebindingindicateswhichdatashouldbeusedinreports
data_binding=wx_binding
#Eachsubsectionrepresentsareportyouwishtorun.
[[StandardReport]]
#Seethecustomizingguidetochangetheunits,plottypesandline

#colors,modifythefonts,displayadditionalsensordata,andother
#customizations.Manyofthosechangescanbemadeherebyoverriding
#parameters,orbymodifyingtemplateswithintheskinitself.
#TheStandardReportusesthe'Standard'skin,whichcontainsthe
#images,templatesandplotsforthereport.
skin=Standard
##[[[Units]]]
#[[[[Groups]]]]
#group_altitude=meter
#group_speed2=meter_per_second2
#group_pressure=mbar
#group_rain=mm
#group_rainrate=mm_per_hour
#group_temperature=degree_C
#group_degree_day=degree_C_day
#group_speed=meter_per_second
[[FTP]]
#FTP'ingtheresultstoawebserveristreatedasjustanotherreport,
#albeitonewithanunusualreportgenerator!
skin=Ftp
#IfyouwishtouseFTP,uncommentandfilloutthenextfourlines:
user=pi
password=raspberry
server=192.168.0.78
path=/var/www/weewx
#SettoTrueforasecureFTP(SFTP)connection.Notallservers
#supportthis:
secure_ftp=False
#IfyouwishtouploadfilesfromsomethingotherthanwhatHTML_ROOT
#issettoabove,thenresetithere:
#HTML_ROOT=/var/www/weewx
#MostFTPserversuseport21,butifyoursisdifferent,youcan
#changeithere
port=21
#Setto1tousepassivemode,zeroforactivemode:
passive=1
[[RSYNC]]
#rsync'ingtoawebserveristreatedasjustanotherreport
skin=Rsync
#Ifyouwishtousersync,youmustconfigurepasswordlesssshusing
#public/privatekeyauthenticationfromtheuseraccountthatweewx
#runsastotheuseraccountontheremotemachinewherethefiles
#willbecopied.
#
#Thefollowingdeterminewherefileswillbesent:
#server=replacewithyourservername,e.g,www.threefools.org
#path=replacewiththedestinationdirectory(e.g.,/weather)
#user=replacewithyourusername
#Rsynccanbeconfiguredtoremovefilesfromtheremoteserverif
#theydon'texistunderHTML_ROOTlocally.USEWITHCAUTION:ifyou

#makeamistakeintheremotepath,youcouldcouldunintentionally
#causeunrelatedfilestobedeleted.Setto1toenableremotefile
#deletion,zerotoallowfilestoaccumulateremotely.
delete=0
[[SteelSeries]]
skin=ss
HTML_ROOT=/var/www/weewx/ss
Enestaseccin,indicamosaWeewxqueinformesyusandoque"skin",sevanagenerar.
Usarlapalabra"skin",yaquesutraduccinnuncamehagustado.Paraaquelquenosepadequeva,lopodemostraducircomoaspecto,
capa,piel,yoques.Sutraduccinliteralseraladepiel,pellejo,etc.
SKIN_ROOT=/etc/weewx/skinsaquindicaremoseldirectoriodondeseencuentrantodoslos"skin"
HTML_ROOT=/var/www/weewxindicaremoseldirectoriodondesevanaguardarlosinformesypginaswebquegeneremos
data_binding=wx_bindingEsteparmetronolotocaremos,bajopeligrodemuerte:)
En[[StandardReport]]configuraremoslosinformesqueiremosgenerando.Esdecir,aquellosquepodremosverennuestrapginaweb.
skin=StandardElinformeStandardReportusarelskinStandard.Haymultituddeskinsyaprogramados.Tutambinpuedesprogramar
tupropioskin.Enlawikideweewxpuedesdescargardiferentesskinshttps://github.com/weewx/weewx/wiki

LaseccinStdConvertnospermiteseleccionarenquesistemademedidasvamosaalmacenarlaslecturasdenuestraestacin.
Solohay3opciones:
USesdecirloqueseconocepopularmentecomoImperial
METRICoMETRICWX
LadiferenciaentreMETRICyMETRICWXesmuysutilyvieneaserenlaunidaddemedidadelaprecipitacin(mmocm)yenlamedidade
lavelocidaddelviento(kmphom/s)
NingunadelasdosmedidasenmtricaseajustaaloestablecidoenMeteoclimatic.Peroestonosdaigual.
ParticularmentealmacenomibasededatosenUS
IMPORTANTISIMO:Nopuedescambiardeunsistemademedidasaotro.Siloquiereshacer,tienesqueleerbienladocumentacinparano
perderlosdatos.NODARESOPORTENIINFORMACIONPARAHACERLATRANSFORMACION.Noquierobasesdedatoscorruptasenmis
espaldas.
Siquieresverladiferenciaentrelos3modosdealmacenar,aqutieneslainformacin
http://www.weewx.com/docs/customizing.htm#units
Cdigo:[Seleccionar]
[StdConvert]
#Thisserviceactsasafilter,convertingtheunitsystemcomingfrom
#thehardwaretoaunitsysteminthedatabase.
#
#Thetarget_unitaffectsonlytheunitsysteminthedatabase.Once
#chosenitcannotbechangedwithoutconvertingtheentiredatabase.
#Modificationoftarget_unitafterstartingweewxwillresultin
#corruptdatathedatabasewillcontainamixofUSandMETRICdata.
#
#Thevalueoftarget_unitdoesnotaffecttheunitsystemfor
#reportingreportscandisplayUS,Metric,oranycombinationofunits.

#
#Inmostcases,target_unitshouldbeleftasthedefault:US
#
#Inparticular,thosemigratingfromastandardwviewinstallation
#shoulduseUSsincethatiswhatthewviewdatabasecontains.
#DONOTMODIFYTHISVALUEUNLESSYOUKNOWWHATYOUAREDOING!
target_unit=US#Optionsare'US','METRICWX',or'METRIC'
Estaseccinesautoexplicativa.
Consisteenla"calibracin"delossensores.
Muchoojoconesto.LamanipulacindelosdatosdelossensorespuedeprovocarlaeliminacindelossellosdecalidadMeteoclimatic.
Salvoquesepasloquehaces,recomendamosnotocarestaseccin.
Unaexcepcin:Lapresin.Siemprequehayamosvistocualesladiferenciaconrespectoalareferenciadenuestrazona(Aeropuerto,por
ejemplo)ydespusdeanalizarlasdiferenciasdurantevariosdas.
LASCORRECCIONESDELOSSENSORESseharnenlamismaunidaddefinidaenStdConvert.
Esdecir,sialmacenamosenunidadesImperiales,debemoscorregir,porejemplo,lapresineninHg

Cdigo:[Seleccionar]
[StdCalibrate]
#Thissectioncanadjustdatausingcalibrationexpressions.
[[Corrections]]
#Foreachtype,anarbitrarycalibrationexpressioncanbegiven.
#ItshouldbeintheunitsdefinedintheStdConvertsection.
#Forexample:
#outTemp=outTemp0.2
barometer=barometer+0.044294974607099996
Enelejemploanterior,realdemiVentusW831(quenopublicadatosenMeteoclimatic),seaplicaunoffsetdecorreccinalavariable
"barometer",sumndoledeformaconstante0.044294974607099996inHg
LaseccinStdQCtambinesdelasquenotocaremoshabitualmente.
Situestacintieneladesagradablemanadedarvaloresextraos,aqupuedesintentarcorregirlos.
Igualquelaseccinanterior,hayqueespecificarlosrangosenlamismaunidadquelasalmacenamos,esdecir,igualqueloindicadoen
StdConvert.
Indicaremoselvalormnimoaceptadoyelmximo.
EstossonlosvalorespordefectodeWeewx
[StdQC]
Cdigo:[Seleccionar]
#Thissectionisforqualitycontrolchecks.Ifunitsarenotspecified,
#valuesmustbeintheunitsdefinedintheStdConvertsection.
[[MinMax]]
barometer=26,32.5,inHg
outTemp=40,120,degree_F
inTemp=10,120,degree_F

outHumidity=0,100
inHumidity=0,100
windSpeed=0,120,mile_per_hour
Estaseccinestambinmuypocoutilizada.
LeindicamosaWeewxquequeremosquealgunasvariableslassuministralapropiaconsoladelaestacinosilascalculael.
Lohabitualesindicar"prefer_hardware"queindicaqueeldatoescalculadoyfacilitadoporlaconsola.Ysinolofacilita,localculaWeewx.
Sivesquelaconsoladetuestacinnocalculacorrectamenteesavariable,puesindicar"software"encargndoseWeewxderealizarlos
clculos.
Enlainmensamayoradeloscasos,estossonlosvaloresaindicar,quesonlosvalorespordefecto.
Cdigo:[Seleccionar]
[StdWXCalculate]
#Derivedquantitiesarecalculatedbythisservice.Possiblevaluesare:
#hardwareusethevalueprovidedbyhardware
#softwareusethevaluecalculatedbyweewx
#prefer_hardwareusevalueprovidebyhardwareifavailable,
#otherwiseusevaluecalculatedbyweewx
pressure=prefer_hardware
barometer=prefer_hardware
altimeter=prefer_hardware
windchill=prefer_hardware
heatindex=prefer_hardware
dewpoint=prefer_hardware
inDewpoint=prefer_hardware
rainRate=prefer_hardware
LaseccinStdTimeSynchsirveparacorregirladiferenciaentreelrelojdelaconsolayladelordenador.

ComosesuponequeladelordenadorestsincronizadaporInternet,siempreserladereferencia.

Demomento,solohevistoquefuncioneenlasconsolasDavis.

Cdigo:[Seleccionar]
[StdTimeSynch]

#Howoftentochecktheweatherstationclockfordrift(inseconds)
clock_check=14400

#Howmuchitcandriftbeforewewillcorrectit(inseconds)
max_drift=5
clock_check=segundosIndicamosaweewxcadacuantossegundosvaacomprobarladerivadelahoradelaconsola.

max_drift=segundosSiladerivadelaconsolaessuperioraesacantidaddesegundos,Weewxsincronizarlahoradelaconsolaconla
delordenador.

ltimamodificacin:13deOctubredel2015,19:30:18pmporjantoniEA4TN
LaseccinStdArchivenoescrtica,PEROGENERAMUCHOSDOLORESDECABEZA.
GeneralosdoloresdecabezaparaaquellosusuariosconposibilidaddeleerlosdataloggerporpartedeWeeWX.Luegoentenderispor
qu.
Cdigo:[Seleccionar]
[StdArchive]
#Thissectionisforconfiguringthearchiveservice.
#Ifyourstationhardwaresupportsdataloggingthenthearchiveinterval
#willbedownloadedfromthestation.
#Otherwise,youmustspecifyitbelow(inseconds):
archive_interval=300
#Howlongtowait(inseconds)beforeprocessingnewarchivedata.Must
#begreaterthanzero.
archive_delay=15
#Generally,ifpossible,newrecordsaredownloadedfromtheconsole
#hardware.Iftheconsoledoesnotsupportthis,thensoftwarerecord
#generationisdone.
#Setthefollowingto"software"toforcesoftwarerecordgeneration:
record_generation=software
#WhethertoincludeLOOPdatainhi/lowstatistics.
loop_hilo=True
#Thedatabindingtobeused:
data_binding=wx_binding
archive_inverval=segundosSeindicarlaperiodicidaddeWeewxengenerarlosregistrosenlosarchivos.Estoes,pginasweb,plantilla
meteoclimatic,etc,etc.ESTETIEMPODEBECOINCIDIRCONELTIEMPODEGENERACIONENLACONSOLASIWEEWXPUEDELEERLO.Es
decir,sienlaconsolatienes30minutosyenWeewxindicas5minutos(300segundos),LOQUEMANDAESELTIEMPOINDICADOENLA
CONSOLA.
Estehasido,tradicionalmente,elproblemamshabitualenelnefitoenWeewx.
INSISTO.DEBESIGUALARELTIEMPODEREGISTROENLACONSOLAYWEEWX.EstonoesexclusivodeWeewx,ocurretambinconotros
softwares.
Tiemposdegeneracinsuperioresa10minutos,provocarnquetusgrficosseanlamentables,soloverspuntosaislados.
Serecomienda5minutostantoenconsolacomoenWeewx.
archive_delay=segundosNoesundatocrtico,indicaelnmerodesegundosqueesperarWeewxparaprocesarlosdatos.Porejemplo
silohacecada5minutos,enlugardeprocesarlosdatosalas15:05:00loharalas15:05:15.Estevalordebesersiempremayorquecero.
Esbuenaideaquesea15osuperior,puesLinuxejecutar,normalmente,losprocesosquetieneprogramadosalolargodeldaenlos
minutosexactos.Evitamos,portanto,sobrecargarelsistema.
record_generation=software
record_generation=hardware
SituestacintieneundataloggerquepuedaserleidoporWeewxusahardware.Delocontrariousasoftware.
Porejemplo,lasPCEFWS20ylasDavispuedenserleidasporWeewxypuedenusarhardware.
SiusasunaDavissindatalogger(si,si....yahedichomuchasvecesquesepuede),tendrsqueusarsoftware.

Ladiferenciaessutil.SituestacintienedataloggercompatibleconWeewxyestableces"software"enestecampo,enelcasodeque
hubierauncortedecorrienteenelordenador,alrestablecerseWeewxnoleerlosdatosalmacenadoseneldatalogger.Sipusiste
"hardware"alrestablecerseWeewx,leerlosdatosalmacenadoseneldataloggerylosprocesaradecuadamente.
Elrestodecamposnomerecenexplicacin.
Estasseccionestienenunaconfiguracinquenoesparainiciados.
Siquieressabermsdeellas,tendrsqueverloenelmanualdeusuarioyeldepersonalizacin.
Sitocasalgoaqu,esaturiesgo.
Bsicamenteserefierealmanejodelasbasesdedatos.Estosertilparaaquellosusuariosquequieranvolcarlosdatosentablasde
Mysqlparaluegoutilizarlasconotrosprogramasquegenerengrficos,pginasweb,etc
Cdigo:[Seleccionar]
[DataBindings]
#Thissectionbindsadatastoretoadatabase
[[wx_binding]]
#Thedatabasemustmatchoneofthesectionsin[Databases]
database=archive_sqlite
#Thenameofthetablewithinthedatabase
table_name=archive
#Themanagerhandlesaggregationofdataforhistoricalsummaries
manager=weewx.wxmanager.WXDaySummaryManager
#Theschemadefinesthestructureofthedatabase.
#Itis*only*usedwhenthedatabaseiscreated.
schema=schemas.wview.schema
[Databases]
#Thissectiondefinestheactualdatabases
#ASQLitedatabaseissimplyasinglefile
[[archive_sqlite]]
root=%(WEEWX_ROOT)s
database_name=/var/lib/weewx/weewx.sdb
driver=weedb.sqlite
#MySQLrequireaserver(host)withnameandpasswordforaccess
[[archive_mysql]]
host=localhost
user=weewx
password=weewx
database_name=weewx
driver=weedb.mysql
Estonitocarlo,
Cdigo:[Seleccionar]
[Engine]
#Thissectionconfigurestheengine.
[Engine]
#Thissectionconfigurestheengine.
[[Services]]
#Thesearetheservicestheengineshouldrun:
prep_services=weewx.engine.StdTimeSynch,
data_services=,
process_services=weewx.engine.StdConvert,weewx.engine.StdCalibrate,weewx.engine.StdQC,weewx.wxservices.StdWXCalculate,
user.cmon.ComputerMonitor

archive_services=weewx.engine.StdArchive,
restful_services=weewx.restx.StdStationRegistry,weewx.restx.StdWunderground,weewx.restx.StdPWSweather,
weewx.restx.StdCWOP,weewx.restx.StdWOW,weewx.restx.StdAWEKAS
report_services=weewx.engine.StdPrint,weewx.engine.StdReport

You might also like