display more data in daily weather widget, display weather icons
This commit is contained in:
@@ -2,7 +2,7 @@ class HourlyWeatherModel {
|
||||
late DateTime timestamp;
|
||||
String? sourceId;
|
||||
double? precipitation;
|
||||
int? pressure;
|
||||
double? pressure;
|
||||
int? sunshine;
|
||||
late double temperature;
|
||||
int? windDirection;
|
||||
@@ -21,7 +21,7 @@ class HourlyWeatherModel {
|
||||
HourlyWeatherModel.fromJson(Map<String, dynamic> json) {
|
||||
sourceId = json['source_id'].toString();
|
||||
precipitation = json['precipitation'];
|
||||
pressure = json['pressure'];
|
||||
pressure = json['pressure_msl'];
|
||||
sunshine = json['sundshine'];
|
||||
temperature = json['temperature'];
|
||||
windDirection = json['wind_direction'];
|
||||
|
||||
Reference in New Issue
Block a user