Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cathay4t/kindle-weather
/ functions
Functions
15 in github.com/cathay4t/kindle-weather
⨍
Functions
15
◇
Types & classes
2
↓ 3 callers
Function
_exec
(cmd)
weather_script.py:44
↓ 2 callers
Function
_fetch_json
(url)
weather_api.py:22
↓ 2 callers
Function
_parse_forecast
return [WeatherData]
weather_api.py:27
↓ 1 callers
Function
_fetch_html
(url)
aqi.py:31
↓ 1 callers
Function
_fetch_html
(url)
sci.py:21
↓ 1 callers
Function
aqi_get
Return integer for AQI of given city and raise error if failure. Data is from parsed from aqicn.org webpage.
aqi.py:36
↓ 1 callers
Function
sci_get
Return current Shanghai Composite Index and change percentage in list. Data is from parsed from sina
sci.py:25
↓ 1 callers
Method
set_airport_code
(self, airport_code)
weather_api.py:60
↓ 1 callers
Method
set_lat_lon
(self, lat, lon)
weather_api.py:53
↓ 1 callers
Method
today
Return a object of datetime.date
weather_api.py:88
Method
__init__
(self, condition, temp_max, temp_min)
weather_api.py:39
Method
__init__
(self, api_key)
weather_api.py:49
Method
condition
(self, day)
weather_api.py:82
Method
temp_max
Input day as integer, 0 means today, 1 means tomorrow, max is 3.
weather_api.py:68
Method
temp_min
(self, day)
weather_api.py:77