diff --git a/Wetterstation/Form1.Designer.cs b/Wetterstation/Form1.Designer.cs index 97b2e47a4a2555faaa7b336dd5917a9386793553..67ba3625cd714fd9937c1a94a7298392503428a1 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 @@ -261,14 +287,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(1085, 807); + 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(137, 35); + 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 // @@ -276,12 +303,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(1072, 850); + 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(151, 32); this.lbDatum.TabIndex = 20; this.lbDatum.Text = "01.01.1970"; + this.lbDatum.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // lbForecastDay1 // @@ -289,7 +317,7 @@ 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(169, 293); + 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(64, 58); @@ -300,7 +328,7 @@ 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(236, 334); + 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(71, 68); @@ -311,7 +339,7 @@ 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(307, 334); + 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(71, 68); @@ -322,7 +350,7 @@ 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(376, 334); + 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(71, 68); @@ -333,7 +361,7 @@ 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(441, 334); + 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(71, 68); @@ -347,7 +375,7 @@ 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(239, 293); + 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(64, 58); @@ -361,7 +389,7 @@ 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(312, 293); + 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(64, 58); @@ -375,7 +403,7 @@ 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(376, 293); + 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(64, 58); @@ -389,7 +417,7 @@ 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(444, 293); + 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(64, 58); @@ -456,27 +484,28 @@ namespace Wetterstation this.lbHintergrund.Location = new System.Drawing.Point(16, 22); this.lbHintergrund.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); this.lbHintergrund.Name = "lbHintergrund"; - this.lbHintergrund.Size = new System.Drawing.Size(1312, 436); + 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, 814); + 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(1343, 62); + 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(165, 334); + 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(71, 68); @@ -581,7 +610,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(165, 406); + this.lbForecastTemp1.Location = new System.Drawing.Point(162, 441); this.lbForecastTemp1.Name = "lbForecastTemp1"; this.lbForecastTemp1.Size = new System.Drawing.Size(71, 17); this.lbForecastTemp1.TabIndex = 55; @@ -593,7 +622,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(236, 406); + this.lbForecastTemp2.Location = new System.Drawing.Point(233, 441); this.lbForecastTemp2.Name = "lbForecastTemp2"; this.lbForecastTemp2.Size = new System.Drawing.Size(71, 17); this.lbForecastTemp2.TabIndex = 56; @@ -605,7 +634,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(307, 406); + this.lbForecastTemp3.Location = new System.Drawing.Point(304, 441); this.lbForecastTemp3.Name = "lbForecastTemp3"; this.lbForecastTemp3.Size = new System.Drawing.Size(71, 17); this.lbForecastTemp3.TabIndex = 57; @@ -617,7 +646,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(376, 406); + this.lbForecastTemp4.Location = new System.Drawing.Point(373, 441); this.lbForecastTemp4.Name = "lbForecastTemp4"; this.lbForecastTemp4.Size = new System.Drawing.Size(67, 17); this.lbForecastTemp4.TabIndex = 58; @@ -629,7 +658,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(441, 406); + this.lbForecastTemp5.Location = new System.Drawing.Point(438, 441); this.lbForecastTemp5.Name = "lbForecastTemp5"; this.lbForecastTemp5.Size = new System.Drawing.Size(71, 17); this.lbForecastTemp5.TabIndex = 59; @@ -638,7 +667,7 @@ namespace Wetterstation // // cartesianChart1 // - this.cartesianChart1.Location = new System.Drawing.Point(19, 480); + this.cartesianChart1.Location = new System.Drawing.Point(19, 527); this.cartesianChart1.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2); this.cartesianChart1.Name = "cartesianChart1"; this.cartesianChart1.Size = new System.Drawing.Size(1309, 310); @@ -651,7 +680,7 @@ 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(670, 300); + 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(55, 17); @@ -664,7 +693,7 @@ 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(663, 372); + 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(62, 17); @@ -677,7 +706,7 @@ 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(623, 317); + 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(26, 17); @@ -690,7 +719,7 @@ 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(623, 334); + 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(26, 17); @@ -702,7 +731,7 @@ 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(673, 317); + 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(52, 17); @@ -715,7 +744,7 @@ 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(673, 334); + 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(52, 17); @@ -728,7 +757,7 @@ 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(657, 406); + 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(68, 17); @@ -741,7 +770,7 @@ 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(657, 389); + 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(68, 17); @@ -755,7 +784,7 @@ 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(623, 406); + 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(26, 17); @@ -768,7 +797,7 @@ 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(623, 389); + 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(26, 17); @@ -883,6 +912,306 @@ 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(836, 300); + 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(1033, 310); + 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(1033, 332); + 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(1033, 354); + 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(1033, 376); + 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(1033, 398); + 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(1033, 420); + 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(1033, 442); + 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(1033, 464); + 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(1196, 464); + 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(1196, 442); + 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(1196, 420); + 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(1196, 398); + 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(1196, 376); + 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(1196, 354); + 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(1196, 332); + 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(1196, 310); + 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(1273, 464); + 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(1273, 442); + 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(1273, 420); + 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(1273, 398); + 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(1273, 376); + 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(1273, 354); + 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(1273, 332); + 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(1273, 310); + 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(8F, 16F); @@ -890,6 +1219,31 @@ namespace Wetterstation this.BackgroundImage = global::Wetterstation.Properties.Resources.saturn; 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); @@ -967,6 +1321,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(); @@ -1034,6 +1389,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);