Also, please add all of the fields required by WeatherBoard (see the README).
current.dateTime.raw current.windDir.ordinal_compass day.rain.sum current.dewpoint current.outTemp current.rainRate current.windSpeed current.windSpeed.raw 10m.windGust.max day.windGust.max You are missing current.windSpeed.raw. It looks like you have current.windSpeed twice. I think you meant one of them to be current.windSpeed.raw >> fields = current.dateTime.raw,current.windDir.ordinal_compass, day.rain.sum, >> current.dewpoint,current.outTemp, current.rainRate, >> current.windSpeed,day.windGust.max, 10m.windGust.max, current.windSpeed After you have fixed this, and with the loop-data.txt file you are sending, let’s see if there are missing observations. > On Jul 15, 2020, at 11:12 AM, John Kline <[email protected]> wrote: > > > > > Hi Christian, > > wee_extension should not have been using python2 if you did a python3 install > of weewx; but let’s put that aside. > > Of course, you should care that WeatherBoard is not updating on every loop > cycle, that’s the whole point of it. > > I might be better if you deleted all you have done manually and do a proper > install, but let’s try to work with what you have. > > Are you sure loop-data.txt is being generated? > > If in weewx.conf, under [Engine][[Services]], on the report_services line, do > you see user.loopdata.LoopData? > > Would you send me a copy of /var/www/html/weewx/loop-data.txt? > > Would you send me a directory listing of /var/www/html/weewx/weatherboard? > > Lastly, from your browser, would you bring up the JavaScript console and tell > me the error(s) you see? > >>> On Jul 15, 2020, at 10:53 AM, 'Christian Peters' via weewx-user >>> <[email protected]> wrote: >>> >> >> John, >> >> I struggeld installing the extension. I got: >> Traceback (most recent call last): >> File "/usr/share/weewx/wee_extension", line 13, in <module> >> import weecfg.extension >> File "/usr/share/weewx/weecfg/__init__.py", line 22, in <module> >> import configobj >> ImportError: No module named configobj >> >> ..but the module was installed! >> I then figured out that wee_extension uses python2 but not python3 so the >> module was missing in python 2! ;-) >> I treid to gove Python3 a try with weewx this time as I reinstalled it! >> I changed in we_extension the first line to >> >> #!/usr/bin/env python3 >> >> and it works. >> >> But first I installed the loop-data exxtension by hand...but I think all is >> in the right place as the loop-data.txt is build. >> >> The WeatherBoardReport section in weewx.conf: >> >> [[WeatherBoardReport]] >> HTML_ROOT = /var/www/html/weewx/weatherboard >> enable = true >> skin = WeatherBoard >> [[[Extras]]] >> meta_title = Live-Wetter Langenseifen, Hessen Weather at a >> Glance WeatherBoard™ >> title = Live-Wetter Langenseifen Hessen WeatherBoard™ >> subtitle = Fortlaufend aktualisiert. >> logo = "" >> loop_data_file = ../loop-data.txt >> contact_email = "" >> expiration_time = 4 >> page_update_pwd = foobar >> googleAnalyticsId = "" >> analytics_host = "" >> show_purple = False >> [[[Labels]]] >> [[[[Generic]]]] >> air_quality_index = Air Quality Index >> contact = Kontakt >> legend = Legende >> rain_today = Regen heute >> ten_min_max_gust = 10min Boee >> time_of_day = Uhrzeit >> high_gust_today = Booe max. >> [[[Units]]] >> [[[[StringFormats]]]] >> mile_per_hour = %.1f >> degree_C = %.1f >> km_per_hour = %.1f >> degree_F = %.1f >> >> This section I added at the end of weewx.conf by hand: >> >> # >> ==================================================================================== >> # Options for extension 'weewx-loopdata' >> >> [LoopData] >> [[FileSpec]] >> loop_data_dir = /var/www/html/weewx >> filename = loop-data.txt >> [[Formatting]] >> target_report = WeatherBoardReport >> [[RsyncSpec]] >> enable = false >> remote_server = foo.bar.com >> remote_user = root >> remote_dir = /var/www/html >> compress = False >> log_success = False >> ssh_options = -o ConnectTimeout=1 >> timeout = 1 >> skip_if_older_than = 3 >> [[Include]] >> fields = current.dateTime.raw, current.windDir.ordinal_compass, >> day.rain.sum, current.dewpoint, current.outTemp, current.rainRate, >> current.windSpeed, day.windGust.max, 10m.windGust.max, current.windSpeed >> >> But there is even a skin.conf at /etc/weew/skinWeatherboard/ ... >> >> # Copyright (C)2020 by John A Kline ([email protected]) >> # Distributed under the terms of the GNU Public License (GPLv3) >> # See LICENSE for your rights. >> >> [Extras] >> # Fill path of loop data file. If not a full path, >> # it will be interpreted as relative to this skin's HTML_ROOT. >> loop_data_file = '../loop-data.txt' >> >> # Refresh rate is the rate at which the report should refresh with >> # the latest readings. A good choice is the rate at which your >> # weather stations driver is feeing loop data. Expressed in units >> # of seconds. Default: 2 seconds. >> refresh_rate = 2 >> >> # Fill in a sutiable title/subtitle for the report. >> title = 'my-weather-website.com WeatherBoard™' >> subtitle = 'Updated continuously.' >> >> # If you have a log, specify it here. >> logo = '' >> >> # Fill in contact email to display on the report. >> contact_email = '[email protected]' >> >> # Choose your own password. without ?page_update_pwd='xxx' >> # at the end of the URL, auto updating will timeout. >> # Note: This password will be viaible to users looking >> # at page source in their browser. >> page_update_pwd = 'foobar' >> >> # Page expiration time is the number of hours the report will request >> # loop data and update. After which, a mouse clice will be needed >> # to start refreshing again. Default 4 hours. >> expiration_time = 4 >> >> # If you have a google analytics id, uncomment the following line >> # and fill in the ID. >> # googleAnalyticsId = >> # If you only want to use the ID on a certain host, uncomment the >> # following line and fill in the hostname. >> # analytics_host = www.example.com >> >> # If a PurpleAir sensor is set up and both weewx-purple and >> # purple-proxy are installed, or just weewx-purple is installed; >> # change the 'False' below to 'True'. >> # The weewx-purple extension can be found here: >> # https://github.com/chaunceygardiner/weewx-purple >> # The purple-proxy server can be found here: >> # https://github.com/chaunceygardiner/purple-proxy >> # It is preferable to install both weewx-purple and purple proxy >> # as the proxy returns averages over the archive period (as >> # opposed to one shot readings). >> show_purple = False >> >> [Labels] >> [[Generic]] >> # Some specialized labels >> air_quality_index = Air Quality Index >> contact = Contact >> legend = Legend >> rain_today = Rain Today >> ten_min_max_gust = 10m Gust >> time_of_day = Time >> high_gust_today = Today's High Gust >> >> [CheetahGenerator] >> encoding = html_entities >> [[ToDate]] >> [[[index]]] >> template = index.html.tmpl >> >> [CopyGenerator] >> copy_once = favicon.ico, weatherboard.css >> copy_always = , >> >> [Generators] >> generator_list = weewx.cheetahgenerator.CheetahGenerator, >> weewx.reportengine.CopyGenerator >> >> Do I have to care about!? >> >> The WeatherBoard site seems to update with the interval given in weewx (here >> 1min)....but the JS seems not to work? >> It's starnge too that there are some obersavervations missing and the time >> not catched and printed on the WB site...but Temp is changein (all 1min >> while refreshing)? >> >> Hope you could figure something out of my setting!? >> >> Thanks in advance! >> >> Christian >> >> Am Mittwoch, 15. Juli 2020 16:11:06 UTC+2 schrieb John Kline: >>> >>> Hi Christian, >>> >>> Please let me know what was tricky about installing loop-data. >>> >>> Since you are getting loop-data, I suspect that the LoopData extension and >>> the WeatherBoard extension don’t agree about where to find the >>> loop-data.txt file. >>> >>> Would you send both the LoopData section and the WeatherBoard section of >>> weewx.conf? >>> >>> Cheers, >>> John >>> >>>>> On Jul 15, 2020, at 5:16 AM, 'Christian Peters' via weewx-user >>>>> <[email protected]> wrote: >>>>> >>>> >>>> John, >>>> >>>> I just installed the loop-data extension and the weatherboard skin to give >>>> it a try. :-) >>>> A really nice extension. >>>> >>>> It was a bit tricky to install it but I hope loop-data is running. I get >>>> this >>>> /var/www/html/weewx/loop-data.txt file with this text: >>>> >>>> {"current.dateTime.raw": 1594814866, "current.windDir.ordinal_compass": >>>> "N", "day.rain.sum": "2,6 mm", "current.dewpoint": "11,3\u00b0C", >>>> "current.outTemp": "20,3\u00b0C", "current.rainRate": "0,0 mm/h", >>>> "current.windSpeed": "6,4 km/h", "day.windGust.max": "19,3 km/h", >>>> "10m.windGust.max": "11,3 km/h"} >>>> >>>> It updates every 2 sec, winddir for example changes....so it seems to work >>>> I think. >>>> >>>> What not works it the wartherboard skin. >>>> >>>> https://livewetter.hcpeters.de >>>> >>>> It doesn't update (only if I do a manual refresh on the borwser and not >>>> every time it really refreshes to the most recent values). >>>> and there is something not working as the time field is missing, even >>>> 10m.windGust.max and day.windGust.max ... see screenshot. >>>> >>>> Am I doing something wrong? I got the most recent .zip files from your >>>> site (today). But I'm not sure where to tweak the weatherboard skin ( in >>>> weewx.conf or in weatherboard/skin/skin.conf ) ? >>>> >>>> Thanks in advance for any idea or hint! >>>> >>>> Regards, >>>> >>>> Christian >>>> >>>> >>>> >>>> >>>> >>>> -- >>>> 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 [email protected]. >>>> To view this discussion on the web visit >>>> https://groups.google.com/d/msgid/weewx-user/adaaa9c1-dbdd-4534-bda8-784875ce2103o%40googlegroups.com. >>>> <weatherboard.png> >> >> -- >> 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 [email protected]. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/weewx-user/155cc6a5-2234-44a0-94f2-99f6fbda1057o%40googlegroups.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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/404CD56F-8C34-4DA5-85FC-F6F984A624EC%40johnkline.com.
