Commit 8d51ca28 authored by Charles Still's avatar Charles Still
Browse files

start to add push poll

parent dcfa5cb7
...@@ -56,6 +56,17 @@ namespace BeeWeatherPollenTracker ...@@ -56,6 +56,17 @@ namespace BeeWeatherPollenTracker
var pollenRegionForecast = pollenData.Content var pollenRegionForecast = pollenData.Content
.First(p => p.PartregionId.ToString() == ConfigurationManager.AppSettings["PartregionId"]); .First(p => p.PartregionId.ToString() == ConfigurationManager.AppSettings["PartregionId"]);
// 2020-03-11 11:00 Uhr
beehive_poll_forecast poll_measure = new beehive_poll_forecast();
poll_measure.Last_update_on = DateTime.Parse(pollenData.LastUpdate.Substring(0,pollenData.LastUpdate.Length-3));
poll_measure.Sender = pollenData.Sender;
poll_measure.Region_name = pollenRegionForecast.PartregionName;
//pollenRegionForecast.Pollen.Erle
poll_measure.Pollen = "Erle";
poll_measure.Today = pollenRegionForecast.Pollen.Erle.Today;
poll_measure.Tomorrow = pollenRegionForecast.Pollen.Erle.Tomorrow;
poll_measure.Day_after_to = pollenRegionForecast.Pollen.Erle.DayafterTo;
poll_measure.
} }
catch (Exception e) catch (Exception e)
{ {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment