diff --git a/app/Models/MeteorologicalMonitoringHourlyLog.php b/app/Models/MeteorologicalMonitoringHourlyLog.php index 40377f3..91bffa8 100644 --- a/app/Models/MeteorologicalMonitoringHourlyLog.php +++ b/app/Models/MeteorologicalMonitoringHourlyLog.php @@ -31,7 +31,6 @@ class MeteorologicalMonitoringHourlyLog extends Model 'accumulated_rainfall', 'current_rainfall', 'moment_rainfall', - 'day_rainfall', 'pm25', 'pm10', 'monitored_at', diff --git a/app/Services/LinkosDeviceLogService.php b/app/Services/LinkosDeviceLogService.php index 919312e..8cb5b58 100644 --- a/app/Services/LinkosDeviceLogService.php +++ b/app/Services/LinkosDeviceLogService.php @@ -79,7 +79,6 @@ class LinkosDeviceLogService 'accumulated_rainfall' => 'accumulate_rainfall', 'current_rainfall' => 'current_rainfall', 'moment_rainfall' => 'moment_rainfall', - 'day_rainfall' => 'day_rainfall', 'pm25' => 'pm25_concentration', 'pm10' => 'pm10_concentration', ]; diff --git a/database/migrations/2022_10_20_160027_create_meteorological_monitoring_hourly_logs_table.php b/database/migrations/2022_10_20_160027_create_meteorological_monitoring_hourly_logs_table.php index 2c3c30f..25eb228 100644 --- a/database/migrations/2022_10_20_160027_create_meteorological_monitoring_hourly_logs_table.php +++ b/database/migrations/2022_10_20_160027_create_meteorological_monitoring_hourly_logs_table.php @@ -21,8 +21,8 @@ return new class extends Migration $table->tinyInteger('wind_power')->nullable()->comment('风力'); $table->tinyInteger('wind_direction')->nullable()->comment('风向: 0 北风, 1 东北风, 2 东风, 3 东南风, 4 南风, 5 西南风, 6 西风, 7 西北风'); $table->integer('wind_degree')->nullable()->comment('风向度数'); - $table->decimal('air_humidity', 8, 2)->nullable()->comment('空气湿度 (单位: db)'); - $table->decimal('air_temperature', 8, 2)->nullable()->comment('气温 (单位: db)'); + $table->decimal('air_humidity', 8, 2)->nullable()->comment('空气湿度 (单位: %RH)'); + $table->decimal('air_temperature', 8, 2)->nullable()->comment('气温 (单位: ℃)'); $table->decimal('air_pressure', 8, 2)->nullable()->comment('气压 (单位: Kpa)'); $table->decimal('co2', 8, 2)->nullable()->comment('二氧化碳浓度 (单位: ppm)'); $table->decimal('noise', 8, 2)->nullable()->comment('噪声 (单位: db)'); @@ -30,7 +30,6 @@ return new class extends Migration $table->decimal('accumulated_rainfall', 8, 2)->nullable()->comment('积雨量 (单位: mm)'); $table->decimal('current_rainfall', 8, 2)->nullable()->comment('当前雨量 (单位: mm)'); $table->decimal('moment_rainfall', 8, 2)->nullable()->comment('瞬时雨量 (单位: mm)'); - $table->decimal('day_rainfall', 8, 2)->nullable()->comment('日雨量 (单位: mm)'); $table->integer('pm25')->nullable()->comment('PM2.5浓度 (单位: ug/m3)'); $table->integer('pm10')->nullable()->comment('PM10浓度 (单位: ug/m3)'); $table->timestamp('monitored_at')->comment('监控时间(小时)');