Add some docstrings

This commit is contained in:
gg 2023-07-28 22:25:20 -07:00
parent db23336fb4
commit 226cedb7f8
1 changed files with 3 additions and 0 deletions

View File

@ -2,8 +2,10 @@ module WeatherNews
using JSON3, HTTP, Dates, TimeZones, DataStructures
"URL for JSON timetable"
SCHEDULE_URL = "https://smtgvs.weathernews.jp/a/solive_timetable/timetable.json"
"Translate Japanese segment titles to short English words."
TITLES = Dict(
"ウェザーニュースLiVE・モーニング" => "Morning",
"ウェザーニュースLiVE・サンシャイン" => "Sunshine",
@ -14,6 +16,7 @@ TITLES = Dict(
"ウェザーニュースLiVE" => "_",
)
"Send a GET Request for `url` and parse the response body as JSON."
function dl(url)
res = HTTP.get(url)
return JSON3.read(res.body)