Browse Source

- lcd4linux: add storm warning

master
vanhofen 3 years ago
parent
commit
50f686cd65
  1. 78
      package/lcd4linux/files-skel/etc/lcd4linux.conf
  2. BIN
      package/lcd4linux/files-skel/usr/share/lcd/icons/storm-warning.png

78
package/lcd4linux/files-skel/etc/lcd4linux.conf

@ -32,6 +32,8 @@ Variables {
COL_BLACK '000000'
COL_WHITE 'FFFFFF'
# }
STORM_WARNING '10.8333'
}
# --------------------------------------------------------------------------- #
@ -1270,6 +1272,38 @@ Widget TEMPERATURE_LATER_SCALE200 {
#debugborder file::exist(F_DB) == 1 ? DB_ON : DB_OFF
}
Widget ICON_STORM_WARNING_CURRENT_SCALE30 {
class 'image'
file file::exist(F_WEATHER) == 0 ? LCD_ICONS . 'blank.png' : ((WIND=file::readline('/tmp/lcd/weather_wind', 1); substr(WIND, 0, strstr(WIND, '|'))) > STORM_WARNING ? LCD_ICONS . 'storm-warning.png' : LCD_ICONS . 'blank.png')
update 10000
reload 1
scale 30
}
Widget ICON_STORM_WARNING_LATER_SCALE30 {
class 'image'
file file::exist(F_WEATHER) == 0 ? LCD_ICONS . 'blank.png' : ((WIND=file::readline('/tmp/lcd/weather_wind', strftime('%H', time()) < 16 ? 2 : 3); substr(WIND, 0, strstr(WIND, '|'))) > STORM_WARNING ? LCD_ICONS . 'storm-warning.png' : LCD_ICONS . 'blank.png')
update 10000
reload 1
scale 30
}
Widget ICON_STORM_WARNING_CURRENT_SCALE50 {
class 'image'
file file::exist(F_WEATHER) == 0 ? LCD_ICONS . 'blank.png' : ((WIND=file::readline('/tmp/lcd/weather_wind', 1); substr(WIND, 0, strstr(WIND, '|'))) > STORM_WARNING ? LCD_ICONS . 'storm-warning.png' : LCD_ICONS . 'blank.png')
update 10000
reload 1
scale 50
}
Widget ICON_STORM_WARNING_LATER_SCALE50 {
class 'image'
file file::exist(F_WEATHER) == 0 ? LCD_ICONS . 'blank.png' : ((WIND=file::readline('/tmp/lcd/weather_wind', strftime('%H', time()) < 16 ? 2 : 3); substr(WIND, 0, strstr(WIND, '|'))) > STORM_WARNING ? LCD_ICONS . 'storm-warning.png' : LCD_ICONS . 'blank.png')
update 10000
reload 1
scale 50
}
# --- Xcam --- #
Widget XCAMLINE01 {
@ -1773,6 +1807,11 @@ Layout Pearl_standby {
}
layer 3 {
x020.y001 'IMAGE_CLOCK_ANALOG_FACE'
x168 {
y085 'ICON_STORM_WARNING_CURRENT_SCALE30'
y210 'ICON_STORM_WARNING_LATER_SCALE30'
}
}
layer 4 {
x020.y010 '320x240_TIME_STANDBY'
@ -1824,6 +1863,10 @@ Layout Samsung800x480_standard {
}
}
layer 3 {
x345 {
y158 'ICON_STORM_WARNING_CURRENT_SCALE50'
y601 'ICON_STORM_WARNING_LATER_SCALE50'
}
}
layer 4 {
}
@ -1872,6 +1915,10 @@ Layout Samsung800x600_standard {
}
}
layer 3 {
x465 {
y158 'ICON_STORM_WARNING_CURRENT_SCALE50'
y601 'ICON_STORM_WARNING_LATER_SCALE50'
}
}
layer 4 {
}
@ -1920,6 +1967,10 @@ Layout Samsung1024x600_standard {
}
}
layer 3 {
x465 {
y158 'ICON_STORM_WARNING_CURRENT_SCALE50'
y825 'ICON_STORM_WARNING_LATER_SCALE50'
}
}
layer 4 {
}
@ -1969,6 +2020,10 @@ Layout Samsung800x480_radio {
}
}
layer 3 {
x345 {
y158 'ICON_STORM_WARNING_CURRENT_SCALE50'
y601 'ICON_STORM_WARNING_LATER_SCALE50'
}
}
layer 4 {
}
@ -2019,6 +2074,10 @@ Layout Samsung800x600_radio {
}
}
layer 3 {
x465 {
y158 'ICON_STORM_WARNING_CURRENT_SCALE50'
y601 'ICON_STORM_WARNING_LATER_SCALE50'
}
}
layer 4 {
}
@ -2069,6 +2128,10 @@ Layout Samsung1024x600_radio {
}
}
layer 3 {
x465 {
y158 'ICON_STORM_WARNING_CURRENT_SCALE50'
y825 'ICON_STORM_WARNING_LATER_SCALE50'
}
}
layer 4 {
}
@ -2244,6 +2307,11 @@ Layout Samsung800x480_standby {
}
layer 3 {
x040.y250 'IMAGE_CLOCK_ANALOG_FACE_SCALE50'
x345 {
y158 'ICON_STORM_WARNING_CURRENT_SCALE50'
y601 'ICON_STORM_WARNING_LATER_SCALE50'
}
}
layer 4 {
x040.y015 '800x480_TIME_STANDBY'
@ -2284,6 +2352,11 @@ Layout Samsung800x600_standby {
x040.y220 'IMAGE_CLOCK_ANALOG_FACE_SCALE60'
X420.Y156 'IMAGE_NI_STANDBY_SCALE200'
x465 {
y158 'ICON_STORM_WARNING_CURRENT_SCALE50'
y601 'ICON_STORM_WARNING_LATER_SCALE50'
}
}
layer 4 {
x040.y015 '800x600_TIME_STANDBY'
@ -2324,6 +2397,11 @@ Layout Samsung1024x600_standby {
x040.y332 'IMAGE_CLOCK_ANALOG_FACE_SCALE60'
X420.Y268 'IMAGE_NI_STANDBY_SCALE200'
x465 {
y158 'ICON_STORM_WARNING_CURRENT_SCALE50'
y825 'ICON_STORM_WARNING_LATER_SCALE50'
}
}
layer 4 {
x040.y015 '1024x600_TIME_STANDBY'

BIN
package/lcd4linux/files-skel/usr/share/lcd/icons/storm-warning.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.2 KiB

After

Width:  |  Height:  |  Size: 1.3 KiB

Loading…
Cancel
Save