Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion app/Listeners/ProcessCompletedSpeedtest.php
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ private function notifyAppriseChannels(Result $result): void
}

Notification::route('apprise_urls', $channelUrl)
->notify(new SpeedtestNotification($title, $body, 'info'));
->notify(new SpeedtestNotification($title, $body, 'info', 'markdown'));
}
}

Expand Down
2 changes: 1 addition & 1 deletion app/Listeners/ProcessUnhealthySpeedtest.php
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ private function notifyAppriseChannels(Result $result): void
}

Notification::route('apprise_urls', $channelUrl)
->notify(new SpeedtestNotification($title, $body, 'warning'));
->notify(new SpeedtestNotification($title, $body, 'warning', 'markdown'));
}
}

Expand Down
4 changes: 3 additions & 1 deletion app/Notifications/Apprise/SpeedtestNotification.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ public function __construct(
public string $title,
public string $body,
public string $type = 'info',
public string $format = 'markdown',
) {}

/**
Expand All @@ -35,6 +36,7 @@ public function toApprise(object $notifiable): AppriseMessage
->urls($notifiable->routes['apprise_urls'])
->title($this->title)
->body($this->body)
->type($this->type);
->type($this->type)
->format($this->format);
}
}
8 changes: 6 additions & 2 deletions app/Notifications/Apprise/TestNotification.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,14 @@ public function via(object $notifiable): array
*/
public function toApprise(object $notifiable): AppriseMessage
{
$body = '👋 This is a test notification from **'.config('app.name')."**.\n\n";
$body .= "If you're seeing this, your Apprise notification channel is configured correctly!\n\n";

return AppriseMessage::create()
->urls($notifiable->routes['apprise_urls'])
->title('Test Notification')
->body('👋 Testing the Apprise notification channel.')
->type('info');
->body($body)
->type('info')
->format('markdown');
}
}
4 changes: 2 additions & 2 deletions config/speedtest.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
/**
* General settings.
*/
'build_date' => Carbon::parse('2025-12-06'),
'build_date' => Carbon::parse('2025-12-08'),

'build_version' => 'v1.12.2',
'build_version' => 'v1.12.3',

'content_width' => env('CONTENT_WIDTH', '7xl'),

Expand Down
22 changes: 12 additions & 10 deletions resources/views/apprise/speedtest-completed.blade.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
A new speedtest on {{ config('app.name') }} was completed using {{ $service }}.
A new speedtest on **{{ config('app.name') }}** was completed using **{{ $service }}**.

Server name: {{ $serverName }}
Server ID: {{ $serverId }}
ISP: {{ $isp }}
Ping: {{ $ping }}
Download: {{ $download }}
Upload: {{ $upload }}
Packet Loss: {{ $packetLoss }} %
Ookla Speedtest: {{ $speedtest_url }}
URL: {{ $url }}
### Results
- **Server:** {{ $serverName }} (ID: {{ $serverId }})
- **ISP:** {{ $isp }}
- **Ping:** {{ $ping }}
- **Download:** {{ $download }}
- **Upload:** {{ $upload }}
- **Packet Loss:** {{ $packetLoss }}%

### Links
- [View Ookla Results]({{ $speedtest_url }})
- [View Dashboard]({{ $url }})
15 changes: 10 additions & 5 deletions resources/views/apprise/speedtest-threshold.blade.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
A new speedtest on **{{ config('app.name') }}** was completed using **{{ $service }}** on **{{ $isp }}** but a threshold was breached.

A new speedtest on **{{ config('app.name') }}** was completed using **{{ $service }}** on **{{ $isp }}** but a threshold was breached
### Failed Metrics
@foreach ($metrics as $item)
- **{{ $item['name'] }}** {{ $item['threshold'] }}: {{ $item['value'] }}
- **{{ $item['name'] }}**
- **Threshold:** {{ $item['threshold'] }} | **Actual:** {{ $item['value'] }}
@endforeach
- **Ookla Speedtest:** {{ $speedtest_url }}
- **URL:** {{ $url }}
### Server Information
- **Server:** {{ $serverName }} (ID: {{ $serverId }})
- **ISP:** {{ $isp }}
### Links
- [View Ookla Results]({{ $speedtest_url }})
- [View Dashboard]({{ $url }})