diff --git a/skins/weewx-wdc/skin.conf b/skins/weewx-wdc/skin.conf index f460c54..c405845 100644 --- a/skins/weewx-wdc/skin.conf +++ b/skins/weewx-wdc/skin.conf @@ -39,10 +39,10 @@ SKIN_VERSION = 3.3.0 # For instructions, see https://github.com/Daveiano/weewx-wdc/wiki/Support-for-weewx-mqtt [[mqtt]] - mqtt_websockets_enabled = 1 - mqtt_websockets_host = "mqtt.weewx-hbt.de" + mqtt_websockets_enabled = 0 + mqtt_websockets_host = "localhost" mqtt_websockets_port = 9001 - mqtt_websockets_ssl = 1 + mqtt_websockets_ssl = 0 mqtt_websockets_topic = "weather/loop" # For instructions, see https://github.com/Daveiano/weewx-wdc/wiki/Webcams-and-Externals-Page diff --git a/skins/weewx-wdc/src/js/live-updates.ts b/skins/weewx-wdc/src/js/live-updates.ts index 32103f9..93526bc 100644 --- a/skins/weewx-wdc/src/js/live-updates.ts +++ b/skins/weewx-wdc/src/js/live-updates.ts @@ -469,8 +469,6 @@ const onConnectionLost = (responseObject: any) => { const onMessageArrived = (message: Message) => { const payLoad = JSON.parse(message.payloadString); - console.log(payLoad); - notfication!.setAttribute( "subtitle", `Last update was ${dayjs.unix(payLoad.dateTime).format("HH:mm:ss")}` @@ -491,16 +489,12 @@ const onMessageArrived = (message: Message) => { : null; let dayChange = false; - console.log("lastUpdate_formatted", lastUpdate_formatted); - console.log(dayjs.unix(parseInt(payLoad.dateTime)).format("YYYY-MM-DD")); - // Day changed, reset min/max/sum. if ( lastUpdate_ts && lastUpdate_formatted !== dayjs.unix(payLoad.dateTime).format("YYYY-MM-DD") ) { dayChange = true; - console.log("MQTT WS: Day changed, resetting min/max/sum for ." + key); } localStorage.setItem(