//version 0.11.0 - VGA Weather Only - (from Bandito) V1.0 // Traduite en français par P@sc@l // Adaptée pour WM2003SE VGA par Ivan maxheight,200 height,105 calcvar,var29,fromconfig,numcities offset,0,0 options,weathericondir,Weather Icons\80x80,png options,imagedir,Images\Colors-3D changefont,Tahoma,13, color,transparent,255_0_255 color,replacement,-1_6_-1,0_0_0 color,shadow,125_125_125 color,font,-1_4_-1 initvar,var5,-2 initvar,var6,21 region,17,0,60 defregion,17,0,0,480,20,1 offset,offset_-1,offset_-1 load,city,1 storevar,var4=1 changefont,tahoma,12 text,375,0,Mis-à-jour depuis ,r calcvar,var20,weatherupdatetimediff if,var,var20,,<,60 text,380,0,%var20%,l text,395,0,minutes(s),l else if,var,var20,,<,1440 calcvar,var20,/,%var20%,60 text,380,0,%var20%,l text,395,0,heure(s),l else calcvar,var20,/,%var20%,1440 text,380,0,%var20%,l text,395,0,jour(s),l endif endif changefont,tahoma,12, imagebutton,2,2,refresh.png,t,0,7,,-1 button,452,2,12,12,0,4,0 imagebutton,456,2,right_arrow.png,t,1,13,var0_1 offsetadd,0,20 endregion,17,0 //================================================= // REGION 1 - PAGE 0 // Container for weather sections // Subregions: 2,3 // Vars used: // Dimensions: 480 x 120 //================================================= region,1,0,60 defregion,1,0,0,480,120,6 offset,offset_-1,offset_-1 updateregions,2,3 if,refresh color,font,125_125_125 else color,font,-1_4_-1 endif //================================================= // REGION 3 - PAGE 0 // Weather forecast // Vars used: 1 //================================================= region,3,0,-1 initvar,var0,1 if,var,var0,,>,%var29% storevar,var0=1 else endif load,city,%var0% changefont,Tahoma,13,b text,48,0,[name],c changefont,Tahoma,13, calcvar,var20,weatherupdatetimediff if,var,var20,,<,60 color,replacement,-1_4_-1,0_0_0 color,replacement,-1_6_-1,0_0_0 todayicon,4,4,,t forecasticon,1,98,4,,t forecasticon,2,194,4,,t forecasticon,3,290,4,,t forecasticon,4,386,4,,t button,4,4,80,80,3,4,100,1 today,temp,40,72,, °C,c button,98,4,80,80,3,4,200,1 button,98,4,80,80,-1,6,var1=1 button,194,4,80,80,3,4,200,1 button,194,4,80,80,-1,6,var1=2 button,290,4,80,80,3,4,200,1 button,290,4,80,80,-1,6,var1=3 button,386,4,80,80,3,4,200,1 button,386,4,80,80,-1,6,var1=4 forecast,date_ddd,1,144,0,,,c forecast,date_ddd,2,240,0,,,c forecast,date_ddd,3,336,0,,,c forecast,date_ddd,4,432,0,,,c color,font,255_0_0 forecast,high,1,176,29,,°,l color,font,0_0_255 forecast,low,1,176,51,,°,l color,font,0_0_0 forecast,precipitation,1,144,72,R: ,%,c color,font,255_0_0 forecast,high,2,272,29,,°,l color,font,0_0_255 forecast,low,2,272,51,,°,l color,font,0_0_0 forecast,precipitation,2,240,72,R: ,%,c color,font,255_0_0 forecast,high,3,368,29,,°,l color,font,0_0_255 forecast,low,3,368,51,,°,l color,font,0_0_0 forecast,precipitation,3,336,72,R: ,%,c color,font,255_0_0 forecast,high,4,464,29,,°,l color,font,0_0_255 forecast,low,4,464,51,,°,l color,font,0_0_0 forecast,precipitation,4,432,72,R: ,%,c else calcvar,var20,firstvalidforecastday if,var,var20,,<,6 forecasticon,%var20%,4,4,,t button,4,4,80,80,3,4,200,1 button,4,4,80,80,-1,6,var1=%var20% forecast,high,%var20%,80,29,,°,l forecast,low,%var20%,80,51,,°,l forecast,precipitation,%var20%,48,72,R: ,%,c addvar,var20,1 else image,32,24,none.png,t endif if,var,var20,,<,6 forecasticon,%var20%,98,4,,t button,98,4,80,80,3,4,200,1 button,98,4,80,80,-1,6,var1=%var20% forecast,date_ddd,%var20%,144,0,,,c forecast,high,%var20%,176,29,,°,l forecast,low,%var20%,176,51,,°,l forecast,precipitation,%var20%,144,72,R: ,%,c addvar,var20,1 else image,128,24,none.png,t endif if,var,var20,,<,6 forecasticon,%var20%,194,4,,t button,194,4,80,80,3,4,200,1 button,194,4,80,80,-1,6,var1=%var20% forecast,date_ddd,%var20%,240,0,,,c forecast,high,%var20%,272,29,,°,l forecast,low,%var20%,272,51,,°,l forecast,precipitation,%var20%,240,72,R: ,%,c addvar,var20,1 else image,224,24,none.png,t endif if,var,var20,,<,6 forecasticon,%var20%,290,4,,t button,290,4,80,80,3,4,200,1 button,290,4,80,80,-1,6,var1=%var20% forecast,date_ddd,%var20%,336,0,,,c forecast,high,%var20%,368,29,,°,l forecast,low,%var20%,368,51,,°,l forecast,precipitation,%var20%,336,72,R: ,%,c addvar,var20,1 else image,320,24,none.png,t endif if,var,var20,,<,6 forecasticon,%var20%,386,4,,t button,386,4,80,80,3,4,200,1 button,386,4,80,80,-1,6,var1=%var20% forecast,date_ddd,%var20%,432,0,,,c forecast,high,%var20%,464,29,,°,l forecast,low,%var20%,464,51,,°,l forecast,precipitation,%var20%,432,72,R: ,%,c addvar,var20,1 else image,416,24,none.png,t endif endif offsetadd,0,85 endregion,3,0 //================================================= // REGION 3 - PAGE 100 // Current conditions //================================================= region,3,100,-1 load,city,%var0% button,16,4,80,80,3,3,,1 changefont,Tahoma,13,b text,48,0,[name],c todayicon,4,4,,t today,sky,208,12,,,c changefont,Tahoma,13, today,realtemp,208,36,,°C,r changefont,Tahoma,13, text,112,24,Température:,l today,temp,208,24,,°C,r text,112,36,Sensation:,l text,112,48,Pression:,l today,barometer,208,48,, mBar,r today,Humidité,320,24,,%,r changefont,Tahoma,13, text,224,24,Humidité :,l text,224,36,UV:,l today,uv,320,36,,,r text,224,48,Vent: ,l today,winddir,280,48,,,r today,windspeed,320,48,, mph,r text,168,63,Visibilité:,l today,visibility,274,63,, mile(s),r if,var,var0,,>,1 else image,360,28,sunrise.png,r suntime,1,sunrise,official,368,46,h:mm tt,,,c image,410,28,sunset.png,r suntime,1,sunset,official,418,46,h:mm tt,,,c suntime,1,elevation,,394,60,%05.2f,Elev: ,°,c endif endregion,3,100 //================================================= // REGION 3 - PAGE 200 // Vars used: 1 // Detailed forecast //================================================= region,3,200,-1 load,city,%var0% changefont,Tahoma,13,b text,48,72,[name],c changefont,Tahoma,13, button,16,8,64,64,3,3,,1 changefont,Tahoma,13,b forecast,date_dddd,%var1%,48,0,,,c changefont,Tahoma,13, forecasticon,%var1%,4,4,,t nightforecasticon,%var1%,290,4,,t text,336,72,[ Nuit ],c forecast,text,%var1%,132,18,Jour: ,,l forecast,nighttext,%var1%,132,30,Nuit: ,,l changefont,Tahoma,13,b color,font,255_0_0 forecast,high,%var1%,194,42,,°C,r color,font,0_0_255 forecast,low,%var1%,256,42,,°C,r color,font,0_0_0 forecast,precipitation,%var1%,256,56,,%,r changefont,Tahoma,13, text,132,42,Haut:,l text,196,42,Bas:,l text,132,56,Risque de pluie :,l endregion,3,200 color,font,-1_4_-1 endregion,1,0