Skip to content

Commit

Permalink
Removed debug output.
Browse files Browse the repository at this point in the history
  • Loading branch information
Daveiano committed Nov 2, 2023
1 parent 426e5bd commit 3344afb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
6 changes: 3 additions & 3 deletions skins/weewx-wdc/skin.conf
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 0 additions & 6 deletions skins/weewx-wdc/src/js/live-updates.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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")}`
Expand All @@ -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(
Expand Down

0 comments on commit 3344afb

Please sign in to comment.