spatie/laravel-dashboard-time-weather-tile
Time & Weather Tile for Spatie Laravel Dashboard. Shows the current time and local weather on your dashboard, with simple setup and configuration. Ideal for wall-mounted displays and status screens.
config/app.timezone, reducing manual configuration and edge cases for global teams.spatie/laravel-dashboard (v3.x+).Dashboard::tiles().^4.0) and test upgrades in staging.DashboardServiceProvider, integrating seamlessly with Spatie’s dashboard.config system for API keys, units, and timezone settings.config('dashboard-time-weather-tile.weather_provider').Cache::remember()).spatie/laravel-dashboard (v3.x+) if not already present.spatie/laravel-dashboard-time-weather-tile via Composer.php artisan vendor:publish --provider="Spatie\DashboardTimeWeatherTile\DashboardTimeWeatherTileServiceProvider"..env:
DASHBOARD_WEATHER_API_KEY=your_openweathermap_key
config/app.timezone):
'timezone' => 'America/New_York',
app/Providers/DashboardServiceProvider.php:
public function tiles()
{
return [
\Spatie\DashboardTimeWeatherTile\DashboardTimeWeatherTile::class,
// ... other tiles
];
}
.env periodically (automate via CI/CD).Spatie\DashboardTimeWeatherTile\Exceptions\WeatherApiException).config/app.timezone and user-specific overrides.| Failure | Impact | Mitigation |
|---|---|---|
| Weather API downtime | Tile shows broken UI or error. | Cache last known weather; show placeholder. |
| Invalid API key | Tile fails to load. | Validate key on startup; alert admins. |
| Timezone misconfiguration | Incorrect time display. | Default to config/app.timezone. |
| Rate limit exceeded | Weather data stale or missing. | Implement exponential backoff. |
| Dashboard upgrade | Tile breaks if not compatible. | Pin to stable minor version. |
How can I help you explore Laravel packages today?