v.0.3.0 calculate char_width with shift operator

This commit is contained in:
tiijay
2025-10-23 14:31:09 +02:00
parent 2eea871408
commit a66b00989f
8 changed files with 377 additions and 182 deletions

View File

@@ -6,50 +6,50 @@
"lat": 53.6667,
"lon": 10.2833,
"tz_id": "Europe/Berlin",
"localtime_epoch": 1760977041,
"localtime": "2025-10-20 18:17"
"localtime_epoch": 1761209139,
"localtime": "2025-10-23 10:45"
},
"current": {
"last_updated_epoch": 1760976900,
"last_updated": "2025-10-20 18:15",
"temp_c": 12.3,
"temp_f": 54.1,
"is_day": 0,
"last_updated_epoch": 1761209100,
"last_updated": "2025-10-23 10:45",
"temp_c": 12.4,
"temp_f": 54.3,
"is_day": 1,
"condition": {
"text": "leichter Regenfall",
"icon": "//cdn.weatherapi.com/weather/64x64/night/296.png",
"code": 1183
"text": "Light rain shower",
"icon": "//cdn.weatherapi.com/weather/64x64/day/353.png",
"code": 1240
},
"wind_mph": 12.1,
"wind_kph": 19.4,
"wind_degree": 151,
"wind_mph": 13.6,
"wind_kph": 22.0,
"wind_degree": 147,
"wind_dir": "SSE",
"pressure_mb": 999.0,
"pressure_in": 29.5,
"precip_mm": 0.0,
"precip_in": 0.0,
"humidity": 77,
"cloud": 100,
"pressure_mb": 983.0,
"pressure_in": 29.03,
"precip_mm": 2.34,
"precip_in": 0.09,
"humidity": 100,
"cloud": 75,
"feelslike_c": 10.3,
"feelslike_f": 50.6,
"windchill_c": 10.1,
"windchill_f": 50.1,
"heatindex_c": 12.1,
"heatindex_f": 53.8,
"dewpoint_c": 7.7,
"dewpoint_f": 45.8,
"vis_km": 10.0,
"vis_miles": 6.0,
"feelslike_f": 50.5,
"windchill_c": 10.5,
"windchill_f": 50.9,
"heatindex_c": 12.6,
"heatindex_f": 54.6,
"dewpoint_c": 12.0,
"dewpoint_f": 53.6,
"vis_km": 8.0,
"vis_miles": 4.0,
"uv": 0.0,
"gust_mph": 19.8,
"gust_kph": 31.9,
"gust_mph": 21.1,
"gust_kph": 33.9,
"air_quality": {
"co": 171.678,
"no2": 9.778,
"o3": 54.0,
"so2": 1.678,
"pm2_5": 10.078,
"pm10": 12.578,
"co": 152.678,
"no2": 8.378,
"o3": 35.0,
"so2": 0.878,
"pm2_5": 7.878,
"pm10": 8.978,
"us-epa-index": 1,
"gb-defra-index": 1
}

View File

@@ -1,5 +1,5 @@
@city = "grosshansdorf"
@lang = de
@lang = en
@forecast_days = 3
# could be 60(mins) or 24(day)
@time_period_forecast = 60