Weather: add new module

This commit is contained in:
李通洲
2022-09-29 17:05:01 +08:00
parent c72c6c4a27
commit 9cf95620a9
13 changed files with 113 additions and 9 deletions
+15
View File
@@ -163,6 +163,18 @@
# Default is 0 (disabled).
#--public-ip-timeout 0
# Weather output format option:
# Sets the weather format to be used. It must be URI encoded.
# See: https://github.com/chubin/wttr.in#one-line-output
# Default is "%t+-+%C+(%l)".
#--weather-output-format "%t+-+%C+(%l)"
# Weather timeout option:
# Sets the time to wait for the weather server (wttr.in) to respond.
# Must be a positive integer.
# Default is 0 (disabled).
#--weather-timeout 0
# OS file option
# Sets the path to the file containing the operating system information.
# Should be a valid path to an existing file.
@@ -219,6 +231,7 @@
#--locale-key Locale
#--local-ip-key Local IP ({1})
#--public-ip-key Public IP
#--weather-key Weather
#--player-key Media Player
#--song-key Song
#--datetime-key Date Time
@@ -260,6 +273,7 @@
#--locale-format
#--local-ip-format
#--public-ip-format
#--weather-format
#--player-format
#--song-format
#--datetime-format
@@ -301,6 +315,7 @@
#--locale-error
#--local-ip-error
#--public-ip-error
#--weather-error
#--player-error
#--song-error
#--datetime-error
+2
View File
@@ -104,6 +104,8 @@ Module specific options:
--localip-name-prefix <str>: Show ips with given name prefix only. Default is empty
--public-ip-timeout: Time in milliseconds to wait for the public ip server to respond. Default is disabled (0)
--public-ip-url: The URL of public IP detection server to be used.
--weather-timeout: Time in milliseconds to wait for the weather server to respond. Default is disabled (0)
--weather-output-format: The output weather format to be used. It must be URI encoded.
--player-name: The name of the player to use
--gl <value>: Sets the opengl context creation library to use. Must be auto, egl, glx or osmesa. Default is auto