feat: update weather data report format
Some checks are pending
Docker / docker (push) Waiting to run
Some checks are pending
Docker / docker (push) Waiting to run
- Include actual update time in weather report - Rename watermark worker file for clarity This commit enhances the weather data report by updating the format to include the actual update time retrieved from the weather service API. Additionally, the watermark worker file has been renamed to improve readability and consistency in the naming convention.
This commit is contained in:
parent
bbf8dfc2e6
commit
0352923c5b
@ -50,7 +50,7 @@ class AiService
|
||||
- Temperature: #{weather_data[:temperature]}°C
|
||||
- Weather: #{weather_data[:description]}
|
||||
- Cloud cover: #{weather_data[:cloud]}%
|
||||
- Time: Early morning
|
||||
- Time: #{weather_data[:time]}
|
||||
|
||||
Requirements:
|
||||
- Feature iconic landmarks or architecture from #{city.name}
|
||||
|
@ -31,7 +31,8 @@ class WeatherService
|
||||
pressure: data["pressure"].to_f,
|
||||
visibility: data["vis"].to_f,
|
||||
cloud: data["cloud"].to_f,
|
||||
description: data["text"]
|
||||
description: data["text"],
|
||||
time: response["updateTime"]
|
||||
}
|
||||
end
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user