Skip to content

M_weather

vbextreme edited this page Oct 14, 2018 · 1 revision

Weather config wiki

Show weather

Before load module

register yourself on https://openweathermap.org
search city and get city code https://openweathermap.org/appid#get for get token

Module Specific Attribute

# city id
city = 12345

# api token
token = 01a29b45c...

Enviroment

enviroment < 14 is for current day and hours

$0 temp
$1 temp min
$2 temp max
$3 pressure
$4 sea level
$5 humidity
$6 clouds
$7 wind speed
$8 wind deg
$9 rain
$10 weather text
$11 weather description
$12 weather text icon
$13 date time

with enviroment < 714 can select hours with hours is:

0 = 00:00
1 = 03:00
2 = 06:00
3 = 09:00
4 = 12:00
5 = 15:00
6 = 18:00
7 = 21:00

current day, 15:00, weather text is id 510
5 for select 15:00
10 for select weather text

with enviroment < 4714 can select day

1 = tomorrow
2 = today + 2
3 = today + 3
4 = today + 4

for example weather text of tomorrow at 18:00 is id 1610
1 for select tomorrow
6 for select 18:00
10 for select weather text

Formatting

for formatting enviroment

# double 0 to 9
format[n] = 5.1

# string 10 to 13
format[n] = ""

Icon

# weather
icon[0] = "🌣"
icon[1] = "⛅"
icon[2] = "☁️"
icon[3] = "⛆"
icon[4] = "🌩"
icon[5] = "❄"

Example

show current datetime with weather text

text.long = "$@ $13 $10"
Clone this wiki locally