From 50f686cd65294dd1120dd07baab5d26d2c5fe197 Mon Sep 17 00:00:00 2001 From: vanhofen Date: Fri, 18 Mar 2022 22:53:59 +0100 Subject: [PATCH] - lcd4linux: add storm warning --- .../lcd4linux/files-skel/etc/lcd4linux.conf | 78 ++++++++++++++++++ .../usr/share/lcd/icons/storm-warning.png | Bin 2262 -> 1335 bytes 2 files changed, 78 insertions(+) diff --git a/package/lcd4linux/files-skel/etc/lcd4linux.conf b/package/lcd4linux/files-skel/etc/lcd4linux.conf index 77408aa0..88eb1fd2 100644 --- a/package/lcd4linux/files-skel/etc/lcd4linux.conf +++ b/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' diff --git a/package/lcd4linux/files-skel/usr/share/lcd/icons/storm-warning.png b/package/lcd4linux/files-skel/usr/share/lcd/icons/storm-warning.png index e0ce39f323b8155a9e52913c9833746b01a3215e..c3afbdbc023e705cd3f9a9f2d3b82ee6def68ef2 100644 GIT binary patch literal 1335 zcmZuv3rtgI6uza}A(RZk3PXs3G7&_90u^M#wzsxbC><0~U==k~OXp+?f~b><3>b)_ zh{}5~aY4cH2oaG9nJ)sgMkuAUV9P@hEFJXTTPm;Jf_r3Ha{lvwUvl2(WU^UwGZPyV z007LG3@{k|+30gJ#-f`0+a)3Z80E18I5d>%$gbi(g;**#=)VM_dZF?+MFAYW9j1D~ zRN_cw1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