remove unneeded stuff

This commit is contained in:
Jeremias Wolff
2020-12-31 15:49:06 +01:00
parent 1b40f030e3
commit 1729be563c
8 changed files with 1 additions and 700 deletions

View File

@@ -2,12 +2,9 @@
namespace App\Commands;
//use App\Exports\WeewxExport;
use App\Exports\WeewxExport;
use Carbon\Carbon;
use Illuminate\Console\Command;
use Illuminate\Support\Facades\Http;
use Maatwebsite\Excel\Facades\Excel;
class EcowittExportCommand extends Command
{

View File

@@ -1,44 +0,0 @@
<?php
namespace App\Commands;
use Illuminate\Console\Scheduling\Schedule;
use LaravelZero\Framework\Commands\Command;
class InspiringCommand extends Command
{
/**
* The signature of the command.
*
* @var string
*/
protected $signature = 'inspiring {name=Artisan}';
/**
* The description of the command.
*
* @var string
*/
protected $description = 'Display an inspiring quote';
/**
* Execute the console command.
*
* @return mixed
*/
public function handle()
{
$this->info('Simplicity is the ultimate sophistication.');
}
/**
* Define the command's schedule.
*
* @param \Illuminate\Console\Scheduling\Schedule $schedule
* @return void
*/
public function schedule(Schedule $schedule)
{
// $schedule->command(static::class)->everyMinute();
}
}

View File

@@ -1,43 +0,0 @@
<?php
namespace App\Exports;
use Maatwebsite\Excel\Concerns\Exportable;
use Maatwebsite\Excel\Concerns\FromArray;
use Maatwebsite\Excel\Concerns\FromCollection;
use Maatwebsite\Excel\Concerns\WithCustomCsvSettings;
use Maatwebsite\Excel\Concerns\WithHeadingRow;
use Maatwebsite\Excel\Concerns\WithHeadings;
class WeewxExport implements FromArray, WithCustomCsvSettings, WithHeadings
{
use Exportable;
protected $weatherData;
public function __construct($data)
{
$this->weatherData = $data;
}
/**
* @return \Illuminate\Support\Collection
*/
public function array(): array
{
return $this->weatherData;
}
public function headings() : array {
return array_keys($this->weatherData[0]);
}
public function getCsvSettings(): array
{
return [
'delimiter' => ',',
'enclosure' => '',
];
}
}