A tile to show your Netatmo weather stations
pschocke/netatmo-weather-laravel-dashboard-tile is a Laravel package for a tile to show your netatmo weather stations.
It currently has 0 GitHub stars and 4 downloads on Packagist.
Install it with composer require pschocke/netatmo-weather-laravel-dashboard-tile.
Discover more Laravel packages by pschocke
or browse all Laravel packages to compare alternatives.
Last updated

This tile can be used on the Laravel Dashboard to display all or just some of your Netatmo weather stations.
You can install the package via composer:
composer require pschocke/netatmo-weather-laravel-dashboard-tile
Before we can access the Netatmo API to get the weather data, you first need to create an OAuth App. Netatmo only allows the owner of an app to use the password auth grand, so be sure to create the app with the same account that has all your devices registered.
In the dashboard config file, you must add this configuration in the tiles key. Since package uses the password oauth authorisation grand, you need to provide the e-mail and password of your netatmo account.
// in config/dashboard.php
return [
// ...
'tiles' => [
'netatmo-weather' => [
'client_id' => env('NETATMO_CLIENT_ID'),
'client_secret' => env('NETATMO_CLIENT_SECRET'),
'email' => env('NETATMO_ACCOUNT_EMAIL'),
'password' => env('NETATMO_ACCOUNT_PASSWORD')
]
]
];
Make sure you also create the matching entries in your .env file.
In app\Console\Kernel.php you should schedule the \Pschocke\NetatmoWeatherTile\FetchNetatmoWeatherDataCommand to run. Since Netatmo only updates its data every 10 minutes on their server we only need to run our command every 10 minutes.
// in app/console/Kernel.php
protected function schedule(Schedule $schedule)
{
// ...
$schedule->command(\Pschocke\NetatmoWeatherTile\FetchNetatmoWeatherDataCommand::class)->everyTenMinutes();
}
In your dashboard view you use the netatmo-weather-tile component.
<x-dashboard>
<livewire:netatmo-weather-tile position="b1:b4" />
</x-dashboard>
If you want to display only a few of your stations in one tile you can specify which stations should be shown by providing the :show-devices attribute:
<x-dashboard>
<livewire:netatmo-weather-tile position="b1:b4" :show-devices="['Office', 'Rain']"/>
</x-dashboard>
If you want to customize the view used to render this tile, run this command:
php artisan vendor:publish --provider="Pschocke\NetatmoWeatherTile\NetatmoWeatherTileServiceProvider" --tag="dashboard-muenster-bus-tile-views"
composer test
Please see CONTRIBUTING for details.
If you discover any security related issues, please email [email protected] instead of using the issue tracker.