feat: update weather data report format
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:
songtianlun 2025-01-31 10:46:32 +08:00
parent bbf8dfc2e6
commit 0352923c5b
3 changed files with 3 additions and 2 deletions

View File

@ -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}

View File

@ -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