Skip to content
Snippets Groups Projects
Commit b99e6f3f authored by echicken's avatar echicken :chicken:
Browse files

Default view to 1AFn, best fit for 24 rows

parent 6ee49a5d
No related branches found
No related tags found
No related merge requests found
......@@ -45,7 +45,7 @@ Contents
See https://wttr.in/:help for details on query parameters.
By default, this script will query https://wttr.in/?AFn and will cache
By default, this script will query https://wttr.in/?1AFn and will cache
non-error responses for 3600 seconds (one hour). If the user's IP address
is available, wttr.in will use it for geolocation. If the user's IP
address is not available, your BBS' external IP address will be used for
......@@ -60,7 +60,7 @@ Contents
[wttr.in]
base_url = https://wttr.in/
units = m
view = AFn
view = 1AFn
cache_ttl = 3600
All of the above settings are optional and any may be omitted. Substitute
......
......@@ -26,7 +26,7 @@ function loadSettings(argv) {
var settings = load({}, 'modopts.js', 'wttr.in') || {};
if (settings.base_url === undefined) settings.base_url = 'https://wttr.in/';
if (settings.units === undefined) settings.units = '';
if (settings.view === undefined) settings.view = 'AFn';
if (settings.view === undefined) settings.view = '1AFn';
if (settings.cache_ttl === undefined) settings.cache_ttl = 3600;
if (settings.fallback_location === undefined) settings.fallback_location = '';
settings = parseArgs(settings, argv);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment