weathergrabber 0.0.8b4__py3-none-any.whl → 0.0.8b6__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- weathergrabber/__init__.py +1 -1
- weathergrabber/adapter/tty/console_tty.py +2 -2
- weathergrabber/adapter/tty/waybar_tty.py +5 -5
- weathergrabber/domain/moon_phase_enum.py +4 -2
- weathergrabber/domain/weather_icon_enum.py +2 -0
- weathergrabber/service/extract_daily_forecast_service.py +1 -1
- weathergrabber/service/extract_today_details_service.py +1 -0
- {weathergrabber-0.0.8b4.dist-info → weathergrabber-0.0.8b6.dist-info}/METADATA +1 -1
- {weathergrabber-0.0.8b4.dist-info → weathergrabber-0.0.8b6.dist-info}/RECORD +13 -13
- {weathergrabber-0.0.8b4.dist-info → weathergrabber-0.0.8b6.dist-info}/WHEEL +0 -0
- {weathergrabber-0.0.8b4.dist-info → weathergrabber-0.0.8b6.dist-info}/entry_points.txt +0 -0
- {weathergrabber-0.0.8b4.dist-info → weathergrabber-0.0.8b6.dist-info}/licenses/LICENSE +0 -0
- {weathergrabber-0.0.8b4.dist-info → weathergrabber-0.0.8b6.dist-info}/top_level.txt +0 -0
weathergrabber/__init__.py
CHANGED
|
@@ -82,7 +82,7 @@ class ConsoleTTY:
|
|
|
82
82
|
# Hourly predictions and daily predictions
|
|
83
83
|
hourly_predictions = [
|
|
84
84
|
f"{h['title']}"
|
|
85
|
-
f"{'\t' if len(h['title']) < 3 else ''}
|
|
85
|
+
f"{'\t\t' if len(h['title']) < 3 else '\t'}"
|
|
86
86
|
f"{h['temperature']}"
|
|
87
87
|
"\t"
|
|
88
88
|
f"{h['icon']}\t"
|
|
@@ -92,7 +92,7 @@ class ConsoleTTY:
|
|
|
92
92
|
|
|
93
93
|
daily_predictions = [
|
|
94
94
|
f"{d['title']}"
|
|
95
|
-
f"{'\t' if len(d['title']) < 3 else ''}
|
|
95
|
+
f"{'\t\t' if len(d['title']) < 3 else '\t'}"
|
|
96
96
|
f"{d['high_low']}"
|
|
97
97
|
f"\t"
|
|
98
98
|
f"{d['icon']}\t"
|
|
@@ -67,7 +67,7 @@ class WaybarTTY:
|
|
|
67
67
|
aqi_value = forecast.air_quality_index.value
|
|
68
68
|
|
|
69
69
|
hourly_predictions_format = [{
|
|
70
|
-
'title': h.title if len(h.title) <
|
|
70
|
+
'title': h.title if len(h.title) < 9 else h.title[:8] + '.',
|
|
71
71
|
'temperature' : h.temperature,
|
|
72
72
|
'icon': h.icon.fa_icon if is_fa else h.icon.emoji_icon,
|
|
73
73
|
'precipitation': f"{h.precipitation.percentage if h.precipitation.percentage else ''}"
|
|
@@ -75,7 +75,7 @@ class WaybarTTY:
|
|
|
75
75
|
|
|
76
76
|
daily_predictions_format = [
|
|
77
77
|
{
|
|
78
|
-
'title': d.title if len(d.title) <
|
|
78
|
+
'title': d.title if len(d.title) < 9 else d.title[:8] + '.',
|
|
79
79
|
'high_low': f"{d.high_low.high}/<span size='small'>{d.high_low.low}</span>",
|
|
80
80
|
'icon': d.icon.fa_icon if is_fa else d.icon.emoji_icon,
|
|
81
81
|
'precipitation': f"{d.precipitation.percentage}"
|
|
@@ -85,7 +85,7 @@ class WaybarTTY:
|
|
|
85
85
|
# Hourly predictions and daily predictions
|
|
86
86
|
hourly_predictions = [
|
|
87
87
|
f"{h['title']}"
|
|
88
|
-
f"{'\t\t' if len(h['title']) <
|
|
88
|
+
f"{'\t\t' if len(h['title']) < 5 else '\t'}"
|
|
89
89
|
f"{h['temperature']}"
|
|
90
90
|
"\t\t"
|
|
91
91
|
f"{h['icon']}\t"
|
|
@@ -95,9 +95,9 @@ class WaybarTTY:
|
|
|
95
95
|
|
|
96
96
|
daily_predictions = [
|
|
97
97
|
f"{d['title']}"
|
|
98
|
-
f"
|
|
98
|
+
f"{'\t\t' if len(d['title']) < 5 else '\t'}"
|
|
99
99
|
f"{d['high_low']}"
|
|
100
|
-
f"
|
|
100
|
+
f"{'\t\t' if len(d['high_low']) < 32 else '\t'}"
|
|
101
101
|
f"{d['icon']}\t"
|
|
102
102
|
f"{rain_icon} {d['precipitation']}"
|
|
103
103
|
for d in daily_predictions_format
|
|
@@ -38,7 +38,9 @@ class MoonPhaseEnum(Enum):
|
|
|
38
38
|
PHASE_26 = ("phase-26", "\uf186", "🌘")
|
|
39
39
|
PHASE_27 = ("phase-27", "\uf186", "🌘")
|
|
40
40
|
PHASE_28 = ("phase-28", "\uf186", "🌘")
|
|
41
|
-
|
|
41
|
+
PHASE_29 = ("phase-29", "\uf186", "🌑")
|
|
42
|
+
PHASE_30 = ("phase-30", "\uf186", "🌑")
|
|
43
|
+
|
|
42
44
|
|
|
43
45
|
def __init__(self, name: str, fa_icon: str, emoji_icon: str):
|
|
44
46
|
self._name = name
|
|
@@ -62,4 +64,4 @@ class MoonPhaseEnum(Enum):
|
|
|
62
64
|
for item in MoonPhaseEnum:
|
|
63
65
|
if item._name == name:
|
|
64
66
|
return item
|
|
65
|
-
|
|
67
|
+
raise ValueError(f'WeatherIconEnum: No icon found for name "{name}"')
|
|
@@ -10,6 +10,7 @@ class WeatherIconEnum(Enum):
|
|
|
10
10
|
DRIZZLE = ('drizzle', '\uf0e9', '🌦️')
|
|
11
11
|
FEEL = ('feel', '\uf2c9', '🥵')
|
|
12
12
|
FOGGY = ('foggy', '\uf74e', '🌫️')
|
|
13
|
+
HEAVY_RAIN = ('heavy-rain', '\uf0e9', '🌧️')
|
|
13
14
|
HUMIDITY = ('humidity', '\uf043', '💧')
|
|
14
15
|
ISOLATED_THUNDERSTORMS = ('isolated-thunderstorms', chr(0x26C8), '⛈️')
|
|
15
16
|
MOSTLY_CLEAR_DAY = ('mostly-clear-day', chr(0xF0599), '☀️')
|
|
@@ -38,6 +39,7 @@ class WeatherIconEnum(Enum):
|
|
|
38
39
|
SUNNY = ('sunny', chr(0xF0599), '☀️')
|
|
39
40
|
SUNRISE = ('sunrise', '\ue34c', '🌅')
|
|
40
41
|
SUNSET = ('sunset', '\ue34d', '🌇')
|
|
42
|
+
STRONG_STORMS = ('strong-storms', '\uf01e', '🌩️')
|
|
41
43
|
THUNDERSTORMS = ('thunderstorms', '\uf0e7', '⛈️')
|
|
42
44
|
VISIBILITY = ('visibility', '\uf06e', '👁️')
|
|
43
45
|
WIND = ('wind', chr(0xf059d), '🌪️')
|
|
@@ -36,7 +36,7 @@ class ExtractDailyForecastService:
|
|
|
36
36
|
|
|
37
37
|
self.logger.debug("Extracted %s register(s)...",len(details))
|
|
38
38
|
|
|
39
|
-
daily_predictions = [
|
|
39
|
+
daily_predictions = [
|
|
40
40
|
DailyPredictions(
|
|
41
41
|
title=item["title"],
|
|
42
42
|
high_low = TemperatureHighLow.from_string(item["high-low"]),
|
|
@@ -17,6 +17,7 @@ class ExtractTodayDetailsService:
|
|
|
17
17
|
self.logger.debug("Extracting today's details...")
|
|
18
18
|
|
|
19
19
|
today_details_data = weather_data.find("div#todayDetails")
|
|
20
|
+
|
|
20
21
|
feelslike = PyQuery(today_details_data).find("div[data-testid='FeelsLikeSection'] span")
|
|
21
22
|
sunrise_sunset = PyQuery(today_details_data).find("div[data-testid='sunriseSunsetContainer'] div p[class*='TwcSunChart']")
|
|
22
23
|
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
weathergrabber/__init__.py,sha256=
|
|
1
|
+
weathergrabber/__init__.py,sha256=sYBCiwMpFiH-JJM7aniXAP5NOueQS3yodepvjQQn9Ms,218
|
|
2
2
|
weathergrabber/__main__.py,sha256=yYL-jc4kVHqaYVADzjKZfmCN2mziRofsXgnzrECbGDo,68
|
|
3
3
|
weathergrabber/cli.py,sha256=GA1EVClwfHOImM0TEfkTlYOgZU9bzscKg_0HL-Y9TBc,2090
|
|
4
4
|
weathergrabber/core.py,sha256=TiZ2utmYKf9lkIXWv8YBfSdiHZXJZXuHS8B-dBDvevw,1138
|
|
5
5
|
weathergrabber/weathergrabber_application.py,sha256=2JfZAR94En3rmGrYKWRKxdRXmK_ikhJdgrGotFjtDys,3987
|
|
6
6
|
weathergrabber/adapter/client/weather_api.py,sha256=9S7JmXaAVvvPY60dz6rC3lx7X68BcqyvNzvSVM1-af8,963
|
|
7
7
|
weathergrabber/adapter/client/weather_search_api.py,sha256=1oy7JitHcmwkkhFlD0eIt5A7a4cGbf7LMNi26tR8z5o,1724
|
|
8
|
-
weathergrabber/adapter/tty/console_tty.py,sha256=
|
|
8
|
+
weathergrabber/adapter/tty/console_tty.py,sha256=DTxiI6X3MTtc79E6zrhQLcgqU6gP61BbBslpTdPQNNw,5957
|
|
9
9
|
weathergrabber/adapter/tty/json_tty.py,sha256=GyUc13w_5cjFLJda65Xt4e87gYGJow1dYnkY3ZmcmP8,637
|
|
10
|
-
weathergrabber/adapter/tty/waybar_tty.py,sha256=
|
|
10
|
+
weathergrabber/adapter/tty/waybar_tty.py,sha256=emNN4i1-FgLlk14ANMoqzeppJFAGTv7qIQ1TwdnW7jw,6138
|
|
11
11
|
weathergrabber/domain/air_quality_index.py,sha256=8uBqxVIKCYIvrHuP-XbCHjYZhq7Z0RmqkgAAdCw6Tp4,2680
|
|
12
12
|
weathergrabber/domain/city_location.py,sha256=p-11c7AwA8t-nNdvTjl9-Oc5Kw4D2XP7tI4WrATVYpQ,2382
|
|
13
13
|
weathergrabber/domain/color.py,sha256=HfgB5CwxrSHT05TIXCqVCy0GoRpuEl99aUrUSJhaqcE,1601
|
|
@@ -19,7 +19,7 @@ weathergrabber/domain/health_activities.py,sha256=oaIF_nI-iaN4OIHWTL-L7QZUQxCemd
|
|
|
19
19
|
weathergrabber/domain/hourly_predictions.py,sha256=PFiGuo7mBoQHLR-bDirV--R126YAOzkwIHgaeRGFQSA,2179
|
|
20
20
|
weathergrabber/domain/label_value.py,sha256=LvrvZbSrcEUUpxvKAmYkFnpDFWsa6LFmGA9O8i6HB84,446
|
|
21
21
|
weathergrabber/domain/moon_phase.py,sha256=sEHRi8yPIHTzaEcOkz556uNYsKLq4YmYa5qDncSX44c,587
|
|
22
|
-
weathergrabber/domain/moon_phase_enum.py,sha256=
|
|
22
|
+
weathergrabber/domain/moon_phase_enum.py,sha256=U4h4s5xDQfX37nkmt5ppkk6uJdamngeE-hQx3E44HHk,2185
|
|
23
23
|
weathergrabber/domain/precipitation.py,sha256=eXrpwMOsEJWGqV4bEBhN9niWYXalgdZRLG4-I39JZ2A,466
|
|
24
24
|
weathergrabber/domain/search.py,sha256=j3BzskyPl0hDWV02XTOC4tJonV5RHxr5Rop_rYMKUtA,387
|
|
25
25
|
weathergrabber/domain/sunrise_sunset.py,sha256=wNTk01NIuLbQ7gN_giAFv4f3FaRx9khul-mj19g57vE,1207
|
|
@@ -27,7 +27,7 @@ weathergrabber/domain/temperature_hight_low.py,sha256=PQOJ5uDtfMRBR5yMxXA46xuorJ
|
|
|
27
27
|
weathergrabber/domain/timestamp.py,sha256=Bk6f8Tx0-yNitYmEKIWHnqh_ALDwxEHrhoCRSrfvYTU,1222
|
|
28
28
|
weathergrabber/domain/today_details.py,sha256=EUlV7xerYw5QhEsBfvO5m6-9Ghm4nPkXJz9zCmSYTbA,2398
|
|
29
29
|
weathergrabber/domain/uv_index.py,sha256=7XalamfjJdVSqo4x7G4JVf_HJtrPJxO1BpbvmAfBhnw,1481
|
|
30
|
-
weathergrabber/domain/weather_icon_enum.py,sha256=
|
|
30
|
+
weathergrabber/domain/weather_icon_enum.py,sha256=U0CsNDJIiX8kd42LeZL7wKNptuNiQOazPolUdXc-x9w,4013
|
|
31
31
|
weathergrabber/domain/wind.py,sha256=wTDz3X1rYsnw_eNoDi1miwaomxwhiJkY_q6xrdZtLak,789
|
|
32
32
|
weathergrabber/domain/adapter/icon_enum.py,sha256=YxGYS5vBRV2AiAfeuPOdqaQOHixAssiMbOzQnTmdSBg,84
|
|
33
33
|
weathergrabber/domain/adapter/output_enum.py,sha256=61iR10ppY8DNALPKV-vLnDQni5HxEzpoRNZbdBdRygk,117
|
|
@@ -55,18 +55,18 @@ weathergrabber/domain/adapter/mapper/wind_mapper.py,sha256=nXyYwqTvLLMyKtSey27Ga
|
|
|
55
55
|
weathergrabber/service/extract_aqi_service.py,sha256=WKxNvZoLRE-_vmTMR4efWNrowkc8cfo28fVRJ1XmQ1c,1090
|
|
56
56
|
weathergrabber/service/extract_current_conditions_service.py,sha256=R4rd-_53HOQ7YqhHdfI_gKrIy27scYkNEmLgqS23f40,1838
|
|
57
57
|
weathergrabber/service/extract_daily_forecast_oldstyle_service.py,sha256=DiKfaGbMnIIBnxI-IYG8HmfLHNAW5AGew5NjFSMqBk4,2190
|
|
58
|
-
weathergrabber/service/extract_daily_forecast_service.py,sha256=
|
|
58
|
+
weathergrabber/service/extract_daily_forecast_service.py,sha256=frxQH5mcutW_aqb7Si6nhIdadeYZfL2CVt_Hd6CiLpQ,2708
|
|
59
59
|
weathergrabber/service/extract_health_activities_service.py,sha256=2qJ4tEEz5uV6EwHUIFhWM8zol_BbDW3omEohf8kDg3M,1014
|
|
60
60
|
weathergrabber/service/extract_hourly_forecast_oldstyle_service.py,sha256=U5O2tG9YF8wrUUoTimDr7oqMIb670j9oeVjoIpCKKLs,2100
|
|
61
61
|
weathergrabber/service/extract_hourly_forecast_service.py,sha256=KFsl6G6FAmGtkski3lj31VIhs6guP0BxVZTGQSHk8Do,2757
|
|
62
62
|
weathergrabber/service/extract_temperature_service.py,sha256=46nRO3Izj1QmG4BNTh8flsODsovHyWPzZzOnkl1Gbj4,634
|
|
63
|
-
weathergrabber/service/extract_today_details_service.py,sha256=
|
|
63
|
+
weathergrabber/service/extract_today_details_service.py,sha256=Mjlhsz38J9fIzM-EYVPvHsSlw9R4HzXXzl-503cEGFA,3752
|
|
64
64
|
weathergrabber/service/read_weather_service.py,sha256=7_B8E9IN1KCwOhpuS5PfWazI1sCrDyYrZhkV2R38bhc,649
|
|
65
65
|
weathergrabber/service/search_location_service.py,sha256=tZmVgO45hjwoa4cl5bKPjMBmYlGxJiH_I9Ymb5pwEwU,1422
|
|
66
66
|
weathergrabber/usecase/use_case.py,sha256=OM36GtGlzotgRJqSu_3kaM3F3WaSQsUs90DMHQdWPsk,4627
|
|
67
|
-
weathergrabber-0.0.
|
|
68
|
-
weathergrabber-0.0.
|
|
69
|
-
weathergrabber-0.0.
|
|
70
|
-
weathergrabber-0.0.
|
|
71
|
-
weathergrabber-0.0.
|
|
72
|
-
weathergrabber-0.0.
|
|
67
|
+
weathergrabber-0.0.8b6.dist-info/licenses/LICENSE,sha256=X5JFljoqN43yFwpMLudQ9rtty4K_FeZfnz3v8Yhw23Q,1067
|
|
68
|
+
weathergrabber-0.0.8b6.dist-info/METADATA,sha256=Z42WoyDxiusBcxmKt2CCGlGs1fk6oyPpXuEabM0GNBo,5801
|
|
69
|
+
weathergrabber-0.0.8b6.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
70
|
+
weathergrabber-0.0.8b6.dist-info/entry_points.txt,sha256=m2P9a4mrJDTzuNaiTU438NA60GxCfaw7VKvruWw43N8,63
|
|
71
|
+
weathergrabber-0.0.8b6.dist-info/top_level.txt,sha256=P3NMDJJYRIvQujf994Vb4gZrobkKWkL2gh3NF_ajQWM,15
|
|
72
|
+
weathergrabber-0.0.8b6.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|