Skip to content

A little libary to fetch DWD (Deutscher Wetterdienst) warnings.

License

Notifications You must be signed in to change notification settings

kvn-stgl/dwdWarnings

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dwdWarning Build Status

A little libary to fetch DWD (Deutscher Wetterdienst) warnings.

Usage

You can either get warnings by a region or the id.

Warnings.GetWarningsById(int id);
Warnings.GetWarningsByRegionName(string county);

Warnings.GetWarningsByIdAsync(int id);
Warnings.GetWarningsByRegionNameAsync(string county);

Every operation gives back a WarningResult with informations:

    public class WarningResult
    {
        /// <summary>
        /// List of actual Warnings
        /// </summary>
        public IList<Warning> Warnings { get; set; }

        /// <summary>
        /// Last Update Time
        /// </summary>
        public DateTime LastUpdate { get; set; }
    }
public class Warning
    {
        /// <summary>
        /// Id of the area
        /// </summary>
        public int AreaId { get; set; }

        /// <summary>
        /// Short name of the state
        /// </summary>
        public string StateShort { get; set; }

        /// <summary>
        /// Name of the state
        /// </summary>
        public string State { get; set; }

        /// <summary>
        /// Name of the Region
        /// </summary>
        public string RegionName { get; set; }

        /// <summary>
        /// Description of the warning
        /// </summary>
        public string Description { get; set; }

        /// <summary>
        /// Start time
        /// </summary>
        public DateTime Start { get; set; }

        /// <summary>
        /// End time
        /// </summary>
        public DateTime End { get; set; }

        /// <summary>
        /// Headline of the warning
        /// </summary>
        public string Headline { get; set; }

        /// <summary>
        /// Name of the event
        /// </summary>
        public string Event { get; set; }

        /// <summary>
        /// Instructions to do on the warning
        /// </summary>
        public string Instruction { get; set; }

        /// <summary>
        /// Type of the warning
        /// </summary>
        public int Type { get; set; }

        /// <summary>
        /// Description of the warning type
        /// </summary>
        public int TypeDescription { get; set; }

        /// <summary>
        /// Level of the warning
        /// </summary>
        public int Level { get; set; }
    }

About

A little libary to fetch DWD (Deutscher Wetterdienst) warnings.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages