--
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.
For more options, visit https://groups.google.com/d/optout.
Just a query asking if it is a setting I missed, but I see no wind chill display. Secondly, and this is just a thought from a cosmetic standpoint, but the possible inclusion of a background "watermark" for aesthetics. (snow for the winter, etc) Thought I had it accomplished on my reports but every ftp update wrote over my changes (sigh). Still and all, I am quite satisfied with how weather.w0avq.org looks.
--
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.
For more options, visit https://groups.google.com/d/optout.
Would be convenient to have it on the "front page" with the
"normal" temp.
BTW, if you look on my weather page ( weather.w0avq.org
) and click on "about" you can see what I mean about a "watermark"
for the site. Was just thinking out loud that it would be nice to
do if it weren't too much of a hassle.
Subject: | Re: [weewx-user] Re: Belchertown Skin 0.8.1 released |
---|---|
Date: | Sun, 9 Dec 2018 08:19:58 -0600 |
From: | John Clark <w0a...@gmail.com> |
To: | weewx...@googlegroups.com |
Would be convenient to have it on the "front page" with the
"normal" temp.
Hi John
I see wind chill on your charts/graphs, were you looking to have it someplace else?
73Colin, ZL2ARL
On Sun, 9 Dec 2018, 22:34 John Clark <w0a...@gmail.com wrote:
Just a query asking if it is a setting I missed, but I see no wind chill display. Secondly, and this is just a thought from a cosmetic standpoint, but the possible inclusion of a background "watermark" for aesthetics. (snow for the winter, etc) Thought I had it accomplished on my reports but every ftp update wrote over my changes (sigh). Still and all, I am quite satisfied with how weather.w0avq.org looks.
On 12/8/2018 8:04 PM, Pat wrote:
--
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.
For more options, visit https://groups.google.com/d/optout.
Fair enough. I use Gimp to make them 60% transparent so it
doesn't distract from the info. Wanted to try, and if I don't like
it, I won't use it.
import schemas.wview schema_with_apptemp = schemas.wview.schema + [('appTemp', 'REAL')]
Then modify weewx.conf to have:
[DataBindings] [[wx_binding]] database = archive_sqlite table_name = archive manager = weewx.wxmanager.WXDaySummaryManager schema = user.belchertown.schema_with_apptemp
I like to think of 'feels like' as being a term that means different things to different people and without an agreed understanding can be a source of confusion. It really is just a general term that tries to better approximate the effect of current weather conditions on the body, it could be based on a measure of heatindex, windchill, humidex, wet bulb globe temperature or apparent temperature. For me in Australia I think of apparent temperature, I expect in Canada humidex may be a more accepted measurement.
The use of the term 'apparent temperature' can also be confusing at times; does it refer to the accepted formula for Apparent Temperature (as you linked or as used by weeWX) or is it the more literal meaining. For this reason I prefer to refer to something like the 'weeWX appTemp field' or 'Apparent Temperature' to make it clear I am referring to the calculated value.
Gary
Dec 10 09:55:50 ftp weewx[13683]: reportengine: Caught unrecoverable exception in generator weewx.cheetahgenerator.CheetahGenerator
Dec 10 09:55:50 ftp weewx[13683]: **** no such column: appTemp
Dec 10 09:55:50 ftp weewx[13683]: **** Traceback (most recent call last):
Dec 10 09:55:50 ftp weewx[13683]: **** File "/home/weewx/bin/weewx/reportengine.py", line 239, in run
Dec 10 09:55:50 ftp weewx[13683]: **** obj.start()
Dec 10 09:55:50 ftp weewx[13683]: **** File "/home/weewx/bin/weewx/reportengine.py", line 273, in start
Dec 10 09:55:50 ftp weewx[13683]: **** self.run()
Dec 10 09:55:50 ftp weewx[13683]: **** File "/home/weewx/bin/weewx/cheetahgenerator.py", line 158, in run
Dec 10 09:55:50 ftp weewx[13683]: **** ngen = self.generate(gen_dict[section_name], self.gen_ts)
Dec 10 09:55:50 ftp weewx[13683]: **** File "/home/weewx/bin/weewx/cheetahgenerator.py", line 232, in generate
Dec 10 09:55:50 ftp weewx[13683]: **** ngen += self.generate(section[subsection], gen_ts)
Dec 10 09:55:50 ftp weewx[13683]: **** File "/home/weewx/bin/weewx/cheetahgenerator.py", line 232, in generate
Dec 10 09:55:50 ftp weewx[13683]: **** ngen += self.generate(section[subsection], gen_ts)
Dec 10 09:55:50 ftp weewx[13683]: **** File "/home/weewx/bin/weewx/cheetahgenerator.py", line 320, in generate
Dec 10 09:55:50 ftp weewx[13683]: **** default_binding)
Dec 10 09:55:50 ftp weewx[13683]: **** File "/home/weewx/bin/weewx/cheetahgenerator.py", line 372, in _getSearchList
Dec 10 09:55:50 ftp weewx[13683]: **** searchList += obj.get_extension_list(timespan, db_lookup)
Dec 10 09:55:50 ftp weewx[13683]: **** File "/home/weewx/bin/user/belchertown_highchartsSearchX.py", line 85, in get_extension_list
Dec 10 09:55:50 ftp weewx[13683]: **** (time_start_vt, time_stop_vt, appTemp_vt) = db_lookup().getSqlVectors(TimeSpan(_start_ts, _end_ts), 'appTemp')
Dec 10 09:55:50 ftp weewx[13683]: **** File "/home/weewx/bin/weewx/manager.py", line 512, in getSqlVectors
Dec 10 09:55:50 ftp weewx[13683]: **** aggregate_type, aggregate_interval)
Dec 10 09:55:50 ftp weewx[13683]: **** File "/home/weewx/bin/weewx/manager.py", line 775, in _getSqlVectors
Dec 10 09:55:50 ftp weewx[13683]: **** for _rec in _cursor.execute(sql_str, (startstamp, stopstamp)):
Dec 10 09:55:50 ftp weewx[13683]: **** File "/home/weewx/bin/weedb/sqlite.py", line 41, in guarded_fn
Dec 10 09:55:50 ftp weewx[13683]: **** raise weedb.NoColumnError(e)
Dec 10 09:55:50 ftp weewx[13683]: **** NoColumnError: no such column: appTemp
Dec 10 09:55:50 ftp weewx[13683]: **** Generator terminated
Dec 10 09:55:50 ftp weewx[13683]: copygenerator: copied 0 files to /home/weewx/public_html/weather
Dec 10 09:55:50 ftp weewx[13683]: **** raise weedb.NoColumnError(e)
Dec 10 09:55:50 ftp weewx[13683]: **** NoColumnError: no such column: appTemp
Dec 10 09:55:50 ftp weewx[13683]: **** Generator terminated
Dec 10 09:55:50 ftp weewx[13683]: copygenerator: copied 0 files to /home/weewx/public_html/weather
Dec 10 09:55<span style="color: #660;" class="styled-by-prettif
--
Yes, in fact followed your guide above.
The Feels like shows in the temp display, but when enabled in charts you get the error.
import schemas.wview
schema_apptemp = schemas.wview.schema + [('appTemp', 'REAL')]
[DataBindings]
[[wx_binding]]
# The database must match one of the sections in [Databases].
# This is likely to be the only option you would want to change.
database = archive_sqlite
# The name of the table within the database
table_name = archive
# The manager handles aggregation of data for historical summaries
manager = weewx.wxmanager.WXDaySummaryManager
# The schema defines the structure of the database.
# It is *only* used when the database is created.
#schema = schemas.wview.schema
schema = user.extensions.schema_apptemp
navigator: { enabled: true },
navigator: {
enabled: false
},
--
Traceback (most recent call last):
File "/usr/bin/wee_database", line 793, in <module>
main()
File "/usr/bin/wee_database", line 133, in main
config_path, config_dict = weecfg.read_config(options.config_path, args)
File "/usr/share/weewx/weecfg/__init__.py", line 223, in read_config
config_dict = configobj.ConfigObj(config_path, file_error=True)
File "/usr/lib/python2.7/dist-packages/configobj.py", line 1229, in __init__
self._load(infile, configspec)
File "/usr/lib/python2.7/dist-packages/configobj.py", line 1318, in _load
raise error
configobj.DuplicateError: Duplicate keyword name at line 401.
Dj,(I deleted the first version of this post as I left out a trailing "]" in step 1).This is from instructions Pat gave me in the past to extend the schema:
1) Extend the databasenano /usr/share/weewx/user/extensions.pythen add the following:
import schemas.wview
schema_apptemp = schemas.wview.schema + [('appTemp', 'REAL')]
2) Stop weewx and edit weewx.conf to tell it to use this new schema extension by adding the schema = line below to the [DataBindings] stanza:[DataBindings]
[[wx_binding]]
...
schema = user.extensions.schema_apptemp3) Create a new copy of the database with the extended schemawee_database weewx.conf --reconfigureand then rename the databases4) Rebuild the database with new daily values
Sudo wee_database --rebuild-daily5) restart weewxphil
On Sunday, December 9, 2018 at 4:27:23 PM UTC-5, Dj Merrill wrote:Please forgive my ignorance. It is not clear after reading the instructions on extending the database precisely what I should do in this case. Obviously we don't have an "user/electricity.py" file, but we do have a "user/belchertown.py" file.Should I modify the "belchertown.py" file with something like:import schemas.wview schema_with_apptemp = schemas.wview.schema + [('appTemp', 'REAL')]
Then modify weewx.conf to have:
[DataBindings] [[wx_binding]] database = archive_sqlite table_name = archive manager = weewx.wxmanager.WXDaySummaryManager schema = user.belchertown.schema_with_apptempI am using SQLlite so I believe I can skip step 3.Then, "wee_database weewx.conf --reconfigure" and rename the databases?Thanks,-Dj
I tried adding 1 at a time but it deletes the previous one. Certainly you should be able to add more then just 1 right ?
schema = user.extensions.schema_windrun
# sqlite3 weewx.sdb_new
SQLite version 3.16.2 2017-01-06 16:32:41
Enter ".help" for usage hints.
sqlite> .schema archive
CREATE TABLE archive (`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, `appTemp` REAL, `windRun` REAL);
sqlite> .exit
[[MQTT]]
server_url = mqtt://weewx:xxx...@127.0.0.1:1883/
topic = weather/#
unit_system = US
binding = archive, loop
aggregation = aggregate
persistence false
allow_anonymous true
password_file /etc/mosquitto/passwd
acl_file /etc/mosquitto/acl
listener 1883 localhost
listener 8883
protocol mqtt
# websockets
listener 9001
protocol websockets
# Allow anonymous access to the sys
topic read $SYS/#
# Allow anonymous to read weather
topic read weather/#
# weewx readwrite to the loop
user weewx
topic weather/#
mosquitto_pub -h localhost -t "weather/test" -m "hello world. this is to the weather topic with authentication" -u weewx -P xxxxxx
Dec 26 23:19:39 raspberrypi weewx[6544]: restx: MQTT: Published record 2018-12-26 23:19:39 PST (1545895179)
Dec 26 23:19:45 raspberrypi weewx[6544]: restx: MQTT: Published record 2018-12-26 23:19:45 PST (1545895185)
listener 1883
protocol mqtt
topic = weather/#
unit_system = US
binding = archive, loop
aggregation = aggregate
persistence false
allow_anonymous true
password_file /etc/mosquitto/passwd
acl_file /etc/mosquitto/acl
listener 1883
protocol mqtt
# websockets
listener 9001
protocol websockets
Ok so my weewx.conf looks like this now....
Ok so my weewx.conf looks like this now....
[[Belchertown]]
HTML_ROOT = /home/weewx/public_html/Nettleton
skin = Nettleton
[[[Extras]]]
belchertown_root_url = http://www.nettletondistrict.com/Nettleton
logo_image = http://www.nettletondistrict.com/Nettleton/images/map_of_spokane_wa.jpg
site_title = Nettleton District Weather Station
footer_copyright_text = "Nettleton District Weather Station, Spokane, Washington"
radar_html = "<img src='http://radar.weather.gov/lite/N0R/OTX_loop.gif'>"
mqtt_enabled = 1
show_apptemp = 1
show_windrun = 1
highcharts_show_apptemp = 1
forecast_enabled = 1
darksky_secret_key = XXXXXX
earthquake_enabled = 1
facebook_enabled = 1
twitter_enabled = 1
graphs_page_header = "Weather Observation Graphs"
records_page_header = "Weather Observation Records"
reports_page_header = "Weather Observation Reports"
about_page_header = "About This Weather Station"
mqtt_enabled = 1
mqtt_host = 192.168.0.4
mqtt_topic = weather/#
mqtt_port = 1883
mqtt_ssl = 0
disconnect_live_website_visitor = 1800000
--
You received this message because you are subscribed to a topic in the Google Groups "weewx-user" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/weewx-user/ARBHWDXiDpQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to weewx-user+...@googlegroups.com.
--
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.
# MQTT Defaults
mqtt_enabled = 1
mqtt_host = "41south.net.nz"
mqtt_port = 9001
mqtt_ssl = 0
mqtt_topic = "weather/41south/loop"
disconnect_live_website_visitor = 1800000
For more options, visit <a href="https://groups.google.com/d/optout" target="_blank" rel="nofollow" onmousedown="this.href='https://groups.google.com/d/optout';return true;" onclick="this.href='https://groups.google.com/d/opto