Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Synchronet
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Main
Synchronet
Commits
b99e6f3f
Commit
b99e6f3f
authored
2 years ago
by
echicken
Browse files
Options
Downloads
Patches
Plain Diff
Default view to 1AFn, best fit for 24 rows
parent
6ee49a5d
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
xtrn/wttr.in/readme.txt
+2
-2
2 additions, 2 deletions
xtrn/wttr.in/readme.txt
xtrn/wttr.in/wttr-lib.js
+1
-1
1 addition, 1 deletion
xtrn/wttr.in/wttr-lib.js
with
3 additions
and
3 deletions
xtrn/wttr.in/readme.txt
+
2
−
2
View file @
b99e6f3f
...
...
@@ -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/?
1
AFn 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 =
1
AFn
cache_ttl = 3600
All of the above settings are optional and any may be omitted. Substitute
...
...
This diff is collapsed.
Click to expand it.
xtrn/wttr.in/wttr-lib.js
+
1
−
1
View file @
b99e6f3f
...
...
@@ -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
=
'
1
AFn
'
;
if
(
settings
.
cache_ttl
===
undefined
)
settings
.
cache_ttl
=
3600
;
if
(
settings
.
fallback_location
===
undefined
)
settings
.
fallback_location
=
''
;
settings
=
parseArgs
(
settings
,
argv
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment