table = [('dateTime', 'INTEGER NOT NULL UNIQUE PRIMARY KEY'),('usUnits', 'INTEGER NOT NULL'),('interval', 'INTEGER NOT NULL'),('outTemp', 'REAL'),('comments', 'TEXT')]
day_summaries = [('outTemp', 'scalar'), ('comments', 'scalar')]schema = {'table': table,'day_summaries' : day_summaries}
[Accumulator][[comments]]accumulator = firstlast
<p>Details: $current.comments, last recorded at $day.comments.last</p>
In the Weewx DB, the column data types are primary Real or Integer but is it possible to store data as Text?
--
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/faf66dd7-7e4a-45fa-9737-6f0094024c88n%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/c4c792b5-c214-446e-9e4b-6d76dbc14aabn%40googlegroups.com.
Mr. Keffer:
As far as defining additional items to put into the Sqlite database associated with WeeWx, other than the required items for WeeWx to work, is there an expected order in the data base columns, or may one insert a required column as needed, such as a new column for snow depth, or voltage gradient, right after what has already been defined, no particular order required?
Sometimes there are rules from those who write and maintain the software like Sqlite, and then sometimes there are conventions used by those who modify or write new code for a program such as WeeWx.
Again, curious, quite a way from doing any serious writing yet.
Dale
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/CAPq0zEA%3D%2Bkt_kQw0QUpCVCcu85LfsJbqsD%3Dc4bsQ0_PSeU0DtA%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/be7ea2ed-51c5-4f1b-bf21-d37f8d2c0898n%40googlegroups.com.
[Accumulator][[comfort_level]]accumulator = firstlastextractor = last[[lightning_frequency]]accumulator = firstlastextractor = last
<p>Current = $current.comfort_level.raw</p><p>First string of the day = $day.comfort_level.first.raw</p><p>Last string = $day.comfort_level.last.raw</p>
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/9e0b1921-f0bc-4c1e-8dd4-09a32bd63610n%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/3d113ef1-7ffb-4314-ba5a-be576b322538n%40googlegroups.com.