Dato nuevo en la estructura de la tabla mysql

29 views
Skip to first unread message

jose riaño

unread,
Mar 18, 2020, 11:38:05 AM3/18/20
to weewx-user
Buenos días


Quiero agregar un dato nuevo a la estructura de la tabla  weewx:

por ejemplo 
mi tabla 


CREATE TABLE Tabla (`dateTime` INTEGER NOT NULL UNIQUE PRIMARY KEY, `usUnits` INTEGER NOT NULL, `interval` INTEGER NOT NULL,  `barometer` REAL, `pressure` REAL, `altimeter` REAL, `inTemp` REAL, `outTemp` REAL, `inHumidity` REAL, `outHumidity` REAL, `windSpeed` REAL, `windDir` REAL, `windGust` REAL, `windGustDir` REAL, `rainRate` REAL, `rain` REAL, `dewpoint` REAL, `windchill` REAL, `heatindex` REAL,  `ET` REAL, `radiation` REAL, `UV` REAL, `extraTemp1` REAL,  `extraTemp2` REAL, `extraTemp3` REAL, `soilTemp1` REAL,  `soilTemp2` REAL, `soilTemp3` REAL, `soilTemp4` REAL,  `leafTemp1` REAL, `leafTemp2` REAL, `extraHumid1` REAL,  `extraHumid2` REAL, `soilMoist1` REAL, `soilMoist2` REAL,  `soilMoist3` REAL, `soilMoist4` REAL, `leafWet1` REAL, `leafWet2` REAL,  `rxCheckPercent` REAL, `txBatteryStatus` REAL,  `consBatteryVoltage` REAL, `hail` REAL, `hailRate` REAL,  `heatingTemp` REAL, `heatingVoltage` REAL, `supplyVoltage` REAL,  `referenceVoltage` REAL, `windBatteryStatus` REAL,  `rainBatteryStatus` REAL, `outTempBatteryStatus` REAL,  `inTempBatteryStatus` REAL);

en que archivo de código fuente encuentro esta estructura ??


lo que quiero es que tenga un identificador la tabla  para si identificar mi estación..


gracias  






Thomas Keffer

unread,
Mar 18, 2020, 3:02:15 PM3/18/20
to weewx-user
See the section Adding a new type to the database in the Customizing Guide for instructions on how to add new fields to the database.

--
You received this message because you are subscribed to the Google Groups "weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to weewx-user+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/f2867ab5-6787-43a8-a251-77efc6977923%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages