Hi, the MQTT config for the skin is for the JavaScript MQTT client that is
running in the browser window. This client needs a websocket connection, so
it will only work with a websocket enabled MQTT server. This MQTT client
configuration is totally independent from the one that is publishing your
loop data. It may be the same server, but still: totally independent. But
be aware that your config will only work within your private LAN. I suggest
to get a free flespi account, depending on the traffic on your site, a free
account should be sufficient for private use. Flespi lets you configure
access tokens for your needs, like a "subscribe-only" token for the browser
MQTT client.
This one:
DEBUG user.gaugeengine: GaugeGenerator: Cannot decode reading of 'None' for
gauge 'windDir'
Simply means the is nor reading for windDir, this usually the case when
winds are calm.
But this one:
DEBUG user.gaugeengine: GaugeGenerator: Cannot decode reading of 'None' for
gauge 'outTemp'
is a little bit confusing, because normally there should be an "outTemp"
reading. So either there is really no reading because you Device didn't
send such a value, or your outTemp is mapped to another database column.
The last one:
The key for
[Bootstraplabels]
[[history_tables]]
max_wind =
is missing. Indeed there is no such key in skin.conf. Simply add it in
skin.conf, or in the configured[language].conf in skins/languages. I didn't
recognize this so far, because I use skins/languages/german.conf and there
is a key for "max_wind".
you can set your language in skin.conf:
[Language]
#
# Set a language below and labels will be overridden with any that are
specified in
# skins/languages/[language].conf
#
# Choices are: catala, dutch, espanol, finnish, francais, italian,
german, korean, norwegian
language = german
Michael schrieb am Mittwoch, 24. Februar 2021 um 17:46:00 UTC+1:
> A working MQTT environment already exists.
> The MQTT configuration was a bit bumpy because I wanted to use the
> following connection: broker_connection = mqtt://192.168.178.15:1883
> Only the following setting brought success: broker_connection = ws://
> 192.168.178.15:9001
> Afterwards I adjusted the topic and for [LiveGauges] and [LiveCharts]
> changed the value for payload_key
> And now the live display works :)
> I find several lines within one second in the logfile of DEBUG
> user.gaugeengine very confusing:
> DEBUG user.gaugeengine: GaugeGenerator: Cannot decode reading of 'None'
> for gauge 'windDir' or
> DEBUG user.gaugeengine: GaugeGenerator: Cannot decode reading of 'None'
> for gauge 'outTemp'.
>
> Furthermore, I have the following error message in the log:
>
> Feb 24 17:19:27 weewx-test weewx[8495] ERROR weewx.cheetahgenerator:
> Generate failed with exception '<class 'NameMapper.NotFound'>'
> Feb 24 17:19:27 weewx-test weewx[8495] ERROR weewx.cheetahgenerator: ****
> Ignoring template /home/weewx/skins/Bootstrap/history.html.tmpl
> Feb 24 17:19:27 weewx-test weewx[8495] ERROR weewx.cheetahgenerator: ****
> Reason: cannot find 'max_wind' while searching for
> 'BootstrapLabels.history_tables.max_wind'
> Feb 24 17:19:27 weewx-test weewx[8495] ERROR weewx.cheetahgenerator: ****
> Traceback (most recent call last):
> Feb 24 17:19:27 weewx-test weewx[8495] ERROR weewx.cheetahgenerator:
> **** File "/home/weewx/bin/weewx/cheetahgenerator.py", line 323, in
> generate
> Feb 24 17:19:27 weewx-test weewx[8495] ERROR weewx.cheetahgenerator:
> **** unicode_string = compiled_template.respond()
> Feb 24 17:19:27 weewx-test weewx[8495] ERROR weewx.cheetahgenerator:
> **** File "_home_weewx_skins_Bootstrap_history_html_tmpl.py", line 198,
> in respond
> Feb 24 17:19:27 weewx-test weewx[8495] ERROR weewx.cheetahgenerator: ****
> NameMapper.NotFound: cannot find 'max_wind' while searching for
> 'BootstrapLabels.history_tables.max_wind'
> Feb 24 17:19:27 weewx-test weewx[8495] INFO weewx.cheetahgenerator:
> Generated 10 files for report HTMLPages in 1.03 seconds
> Feb 24 17:19:27 weewx-test weewx[8495] INFO weewx.reportengine: Copied 0
> files to /var/www/html/weewx/Bootstrap
> Feb 24 17:19:27 weewx-test weewx[8495] DEBUG weewx.reportengine: Report
> 'FTP' not enabled. Skipping.
> Feb 24 17:19:27 weewx-test weewx[8495] DEBUG weewx.reportengine: Report
> 'RSYNC' not enabled. Skipping.
>
>
--
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/030d9eed-9bf1-4fbb-bf1c-2a984f423004n%40googlegroups.com.