Skip to content

Commit

Permalink
fixed undefined function
Browse files Browse the repository at this point in the history
  • Loading branch information
mKainzbauer committed May 21, 2022
1 parent ac2bc4e commit 9533e76
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions skins/Bootstrap/js/site.js
Original file line number Diff line number Diff line change
Expand Up @@ -325,8 +325,8 @@ function asyncReloadWeewxData() {
return u.json();
}).then(function (serverData) {
weewxData = serverData;
if(typeof loadGauges === "function" && typeof loadCharts === "function") {
loadGauges();
loadGauges();
if(typeof loadCharts === 'function') {
loadCharts();
}
}).catch(err => {
Expand Down
16 changes: 8 additions & 8 deletions skins/Bootstrap/skin.conf
Original file line number Diff line number Diff line change
Expand Up @@ -451,14 +451,14 @@
locale = en_US # change to your needs
[[MQTT]]
[[[connections]]]
[[[[public_mqtt]]]]
broker_connection = wss://test.mosquitto.org:8081 # wss (encrypted) websocket connection
[[[[[topics]]]]]
# JSON topics hold their value(s) in a JSON object. Every key can be matched to a gauge/chart dataset will work with weewx-mqtt, see: https://github.com/weewx/weewx/wiki/mqtt
[[[[[[weather/loop]]]]]]
type = JSON
[[[[[[weather/anothertopic]]]]]]
type = JSON
#[[[[public_mqtt]]]]
# broker_connection = wss://test.mosquitto.org:8081 # wss (encrypted) websocket connection
# [[[[[topics]]]]]
# # JSON topics hold their value(s) in a JSON object. Every key can be matched to a gauge/chart dataset will work with weewx-mqtt, see: https://github.com/weewx/weewx/wiki/mqtt
# [[[[[[weather/loop]]]]]]
# type = JSON
# [[[[[[weather/anothertopic]]]]]]
# type = JSON
#[[[[my_mqtt_with_public_tokens]]]]
# broker_connection = wss://mqtt.flespi.io:443 # wss (encrypted)
# mqtt_username = my_public_token # data is exposed to frontend! make sure you use data that is not confidential, like tokens with ACL
Expand Down

0 comments on commit 9533e76

Please sign in to comment.