diff --git a/Wetterstation/Form1.Designer.cs b/Wetterstation/Form1.Designer.cs index 9805efe429d61166e2a227fe40e21e8dcfedb2d4..899584202e864647842dff8fc5509f760993ec8a 100644 --- a/Wetterstation/Form1.Designer.cs +++ b/Wetterstation/Form1.Designer.cs @@ -97,6 +97,31 @@ namespace Wetterstation this.label4 = new System.Windows.Forms.Label(); this.lbTendenzHumidityOut = new System.Windows.Forms.PictureBox(); this.lbTendenzHumidityIn = new System.Windows.Forms.PictureBox(); + this.pbForecastNext = new System.Windows.Forms.PictureBox(); + this.label5 = new System.Windows.Forms.Label(); + this.label6 = new System.Windows.Forms.Label(); + this.label7 = new System.Windows.Forms.Label(); + this.label8 = new System.Windows.Forms.Label(); + this.label9 = new System.Windows.Forms.Label(); + this.label10 = new System.Windows.Forms.Label(); + this.label11 = new System.Windows.Forms.Label(); + this.label12 = new System.Windows.Forms.Label(); + this.lbForecastNextWindSpeed = new System.Windows.Forms.Label(); + this.lbForecastNextTemp = new System.Windows.Forms.Label(); + this.lbForecastNextSnow = new System.Windows.Forms.Label(); + this.lbForecastNextRain = new System.Windows.Forms.Label(); + this.lbForecastNextPressure = new System.Windows.Forms.Label(); + this.lbForecastNextHumidity = new System.Windows.Forms.Label(); + this.lbForecastNextClouds = new System.Windows.Forms.Label(); + this.lbForecastNextFrom = new System.Windows.Forms.Label(); + this.label13 = new System.Windows.Forms.Label(); + this.label14 = new System.Windows.Forms.Label(); + this.label15 = new System.Windows.Forms.Label(); + this.label16 = new System.Windows.Forms.Label(); + this.label17 = new System.Windows.Forms.Label(); + this.label18 = new System.Windows.Forms.Label(); + this.label19 = new System.Windows.Forms.Label(); + this.label20 = new System.Windows.Forms.Label(); ((System.ComponentModel.ISupportInitialize)(this.pbKompassrose)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.lbForecastImage2)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.lbForecastImage3)).BeginInit(); @@ -109,6 +134,7 @@ namespace Wetterstation ((System.ComponentModel.ISupportInitialize)(this.pbTendenzTempIn)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.lbTendenzHumidityOut)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.lbTendenzHumidityIn)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.pbForecastNext)).BeginInit(); this.SuspendLayout(); // // lbTextInnentemp @@ -251,13 +277,15 @@ namespace Wetterstation // this.lbUhr.AutoSize = true; this.lbUhr.BackColor = System.Drawing.Color.Transparent; - this.lbUhr.Font = new System.Drawing.Font("Arial", 18F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.lbUhr.Font = new System.Drawing.Font("Arial", 15.75F, System.Drawing.FontStyle.Bold); this.lbUhr.ForeColor = System.Drawing.SystemColors.ButtonFace; - this.lbUhr.Location = new System.Drawing.Point(814, 656); + this.lbUhr.Location = new System.Drawing.Point(927, 852); + this.lbUhr.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); this.lbUhr.Name = "lbUhr"; - this.lbUhr.Size = new System.Drawing.Size(105, 29); + this.lbUhr.Size = new System.Drawing.Size(125, 32); this.lbUhr.TabIndex = 19; this.lbUhr.Text = "00:00:00"; + this.lbUhr.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // lbDatum // @@ -265,11 +293,13 @@ namespace Wetterstation this.lbDatum.BackColor = System.Drawing.Color.Transparent; this.lbDatum.Font = new System.Drawing.Font("Arial", 15.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.lbDatum.ForeColor = System.Drawing.SystemColors.ButtonFace; - this.lbDatum.Location = new System.Drawing.Point(804, 691); + this.lbDatum.Location = new System.Drawing.Point(1075, 852); + this.lbDatum.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); this.lbDatum.Name = "lbDatum"; this.lbDatum.Size = new System.Drawing.Size(118, 24); this.lbDatum.TabIndex = 20; this.lbDatum.Text = "01.01.1970"; + this.lbDatum.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // lbForecastDay1 // @@ -277,7 +307,8 @@ namespace Wetterstation this.lbForecastDay1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(90)))), ((int)(((byte)(10)))), ((int)(((byte)(80)))), ((int)(((byte)(147))))); this.lbForecastDay1.Font = new System.Drawing.Font("Arial", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.lbForecastDay1.ForeColor = System.Drawing.SystemColors.ButtonHighlight; - this.lbForecastDay1.Location = new System.Drawing.Point(127, 238); + this.lbForecastDay1.Location = new System.Drawing.Point(166, 328); + this.lbForecastDay1.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); this.lbForecastDay1.Name = "lbForecastDay1"; this.lbForecastDay1.Size = new System.Drawing.Size(48, 47); this.lbForecastDay1.TabIndex = 27; @@ -287,7 +318,8 @@ namespace Wetterstation // lbForecastImage2 // this.lbForecastImage2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(90)))), ((int)(((byte)(10)))), ((int)(((byte)(80)))), ((int)(((byte)(147))))); - this.lbForecastImage2.Location = new System.Drawing.Point(177, 271); + this.lbForecastImage2.Location = new System.Drawing.Point(233, 369); + this.lbForecastImage2.Margin = new System.Windows.Forms.Padding(4); this.lbForecastImage2.Name = "lbForecastImage2"; this.lbForecastImage2.Size = new System.Drawing.Size(53, 55); this.lbForecastImage2.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom; @@ -297,7 +329,8 @@ namespace Wetterstation // lbForecastImage3 // this.lbForecastImage3.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(90)))), ((int)(((byte)(10)))), ((int)(((byte)(80)))), ((int)(((byte)(147))))); - this.lbForecastImage3.Location = new System.Drawing.Point(230, 271); + this.lbForecastImage3.Location = new System.Drawing.Point(304, 369); + this.lbForecastImage3.Margin = new System.Windows.Forms.Padding(4); this.lbForecastImage3.Name = "lbForecastImage3"; this.lbForecastImage3.Size = new System.Drawing.Size(53, 55); this.lbForecastImage3.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom; @@ -307,7 +340,8 @@ namespace Wetterstation // lbForecastImage4 // this.lbForecastImage4.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(90)))), ((int)(((byte)(10)))), ((int)(((byte)(80)))), ((int)(((byte)(147))))); - this.lbForecastImage4.Location = new System.Drawing.Point(282, 271); + this.lbForecastImage4.Location = new System.Drawing.Point(373, 369); + this.lbForecastImage4.Margin = new System.Windows.Forms.Padding(4); this.lbForecastImage4.Name = "lbForecastImage4"; this.lbForecastImage4.Size = new System.Drawing.Size(53, 55); this.lbForecastImage4.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom; @@ -317,7 +351,8 @@ namespace Wetterstation // lbForecastImage5 // this.lbForecastImage5.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(90)))), ((int)(((byte)(10)))), ((int)(((byte)(80)))), ((int)(((byte)(147))))); - this.lbForecastImage5.Location = new System.Drawing.Point(331, 271); + this.lbForecastImage5.Location = new System.Drawing.Point(438, 369); + this.lbForecastImage5.Margin = new System.Windows.Forms.Padding(4); this.lbForecastImage5.Name = "lbForecastImage5"; this.lbForecastImage5.Size = new System.Drawing.Size(53, 55); this.lbForecastImage5.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom; @@ -330,7 +365,8 @@ namespace Wetterstation this.lbForecastDay2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(90)))), ((int)(((byte)(10)))), ((int)(((byte)(80)))), ((int)(((byte)(147))))); this.lbForecastDay2.Font = new System.Drawing.Font("Arial", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.lbForecastDay2.ForeColor = System.Drawing.SystemColors.ButtonHighlight; - this.lbForecastDay2.Location = new System.Drawing.Point(179, 238); + this.lbForecastDay2.Location = new System.Drawing.Point(236, 328); + this.lbForecastDay2.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); this.lbForecastDay2.Name = "lbForecastDay2"; this.lbForecastDay2.Size = new System.Drawing.Size(48, 47); this.lbForecastDay2.TabIndex = 33; @@ -343,7 +379,8 @@ namespace Wetterstation this.lbForecastDay3.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(90)))), ((int)(((byte)(10)))), ((int)(((byte)(80)))), ((int)(((byte)(147))))); this.lbForecastDay3.Font = new System.Drawing.Font("Arial", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.lbForecastDay3.ForeColor = System.Drawing.SystemColors.ButtonHighlight; - this.lbForecastDay3.Location = new System.Drawing.Point(234, 238); + this.lbForecastDay3.Location = new System.Drawing.Point(309, 328); + this.lbForecastDay3.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); this.lbForecastDay3.Name = "lbForecastDay3"; this.lbForecastDay3.Size = new System.Drawing.Size(48, 47); this.lbForecastDay3.TabIndex = 34; @@ -356,7 +393,8 @@ namespace Wetterstation this.lbForecastDay4.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(90)))), ((int)(((byte)(10)))), ((int)(((byte)(80)))), ((int)(((byte)(147))))); this.lbForecastDay4.Font = new System.Drawing.Font("Arial", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.lbForecastDay4.ForeColor = System.Drawing.SystemColors.ButtonHighlight; - this.lbForecastDay4.Location = new System.Drawing.Point(282, 238); + this.lbForecastDay4.Location = new System.Drawing.Point(373, 328); + this.lbForecastDay4.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); this.lbForecastDay4.Name = "lbForecastDay4"; this.lbForecastDay4.Size = new System.Drawing.Size(48, 47); this.lbForecastDay4.TabIndex = 35; @@ -369,7 +407,8 @@ namespace Wetterstation this.lbForecastDay5.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(90)))), ((int)(((byte)(10)))), ((int)(((byte)(80)))), ((int)(((byte)(147))))); this.lbForecastDay5.Font = new System.Drawing.Font("Arial", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.lbForecastDay5.ForeColor = System.Drawing.SystemColors.ButtonHighlight; - this.lbForecastDay5.Location = new System.Drawing.Point(333, 238); + this.lbForecastDay5.Location = new System.Drawing.Point(441, 328); + this.lbForecastDay5.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); this.lbForecastDay5.Name = "lbForecastDay5"; this.lbForecastDay5.Size = new System.Drawing.Size(48, 47); this.lbForecastDay5.TabIndex = 36; @@ -430,26 +469,29 @@ namespace Wetterstation this.lbHintergrund.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(99)))), ((int)(((byte)(10)))), ((int)(((byte)(80)))), ((int)(((byte)(147))))); this.lbHintergrund.Location = new System.Drawing.Point(12, 18); this.lbHintergrund.Name = "lbHintergrund"; - this.lbHintergrund.Size = new System.Drawing.Size(984, 354); + this.lbHintergrund.Size = new System.Drawing.Size(1312, 489); this.lbHintergrund.TabIndex = 42; // // lbCity // this.lbCity.BackColor = System.Drawing.Color.Transparent; - this.lbCity.Font = new System.Drawing.Font("Arial Black", 27.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.lbCity.Font = new System.Drawing.Font("Arial", 15.75F, System.Drawing.FontStyle.Bold); this.lbCity.ForeColor = System.Drawing.Color.White; - this.lbCity.Location = new System.Drawing.Point(1, 661); + this.lbCity.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft; + this.lbCity.Location = new System.Drawing.Point(13, 852); + this.lbCity.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); this.lbCity.Name = "lbCity"; - this.lbCity.Size = new System.Drawing.Size(1007, 50); + this.lbCity.Size = new System.Drawing.Size(670, 32); this.lbCity.TabIndex = 43; this.lbCity.Text = "Ort: NA"; - this.lbCity.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + this.lbCity.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // lbForecastImage1 // this.lbForecastImage1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(90)))), ((int)(((byte)(10)))), ((int)(((byte)(80)))), ((int)(((byte)(147))))); this.lbForecastImage1.InitialImage = global::Wetterstation.Properties.Resources._01d_2x; - this.lbForecastImage1.Location = new System.Drawing.Point(124, 271); + this.lbForecastImage1.Location = new System.Drawing.Point(162, 369); + this.lbForecastImage1.Margin = new System.Windows.Forms.Padding(4); this.lbForecastImage1.Name = "lbForecastImage1"; this.lbForecastImage1.Size = new System.Drawing.Size(53, 55); this.lbForecastImage1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom; @@ -546,8 +588,7 @@ namespace Wetterstation this.lbForecastTemp1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(90)))), ((int)(((byte)(10)))), ((int)(((byte)(80)))), ((int)(((byte)(147))))); this.lbForecastTemp1.Font = new System.Drawing.Font("Microsoft Sans Serif", 7.2F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.lbForecastTemp1.ForeColor = System.Drawing.SystemColors.ButtonFace; - this.lbForecastTemp1.Location = new System.Drawing.Point(124, 330); - this.lbForecastTemp1.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0); + this.lbForecastTemp1.Location = new System.Drawing.Point(162, 441); this.lbForecastTemp1.Name = "lbForecastTemp1"; this.lbForecastTemp1.Size = new System.Drawing.Size(53, 14); this.lbForecastTemp1.TabIndex = 55; @@ -559,8 +600,7 @@ namespace Wetterstation this.lbForecastTemp2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(90)))), ((int)(((byte)(10)))), ((int)(((byte)(80)))), ((int)(((byte)(147))))); this.lbForecastTemp2.Font = new System.Drawing.Font("Microsoft Sans Serif", 7.2F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.lbForecastTemp2.ForeColor = System.Drawing.SystemColors.ButtonFace; - this.lbForecastTemp2.Location = new System.Drawing.Point(177, 330); - this.lbForecastTemp2.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0); + this.lbForecastTemp2.Location = new System.Drawing.Point(233, 441); this.lbForecastTemp2.Name = "lbForecastTemp2"; this.lbForecastTemp2.Size = new System.Drawing.Size(53, 14); this.lbForecastTemp2.TabIndex = 56; @@ -572,8 +612,7 @@ namespace Wetterstation this.lbForecastTemp3.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(90)))), ((int)(((byte)(10)))), ((int)(((byte)(80)))), ((int)(((byte)(147))))); this.lbForecastTemp3.Font = new System.Drawing.Font("Microsoft Sans Serif", 7.2F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.lbForecastTemp3.ForeColor = System.Drawing.SystemColors.ButtonFace; - this.lbForecastTemp3.Location = new System.Drawing.Point(230, 330); - this.lbForecastTemp3.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0); + this.lbForecastTemp3.Location = new System.Drawing.Point(304, 441); this.lbForecastTemp3.Name = "lbForecastTemp3"; this.lbForecastTemp3.Size = new System.Drawing.Size(53, 14); this.lbForecastTemp3.TabIndex = 57; @@ -585,8 +624,7 @@ namespace Wetterstation this.lbForecastTemp4.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(90)))), ((int)(((byte)(10)))), ((int)(((byte)(80)))), ((int)(((byte)(147))))); this.lbForecastTemp4.Font = new System.Drawing.Font("Microsoft Sans Serif", 7.2F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.lbForecastTemp4.ForeColor = System.Drawing.SystemColors.ButtonFace; - this.lbForecastTemp4.Location = new System.Drawing.Point(282, 330); - this.lbForecastTemp4.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0); + this.lbForecastTemp4.Location = new System.Drawing.Point(373, 441); this.lbForecastTemp4.Name = "lbForecastTemp4"; this.lbForecastTemp4.Size = new System.Drawing.Size(50, 14); this.lbForecastTemp4.TabIndex = 58; @@ -598,8 +636,7 @@ namespace Wetterstation this.lbForecastTemp5.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(90)))), ((int)(((byte)(10)))), ((int)(((byte)(80)))), ((int)(((byte)(147))))); this.lbForecastTemp5.Font = new System.Drawing.Font("Microsoft Sans Serif", 7.2F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.lbForecastTemp5.ForeColor = System.Drawing.SystemColors.ButtonFace; - this.lbForecastTemp5.Location = new System.Drawing.Point(331, 330); - this.lbForecastTemp5.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0); + this.lbForecastTemp5.Location = new System.Drawing.Point(438, 441); this.lbForecastTemp5.Name = "lbForecastTemp5"; this.lbForecastTemp5.Size = new System.Drawing.Size(53, 14); this.lbForecastTemp5.TabIndex = 59; @@ -622,7 +659,8 @@ namespace Wetterstation this.lbRain.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(90)))), ((int)(((byte)(10)))), ((int)(((byte)(80)))), ((int)(((byte)(147))))); this.lbRain.Font = new System.Drawing.Font("Microsoft Sans Serif", 7.8F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.lbRain.ForeColor = System.Drawing.SystemColors.ButtonFace; - this.lbRain.Location = new System.Drawing.Point(502, 244); + this.lbRain.Location = new System.Drawing.Point(670, 335); + this.lbRain.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); this.lbRain.Name = "lbRain"; this.lbRain.Size = new System.Drawing.Size(44, 13); this.lbRain.TabIndex = 61; @@ -634,7 +672,8 @@ namespace Wetterstation this.lbSnow.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(90)))), ((int)(((byte)(10)))), ((int)(((byte)(80)))), ((int)(((byte)(147))))); this.lbSnow.Font = new System.Drawing.Font("Microsoft Sans Serif", 7.8F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.lbSnow.ForeColor = System.Drawing.SystemColors.ButtonFace; - this.lbSnow.Location = new System.Drawing.Point(497, 302); + this.lbSnow.Location = new System.Drawing.Point(663, 407); + this.lbSnow.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); this.lbSnow.Name = "lbSnow"; this.lbSnow.Size = new System.Drawing.Size(50, 13); this.lbSnow.TabIndex = 62; @@ -646,7 +685,8 @@ namespace Wetterstation this.lb1hR.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(90)))), ((int)(((byte)(10)))), ((int)(((byte)(80)))), ((int)(((byte)(147))))); this.lb1hR.Font = new System.Drawing.Font("Microsoft Sans Serif", 7.8F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.lb1hR.ForeColor = System.Drawing.SystemColors.ButtonFace; - this.lb1hR.Location = new System.Drawing.Point(467, 258); + this.lb1hR.Location = new System.Drawing.Point(623, 352); + this.lb1hR.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); this.lb1hR.Name = "lb1hR"; this.lb1hR.Size = new System.Drawing.Size(21, 13); this.lb1hR.TabIndex = 63; @@ -658,7 +698,8 @@ namespace Wetterstation this.lb3hR.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(90)))), ((int)(((byte)(10)))), ((int)(((byte)(80)))), ((int)(((byte)(147))))); this.lb3hR.Font = new System.Drawing.Font("Microsoft Sans Serif", 7.8F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.lb3hR.ForeColor = System.Drawing.SystemColors.ButtonFace; - this.lb3hR.Location = new System.Drawing.Point(467, 271); + this.lb3hR.Location = new System.Drawing.Point(623, 369); + this.lb3hR.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); this.lb3hR.Name = "lb3hR"; this.lb3hR.Size = new System.Drawing.Size(21, 13); this.lb3hR.TabIndex = 64; @@ -669,7 +710,8 @@ namespace Wetterstation this.lbRain1h.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(90)))), ((int)(((byte)(10)))), ((int)(((byte)(80)))), ((int)(((byte)(147))))); this.lbRain1h.Font = new System.Drawing.Font("Microsoft Sans Serif", 7.8F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.lbRain1h.ForeColor = System.Drawing.SystemColors.ButtonFace; - this.lbRain1h.Location = new System.Drawing.Point(505, 258); + this.lbRain1h.Location = new System.Drawing.Point(673, 352); + this.lbRain1h.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); this.lbRain1h.Name = "lbRain1h"; this.lbRain1h.Size = new System.Drawing.Size(39, 14); this.lbRain1h.TabIndex = 65; @@ -681,7 +723,8 @@ namespace Wetterstation this.lbRain3h.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(90)))), ((int)(((byte)(10)))), ((int)(((byte)(80)))), ((int)(((byte)(147))))); this.lbRain3h.Font = new System.Drawing.Font("Microsoft Sans Serif", 7.8F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.lbRain3h.ForeColor = System.Drawing.SystemColors.ButtonFace; - this.lbRain3h.Location = new System.Drawing.Point(505, 271); + this.lbRain3h.Location = new System.Drawing.Point(673, 369); + this.lbRain3h.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); this.lbRain3h.Name = "lbRain3h"; this.lbRain3h.Size = new System.Drawing.Size(39, 14); this.lbRain3h.TabIndex = 66; @@ -693,7 +736,8 @@ namespace Wetterstation this.lbSnow3h.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(90)))), ((int)(((byte)(10)))), ((int)(((byte)(80)))), ((int)(((byte)(147))))); this.lbSnow3h.Font = new System.Drawing.Font("Microsoft Sans Serif", 7.8F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.lbSnow3h.ForeColor = System.Drawing.SystemColors.ButtonFace; - this.lbSnow3h.Location = new System.Drawing.Point(493, 330); + this.lbSnow3h.Location = new System.Drawing.Point(657, 441); + this.lbSnow3h.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); this.lbSnow3h.Name = "lbSnow3h"; this.lbSnow3h.Size = new System.Drawing.Size(51, 14); this.lbSnow3h.TabIndex = 70; @@ -705,7 +749,8 @@ namespace Wetterstation this.lbSnow1h.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(90)))), ((int)(((byte)(10)))), ((int)(((byte)(80)))), ((int)(((byte)(147))))); this.lbSnow1h.Font = new System.Drawing.Font("Microsoft Sans Serif", 7.8F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.lbSnow1h.ForeColor = System.Drawing.SystemColors.ButtonFace; - this.lbSnow1h.Location = new System.Drawing.Point(493, 316); + this.lbSnow1h.Location = new System.Drawing.Point(657, 424); + this.lbSnow1h.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); this.lbSnow1h.Name = "lbSnow1h"; this.lbSnow1h.Size = new System.Drawing.Size(51, 14); this.lbSnow1h.TabIndex = 69; @@ -718,7 +763,8 @@ namespace Wetterstation this.lb3hS.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(90)))), ((int)(((byte)(10)))), ((int)(((byte)(80)))), ((int)(((byte)(147))))); this.lb3hS.Font = new System.Drawing.Font("Microsoft Sans Serif", 7.8F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.lb3hS.ForeColor = System.Drawing.SystemColors.ButtonFace; - this.lb3hS.Location = new System.Drawing.Point(467, 330); + this.lb3hS.Location = new System.Drawing.Point(623, 441); + this.lb3hS.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); this.lb3hS.Name = "lb3hS"; this.lb3hS.Size = new System.Drawing.Size(21, 13); this.lb3hS.TabIndex = 68; @@ -730,7 +776,8 @@ namespace Wetterstation this.lb1hS.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(90)))), ((int)(((byte)(10)))), ((int)(((byte)(80)))), ((int)(((byte)(147))))); this.lb1hS.Font = new System.Drawing.Font("Microsoft Sans Serif", 7.8F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.lb1hS.ForeColor = System.Drawing.SystemColors.ButtonFace; - this.lb1hS.Location = new System.Drawing.Point(467, 316); + this.lb1hS.Location = new System.Drawing.Point(623, 424); + this.lb1hS.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); this.lb1hS.Name = "lb1hS"; this.lb1hS.Size = new System.Drawing.Size(21, 13); this.lb1hS.TabIndex = 67; @@ -836,12 +883,338 @@ namespace Wetterstation this.lbTendenzHumidityIn.TabStop = false; this.lbTendenzHumidityIn.Visible = false; // + // pbForecastNext + // + this.pbForecastNext.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(90)))), ((int)(((byte)(10)))), ((int)(((byte)(80)))), ((int)(((byte)(147))))); + this.pbForecastNext.InitialImage = global::Wetterstation.Properties.Resources._01d_2x; + this.pbForecastNext.Location = new System.Drawing.Point(826, 296); + this.pbForecastNext.Margin = new System.Windows.Forms.Padding(4); + this.pbForecastNext.Name = "pbForecastNext"; + this.pbForecastNext.Size = new System.Drawing.Size(190, 190); + this.pbForecastNext.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom; + this.pbForecastNext.TabIndex = 81; + this.pbForecastNext.TabStop = false; + // + // label5 + // + this.label5.AutoSize = true; + this.label5.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(90)))), ((int)(((byte)(10)))), ((int)(((byte)(80)))), ((int)(((byte)(147))))); + this.label5.Font = new System.Drawing.Font("Microsoft Sans Serif", 7.8F, System.Drawing.FontStyle.Bold); + this.label5.ForeColor = System.Drawing.SystemColors.ButtonFace; + this.label5.Location = new System.Drawing.Point(1023, 306); + this.label5.Name = "label5"; + this.label5.Size = new System.Drawing.Size(74, 17); + this.label5.TabIndex = 82; + this.label5.Text = "Gültig ab"; + // + // label6 + // + this.label6.AutoSize = true; + this.label6.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(90)))), ((int)(((byte)(10)))), ((int)(((byte)(80)))), ((int)(((byte)(147))))); + this.label6.Font = new System.Drawing.Font("Microsoft Sans Serif", 7.8F, System.Drawing.FontStyle.Bold); + this.label6.ForeColor = System.Drawing.SystemColors.ButtonFace; + this.label6.Location = new System.Drawing.Point(1023, 328); + this.label6.Name = "label6"; + this.label6.Size = new System.Drawing.Size(61, 17); + this.label6.TabIndex = 83; + this.label6.Text = "Wolken"; + // + // label7 + // + this.label7.AutoSize = true; + this.label7.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(90)))), ((int)(((byte)(10)))), ((int)(((byte)(80)))), ((int)(((byte)(147))))); + this.label7.Font = new System.Drawing.Font("Microsoft Sans Serif", 7.8F, System.Drawing.FontStyle.Bold); + this.label7.ForeColor = System.Drawing.SystemColors.ButtonFace; + this.label7.Location = new System.Drawing.Point(1023, 350); + this.label7.Name = "label7"; + this.label7.Size = new System.Drawing.Size(90, 17); + this.label7.TabIndex = 84; + this.label7.Text = "Luftfeuchte"; + // + // label8 + // + this.label8.AutoSize = true; + this.label8.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(90)))), ((int)(((byte)(10)))), ((int)(((byte)(80)))), ((int)(((byte)(147))))); + this.label8.Font = new System.Drawing.Font("Microsoft Sans Serif", 7.8F, System.Drawing.FontStyle.Bold); + this.label8.ForeColor = System.Drawing.SystemColors.ButtonFace; + this.label8.Location = new System.Drawing.Point(1023, 372); + this.label8.Name = "label8"; + this.label8.Size = new System.Drawing.Size(76, 17); + this.label8.TabIndex = 85; + this.label8.Text = "Luftdruck"; + // + // label9 + // + this.label9.AutoSize = true; + this.label9.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(90)))), ((int)(((byte)(10)))), ((int)(((byte)(80)))), ((int)(((byte)(147))))); + this.label9.Font = new System.Drawing.Font("Microsoft Sans Serif", 7.8F, System.Drawing.FontStyle.Bold); + this.label9.ForeColor = System.Drawing.SystemColors.ButtonFace; + this.label9.Location = new System.Drawing.Point(1023, 394); + this.label9.Name = "label9"; + this.label9.Size = new System.Drawing.Size(55, 17); + this.label9.TabIndex = 86; + this.label9.Text = "Regen"; + // + // label10 + // + this.label10.AutoSize = true; + this.label10.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(90)))), ((int)(((byte)(10)))), ((int)(((byte)(80)))), ((int)(((byte)(147))))); + this.label10.Font = new System.Drawing.Font("Microsoft Sans Serif", 7.8F, System.Drawing.FontStyle.Bold); + this.label10.ForeColor = System.Drawing.SystemColors.ButtonFace; + this.label10.Location = new System.Drawing.Point(1023, 416); + this.label10.Name = "label10"; + this.label10.Size = new System.Drawing.Size(62, 17); + this.label10.TabIndex = 87; + this.label10.Text = "Schnee"; + // + // label11 + // + this.label11.AutoSize = true; + this.label11.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(90)))), ((int)(((byte)(10)))), ((int)(((byte)(80)))), ((int)(((byte)(147))))); + this.label11.Font = new System.Drawing.Font("Microsoft Sans Serif", 7.8F, System.Drawing.FontStyle.Bold); + this.label11.ForeColor = System.Drawing.SystemColors.ButtonFace; + this.label11.Location = new System.Drawing.Point(1023, 438); + this.label11.Name = "label11"; + this.label11.Size = new System.Drawing.Size(92, 17); + this.label11.TabIndex = 88; + this.label11.Text = "Temperatur"; + // + // label12 + // + this.label12.AutoSize = true; + this.label12.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(90)))), ((int)(((byte)(10)))), ((int)(((byte)(80)))), ((int)(((byte)(147))))); + this.label12.Font = new System.Drawing.Font("Microsoft Sans Serif", 7.8F, System.Drawing.FontStyle.Bold); + this.label12.ForeColor = System.Drawing.SystemColors.ButtonFace; + this.label12.Location = new System.Drawing.Point(1023, 460); + this.label12.Name = "label12"; + this.label12.Size = new System.Drawing.Size(158, 17); + this.label12.TabIndex = 89; + this.label12.Text = "Windgeschwindigkeit"; + // + // lbForecastNextWindSpeed + // + this.lbForecastNextWindSpeed.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(90)))), ((int)(((byte)(10)))), ((int)(((byte)(80)))), ((int)(((byte)(147))))); + this.lbForecastNextWindSpeed.Font = new System.Drawing.Font("Microsoft Sans Serif", 7.8F, System.Drawing.FontStyle.Bold); + this.lbForecastNextWindSpeed.ForeColor = System.Drawing.SystemColors.ButtonFace; + this.lbForecastNextWindSpeed.Location = new System.Drawing.Point(1186, 460); + this.lbForecastNextWindSpeed.Name = "lbForecastNextWindSpeed"; + this.lbForecastNextWindSpeed.Size = new System.Drawing.Size(71, 17); + this.lbForecastNextWindSpeed.TabIndex = 97; + this.lbForecastNextWindSpeed.Text = "---"; + this.lbForecastNextWindSpeed.TextAlign = System.Drawing.ContentAlignment.MiddleRight; + // + // lbForecastNextTemp + // + this.lbForecastNextTemp.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(90)))), ((int)(((byte)(10)))), ((int)(((byte)(80)))), ((int)(((byte)(147))))); + this.lbForecastNextTemp.Font = new System.Drawing.Font("Microsoft Sans Serif", 7.8F, System.Drawing.FontStyle.Bold); + this.lbForecastNextTemp.ForeColor = System.Drawing.SystemColors.ButtonFace; + this.lbForecastNextTemp.Location = new System.Drawing.Point(1186, 438); + this.lbForecastNextTemp.Name = "lbForecastNextTemp"; + this.lbForecastNextTemp.Size = new System.Drawing.Size(71, 17); + this.lbForecastNextTemp.TabIndex = 96; + this.lbForecastNextTemp.Text = "---"; + this.lbForecastNextTemp.TextAlign = System.Drawing.ContentAlignment.MiddleRight; + // + // lbForecastNextSnow + // + this.lbForecastNextSnow.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(90)))), ((int)(((byte)(10)))), ((int)(((byte)(80)))), ((int)(((byte)(147))))); + this.lbForecastNextSnow.Font = new System.Drawing.Font("Microsoft Sans Serif", 7.8F, System.Drawing.FontStyle.Bold); + this.lbForecastNextSnow.ForeColor = System.Drawing.SystemColors.ButtonFace; + this.lbForecastNextSnow.Location = new System.Drawing.Point(1186, 416); + this.lbForecastNextSnow.Name = "lbForecastNextSnow"; + this.lbForecastNextSnow.Size = new System.Drawing.Size(71, 17); + this.lbForecastNextSnow.TabIndex = 95; + this.lbForecastNextSnow.Text = "---"; + this.lbForecastNextSnow.TextAlign = System.Drawing.ContentAlignment.MiddleRight; + // + // lbForecastNextRain + // + this.lbForecastNextRain.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(90)))), ((int)(((byte)(10)))), ((int)(((byte)(80)))), ((int)(((byte)(147))))); + this.lbForecastNextRain.Font = new System.Drawing.Font("Microsoft Sans Serif", 7.8F, System.Drawing.FontStyle.Bold); + this.lbForecastNextRain.ForeColor = System.Drawing.SystemColors.ButtonFace; + this.lbForecastNextRain.Location = new System.Drawing.Point(1186, 394); + this.lbForecastNextRain.Name = "lbForecastNextRain"; + this.lbForecastNextRain.Size = new System.Drawing.Size(71, 17); + this.lbForecastNextRain.TabIndex = 94; + this.lbForecastNextRain.Text = "---"; + this.lbForecastNextRain.TextAlign = System.Drawing.ContentAlignment.MiddleRight; + // + // lbForecastNextPressure + // + this.lbForecastNextPressure.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(90)))), ((int)(((byte)(10)))), ((int)(((byte)(80)))), ((int)(((byte)(147))))); + this.lbForecastNextPressure.Font = new System.Drawing.Font("Microsoft Sans Serif", 7.8F, System.Drawing.FontStyle.Bold); + this.lbForecastNextPressure.ForeColor = System.Drawing.SystemColors.ButtonFace; + this.lbForecastNextPressure.Location = new System.Drawing.Point(1186, 372); + this.lbForecastNextPressure.Name = "lbForecastNextPressure"; + this.lbForecastNextPressure.Size = new System.Drawing.Size(71, 17); + this.lbForecastNextPressure.TabIndex = 93; + this.lbForecastNextPressure.Text = "---"; + this.lbForecastNextPressure.TextAlign = System.Drawing.ContentAlignment.MiddleRight; + // + // lbForecastNextHumidity + // + this.lbForecastNextHumidity.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(90)))), ((int)(((byte)(10)))), ((int)(((byte)(80)))), ((int)(((byte)(147))))); + this.lbForecastNextHumidity.Font = new System.Drawing.Font("Microsoft Sans Serif", 7.8F, System.Drawing.FontStyle.Bold); + this.lbForecastNextHumidity.ForeColor = System.Drawing.SystemColors.ButtonFace; + this.lbForecastNextHumidity.Location = new System.Drawing.Point(1186, 350); + this.lbForecastNextHumidity.Name = "lbForecastNextHumidity"; + this.lbForecastNextHumidity.Size = new System.Drawing.Size(71, 17); + this.lbForecastNextHumidity.TabIndex = 92; + this.lbForecastNextHumidity.Text = "---"; + this.lbForecastNextHumidity.TextAlign = System.Drawing.ContentAlignment.MiddleRight; + // + // lbForecastNextClouds + // + this.lbForecastNextClouds.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(90)))), ((int)(((byte)(10)))), ((int)(((byte)(80)))), ((int)(((byte)(147))))); + this.lbForecastNextClouds.Font = new System.Drawing.Font("Microsoft Sans Serif", 7.8F, System.Drawing.FontStyle.Bold); + this.lbForecastNextClouds.ForeColor = System.Drawing.SystemColors.ButtonFace; + this.lbForecastNextClouds.Location = new System.Drawing.Point(1186, 328); + this.lbForecastNextClouds.Name = "lbForecastNextClouds"; + this.lbForecastNextClouds.Size = new System.Drawing.Size(71, 17); + this.lbForecastNextClouds.TabIndex = 91; + this.lbForecastNextClouds.Text = "---"; + this.lbForecastNextClouds.TextAlign = System.Drawing.ContentAlignment.MiddleRight; + // + // lbForecastNextFrom + // + this.lbForecastNextFrom.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(90)))), ((int)(((byte)(10)))), ((int)(((byte)(80)))), ((int)(((byte)(147))))); + this.lbForecastNextFrom.Font = new System.Drawing.Font("Microsoft Sans Serif", 7.8F, System.Drawing.FontStyle.Bold); + this.lbForecastNextFrom.ForeColor = System.Drawing.SystemColors.ButtonFace; + this.lbForecastNextFrom.Location = new System.Drawing.Point(1186, 306); + this.lbForecastNextFrom.Name = "lbForecastNextFrom"; + this.lbForecastNextFrom.Size = new System.Drawing.Size(71, 17); + this.lbForecastNextFrom.TabIndex = 90; + this.lbForecastNextFrom.Text = "---"; + this.lbForecastNextFrom.TextAlign = System.Drawing.ContentAlignment.MiddleRight; + // + // label13 + // + this.label13.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(90)))), ((int)(((byte)(10)))), ((int)(((byte)(80)))), ((int)(((byte)(147))))); + this.label13.Font = new System.Drawing.Font("Microsoft Sans Serif", 7.8F, System.Drawing.FontStyle.Bold); + this.label13.ForeColor = System.Drawing.SystemColors.ButtonFace; + this.label13.Location = new System.Drawing.Point(1263, 460); + this.label13.Name = "label13"; + this.label13.Size = new System.Drawing.Size(40, 17); + this.label13.TabIndex = 105; + this.label13.Text = "ms"; + this.label13.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; + // + // label14 + // + this.label14.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(90)))), ((int)(((byte)(10)))), ((int)(((byte)(80)))), ((int)(((byte)(147))))); + this.label14.Font = new System.Drawing.Font("Microsoft Sans Serif", 7.8F, System.Drawing.FontStyle.Bold); + this.label14.ForeColor = System.Drawing.SystemColors.ButtonFace; + this.label14.Location = new System.Drawing.Point(1263, 438); + this.label14.Name = "label14"; + this.label14.Size = new System.Drawing.Size(40, 17); + this.label14.TabIndex = 104; + this.label14.Text = "°C"; + this.label14.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; + // + // label15 + // + this.label15.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(90)))), ((int)(((byte)(10)))), ((int)(((byte)(80)))), ((int)(((byte)(147))))); + this.label15.Font = new System.Drawing.Font("Microsoft Sans Serif", 7.8F, System.Drawing.FontStyle.Bold); + this.label15.ForeColor = System.Drawing.SystemColors.ButtonFace; + this.label15.Location = new System.Drawing.Point(1263, 416); + this.label15.Name = "label15"; + this.label15.Size = new System.Drawing.Size(40, 17); + this.label15.TabIndex = 103; + this.label15.Text = "mm"; + this.label15.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; + // + // label16 + // + this.label16.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(90)))), ((int)(((byte)(10)))), ((int)(((byte)(80)))), ((int)(((byte)(147))))); + this.label16.Font = new System.Drawing.Font("Microsoft Sans Serif", 7.8F, System.Drawing.FontStyle.Bold); + this.label16.ForeColor = System.Drawing.SystemColors.ButtonFace; + this.label16.Location = new System.Drawing.Point(1263, 394); + this.label16.Name = "label16"; + this.label16.Size = new System.Drawing.Size(40, 17); + this.label16.TabIndex = 102; + this.label16.Text = "mm"; + this.label16.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; + // + // label17 + // + this.label17.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(90)))), ((int)(((byte)(10)))), ((int)(((byte)(80)))), ((int)(((byte)(147))))); + this.label17.Font = new System.Drawing.Font("Microsoft Sans Serif", 7.8F, System.Drawing.FontStyle.Bold); + this.label17.ForeColor = System.Drawing.SystemColors.ButtonFace; + this.label17.Location = new System.Drawing.Point(1263, 372); + this.label17.Name = "label17"; + this.label17.Size = new System.Drawing.Size(40, 17); + this.label17.TabIndex = 101; + this.label17.Text = "hPa"; + this.label17.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; + // + // label18 + // + this.label18.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(90)))), ((int)(((byte)(10)))), ((int)(((byte)(80)))), ((int)(((byte)(147))))); + this.label18.Font = new System.Drawing.Font("Microsoft Sans Serif", 7.8F, System.Drawing.FontStyle.Bold); + this.label18.ForeColor = System.Drawing.SystemColors.ButtonFace; + this.label18.Location = new System.Drawing.Point(1263, 350); + this.label18.Name = "label18"; + this.label18.Size = new System.Drawing.Size(40, 17); + this.label18.TabIndex = 100; + this.label18.Text = "%"; + this.label18.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; + // + // label19 + // + this.label19.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(90)))), ((int)(((byte)(10)))), ((int)(((byte)(80)))), ((int)(((byte)(147))))); + this.label19.Font = new System.Drawing.Font("Microsoft Sans Serif", 7.8F, System.Drawing.FontStyle.Bold); + this.label19.ForeColor = System.Drawing.SystemColors.ButtonFace; + this.label19.Location = new System.Drawing.Point(1263, 328); + this.label19.Name = "label19"; + this.label19.Size = new System.Drawing.Size(40, 17); + this.label19.TabIndex = 99; + this.label19.Text = "%"; + this.label19.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; + // + // label20 + // + this.label20.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(90)))), ((int)(((byte)(10)))), ((int)(((byte)(80)))), ((int)(((byte)(147))))); + this.label20.Font = new System.Drawing.Font("Microsoft Sans Serif", 7.8F, System.Drawing.FontStyle.Bold); + this.label20.ForeColor = System.Drawing.SystemColors.ButtonFace; + this.label20.Location = new System.Drawing.Point(1263, 306); + this.label20.Name = "label20"; + this.label20.Size = new System.Drawing.Size(40, 17); + this.label20.TabIndex = 98; + this.label20.Text = "Uhr"; + this.label20.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; + // // Hintergrund // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.BackgroundImage = global::Wetterstation.Properties.Resources.saturn; - this.ClientSize = new System.Drawing.Size(1008, 729); + this.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch; + this.ClientSize = new System.Drawing.Size(1344, 897); + this.Controls.Add(this.label13); + this.Controls.Add(this.label14); + this.Controls.Add(this.label15); + this.Controls.Add(this.label16); + this.Controls.Add(this.label17); + this.Controls.Add(this.label18); + this.Controls.Add(this.label19); + this.Controls.Add(this.label20); + this.Controls.Add(this.lbForecastNextWindSpeed); + this.Controls.Add(this.lbForecastNextTemp); + this.Controls.Add(this.lbForecastNextSnow); + this.Controls.Add(this.lbForecastNextRain); + this.Controls.Add(this.lbForecastNextPressure); + this.Controls.Add(this.lbForecastNextHumidity); + this.Controls.Add(this.lbForecastNextClouds); + this.Controls.Add(this.lbForecastNextFrom); + this.Controls.Add(this.label12); + this.Controls.Add(this.label11); + this.Controls.Add(this.label10); + this.Controls.Add(this.label9); + this.Controls.Add(this.label8); + this.Controls.Add(this.label7); + this.Controls.Add(this.label6); + this.Controls.Add(this.label5); + this.Controls.Add(this.pbForecastNext); this.Controls.Add(this.lbTendenzHumidityIn); this.Controls.Add(this.lbTendenzHumidityOut); this.Controls.Add(this.label3); @@ -918,6 +1291,7 @@ namespace Wetterstation ((System.ComponentModel.ISupportInitialize)(this.pbTendenzTempIn)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.lbTendenzHumidityOut)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.lbTendenzHumidityIn)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.pbForecastNext)).EndInit(); this.ResumeLayout(false); this.PerformLayout(); @@ -985,6 +1359,31 @@ namespace Wetterstation private Label label4; private PictureBox lbTendenzHumidityOut; private PictureBox lbTendenzHumidityIn; + private PictureBox pbForecastNext; + private Label label5; + private Label label6; + private Label label7; + private Label label8; + private Label label9; + private Label label10; + private Label label11; + private Label label12; + private Label lbForecastNextWindSpeed; + private Label lbForecastNextTemp; + private Label lbForecastNextSnow; + private Label lbForecastNextRain; + private Label lbForecastNextPressure; + private Label lbForecastNextHumidity; + private Label lbForecastNextClouds; + private Label lbForecastNextFrom; + private Label label13; + private Label label14; + private Label label15; + private Label label16; + private Label label17; + private Label label18; + private Label label19; + private Label label20; } } diff --git a/Wetterstation/Form1.cs b/Wetterstation/Form1.cs index ac88e06605bc953b7995b0f035b150acd36114c4..252690f98d7a173440d2a6f4de3c2d40ed73d407 100644 --- a/Wetterstation/Form1.cs +++ b/Wetterstation/Form1.cs @@ -122,7 +122,7 @@ namespace Wetterstation lbUhr.Text = DateTime.Now.ToLongTimeString(); lbDatum.Text = DateTime.Now.ToShortDateString(); } - //MQTT connect + // MQTT connect public void mqttStart() { String topic_publish = "/wetterstation/backend/" + WeatherstationSettings.frontendId + "/"; @@ -143,6 +143,7 @@ namespace Wetterstation this.myClient.Publish(topic_publish, Encoding.UTF8.GetBytes("Request_frontend")); } + // Send message per MQTT public void msgPublish(String topic, String message) { Console.Write("Sending via MQTT: "); @@ -150,6 +151,7 @@ namespace Wetterstation Console.WriteLine("Message: " + message); this.myClient.Publish(topic, Encoding.UTF8.GetBytes(message)); } + // Got message from MQTT private void client_recievedMessage(object sender, MqttMsgPublishEventArgs e) { // Handle message received @@ -163,6 +165,10 @@ namespace Wetterstation { this.updateFormForecast(message); } + else if (e.Topic.Equals(WeatherstationSettings.mqtt_topic_frontend + WeatherstationSettings.frontendId + "/forecastNext")) + { + this.updateFormForecastNext(message); + } else if (e.Topic.Equals(WeatherstationSettings.mqtt_topic_frontend + WeatherstationSettings.frontendId + "/sensors")) { this.updateFormSensors(message); @@ -174,6 +180,7 @@ namespace Wetterstation } } + // Update graph on frontend public void updateFormChart(String message) { double temp; @@ -230,8 +237,7 @@ namespace Wetterstation } } } - - // momentan noch von openweathermap + // Update general weather objects on frontend public void updateFormWeather(String message) { Console.WriteLine("Entered updateFormWeather"); @@ -276,19 +282,20 @@ namespace Wetterstation } if(!node1Out.rain) { - lbRain1h.Invoke(new Action(() => { lbRain1h.Text = weatherData.rain1h + " L/h"; })); + lbRain1h.Invoke(new Action(() => { lbRain1h.Text = weatherData.rain1h + " mm"; })); } - lbRain3h.Invoke(new Action(() => { lbRain3h.Text = weatherData.rain3h + " L/h"; })); + lbRain3h.Invoke(new Action(() => { lbRain3h.Text = weatherData.rain3h + " mm"; })); if (!node1Out.snow) { - lbSnow1h.Invoke(new Action(() => { lbSnow1h.Text = weatherData.snow1h + " mm/h"; })); + lbSnow1h.Invoke(new Action(() => { lbSnow1h.Text = weatherData.snow1h + " mm"; })); } - lbSnow3h.Invoke(new Action(() => { lbSnow3h.Text = weatherData.snow3h + " mm/h"; })); + lbSnow3h.Invoke(new Action(() => { lbSnow3h.Text = weatherData.snow3h + " mm"; })); } catch (Exception ignored) { Console.WriteLine(ignored.Message); } } + // Rotate an image private Bitmap RotateImage(Bitmap bmp, float angle) { float height = bmp.Height; @@ -304,13 +311,15 @@ namespace Wetterstation } return rotatedImage; } + // Update forecast images public void updateFormForecast(String message) { Console.WriteLine("Entered updateFormForecast"); try { dynamic weatherData = JsonConvert.DeserializeObject(message.ToString()); - if(weatherData[0].icon1 != null) lbForecastImage1.Invoke(new Action(() => { lbForecastImage1.Image = global::Wetterstation.Properties.Resources.ResourceManager.GetObject("_" + weatherData[0].icon1 + "_2x"); })); + + if (weatherData[0].icon1 != null) lbForecastImage1.Invoke(new Action(() => { lbForecastImage1.Image = global::Wetterstation.Properties.Resources.ResourceManager.GetObject("_" + weatherData[0].icon1 + "_2x"); })); lbForecastTemp1.Invoke(new Action(() => { lbForecastTemp1.Text = weatherData[0].temp + " °C"; })); lbForecastDay1.Invoke(new Action(() => { lbForecastDay1.Text = getDayFromDateString(weatherData[0].from.ToString()); })); @@ -319,7 +328,7 @@ namespace Wetterstation lbForecastDay2.Invoke(new Action(() => { lbForecastDay2.Text = getDayFromDateString(weatherData[1].from.ToString()); })); if (weatherData[2].icon1 != null) lbForecastImage3.Invoke(new Action(() => { lbForecastImage3.Image = global::Wetterstation.Properties.Resources.ResourceManager.GetObject("_" + weatherData[2].icon1 + "_2x"); })); - lbForecastTemp3.Invoke(new Action(() => { lbForecastTemp3.Text = weatherData[2].temp + " °C"; }));lbForecastDay1.Invoke(new Action(() => { lbForecastDay1.Text = getDayFromDateString(weatherData[0].from.ToString()); })); + lbForecastTemp3.Invoke(new Action(() => { lbForecastTemp3.Text = weatherData[2].temp + " °C"; })); lbForecastDay1.Invoke(new Action(() => { lbForecastDay1.Text = getDayFromDateString(weatherData[0].from.ToString()); })); lbForecastDay3.Invoke(new Action(() => { lbForecastDay3.Text = getDayFromDateString(weatherData[2].from.ToString()); })); if (weatherData[3].icon1 != null) lbForecastImage4.Invoke(new Action(() => { lbForecastImage4.Image = global::Wetterstation.Properties.Resources.ResourceManager.GetObject("_" + weatherData[3].icon1 + "_2x"); })); @@ -332,6 +341,32 @@ namespace Wetterstation } catch (Exception ignored) { } } + // Update next forecast + public void updateFormForecastNext(String message) + { + Console.WriteLine("Entered updateFormForecastNext"); + try + { + dynamic weatherData = JsonConvert.DeserializeObject(message.ToString()); + + if (weatherData.icon1 != null) pbForecastNext.Invoke(new Action(() => { pbForecastNext.Image = global::Wetterstation.Properties.Resources.ResourceManager.GetObject("_" + weatherData.icon1 + "_2x"); })); + lbForecastNextFrom.Invoke(new Action(() => { lbForecastNextFrom.Text = getTimeFromDateString(weatherData.from.ToString()); })); + lbForecastNextClouds.Invoke(new Action(() => { lbForecastNextClouds.Text = weatherData.clouds; })); + lbForecastNextHumidity.Invoke(new Action(() => { lbForecastNextHumidity.Text = weatherData.humidity; })); + lbForecastNextPressure.Invoke(new Action(() => { lbForecastNextPressure.Text = weatherData.pressure; })); + lbForecastNextRain.Invoke(new Action(() => { lbForecastNextRain.Text = weatherData.rain3h; })); + lbForecastNextSnow.Invoke(new Action(() => { lbForecastNextSnow.Text = weatherData.snow3h; })); + lbForecastNextTemp.Invoke(new Action(() => { lbForecastNextTemp.Text = weatherData.temp; })); + lbForecastNextWindSpeed.Invoke(new Action(() => { lbForecastNextWindSpeed.Text = weatherData.windSpeed; })); + } + catch (Exception ignored) { } + } + public String getTimeFromDateString(String strDate) + { + DateTime dt = DateTime.ParseExact(strDate, "yyyy-MM-dd HH:mm:ss", CultureInfo.InvariantCulture); + CultureInfo culture = new CultureInfo("de-DE"); + return dt.ToString("HH:mm"); + } public String getDayFromDateString(String strDate) { DateTime dt = DateTime.ParseExact(strDate, "yyyy-MM-dd HH:mm:ss", CultureInfo.InvariantCulture); diff --git a/Wetterstation/Sensor.cs b/Wetterstation/Sensor.cs index a809799306d042903eda2efd5d1cce02a5f02c8b..a804548a8a839422ae39172fec675c2a0627895b 100644 --- a/Wetterstation/Sensor.cs +++ b/Wetterstation/Sensor.cs @@ -78,7 +78,7 @@ namespace Wetterstation oldTemp = temp; } } - if ((up > 5 || down > 5) && _temperatures.Count == 10) + if ((up > 2 || down > 2) && _temperatures.Count == 10) { if (up > down) return 180; else if (down > up) return 0; @@ -112,7 +112,7 @@ namespace Wetterstation } } - if ((up > 5 || down > 5) && _pressures.Count == 10) { + if ((up > 2 || down > 2) && _pressures.Count == 10) { if (up > down) return 180; else if (down > up) return 0; else return -1; @@ -144,7 +144,7 @@ namespace Wetterstation oldHumidity = humidity; } } - if ((up > 5 || down > 5) && _humiditys.Count == 10) + if ((up > 2 || down > 2) && _humiditys.Count == 10) { if (up > down) return 180; else if (down > up) return 0;