spatie/laravel-dashboard-coffee-tile
Laravel Dashboard tile that displays coffee brewing stats. Publish migrations, add the Livewire coffee-tile component, then post brew events to the included CoffeeController endpoint (auth up to you). Supports an optional total offset for existing counts.
spatie/laravel-dashboard (v1.0+).spatie/laravel-dashboard (v1.0+). Tile system is modular and follows Laravel conventions (Blade components, API routes).| Component | Requirement |
|---|---|
| Backend | Laravel 8/9, PHP 8.0+ |
| Dashboard | spatie/laravel-dashboard (v1.0+) |
| Hardware | Raspberry Pi (or equivalent) + microphone near coffee machine |
| Python | dashboard-coffee-listener script (Python 3.x) |
| Network | Pi must communicate with Laravel app (HTTP API or direct DB writes) |
spatie/laravel-dashboard if not already present.php artisan vendor:publish --tag=laravel-dashboard-coffee-tile
config/laravel-dashboard.php:
'tiles' => [
\Spatie\DashboardCoffeeTile\CoffeeTile::class,
],
coffee_stats) or exposes an API endpoint.coffee_stats table for anomalies (e.g., missing entries).| Failure Scenario | Impact | Mitigation Strategy |
|---|---|---|
| Raspberry Pi offline | Dashboard shows stale data | Add redundancy (e.g., secondary Pi or manual backup) |
| Python script crashes | No new data ingested | Implement process manager (e.g., PM2, systemd) |
| Network failure (Pi ↔ Laravel) | Data ingestion halted | Use local DB on Pi + periodic sync |
| Coffee machine audio changes | False positives/negatives in detection | Retrain Python script or add manual override |
| Database corruption | Inaccurate statistics | Regular backups + data validation checks |
How can I help you explore Laravel packages today?