From 39389d04d50100cbe3fc2480f1e5d2095cecae92 Mon Sep 17 00:00:00 2001 From: HolgerHatGarKeineNode Date: Fri, 31 Mar 2023 18:23:43 +0200 Subject: [PATCH] mempool weather added --- .../livewire/banner/mempool-weather.blade.php | 44 +++++++++++++++---- 1 file changed, 36 insertions(+), 8 deletions(-) diff --git a/resources/views/livewire/banner/mempool-weather.blade.php b/resources/views/livewire/banner/mempool-weather.blade.php index d047ed1e..1f8ec2a3 100644 --- a/resources/views/livewire/banner/mempool-weather.blade.php +++ b/resources/views/livewire/banner/mempool-weather.blade.php @@ -10,7 +10,28 @@
-
+
+
+ + + Blockhöhe + +
{{ $weather }} (um {{ \App\Support\Carbon::parse($changed)->asTime() }} Uhr aktualisiert - stündlich)
@@ -28,15 +49,21 @@ hostname: 'mempool.space' }); const ws = websocket.initClient({ - options: ['stats'], + options: ['blocks', 'stats', 'mempool-blocks', 'live-2h-chart'], }); ws.addEventListener('message', function incoming({data}) { const res = JSON.parse(data.toString()); - that.fastestFee = res.fees.fastestFee; - that.halfHourFee = res.fees.halfHourFee; - that.hourFee = res.fees.hourFee; - that.economyFee = res.fees.economyFee; - that.minimumFee = res.fees.minimumFee; + if (res.block) { + console.log(res.block); + } + if (res.fees) { + that.fastestFee = res.fees.fastestFee; + that.halfHourFee = res.fees.halfHourFee; + that.hourFee = res.fees.hourFee; + that.economyFee = res.fees.economyFee; + that.minimumFee = res.fees.minimumFee; + console.log(res.fees); + } }); }; init(); @@ -46,7 +73,8 @@