from gettext import gettext as _

icon_loc = "@icon_location@/share/icons/hicolor/scalable/mousam_icons/"

icons = {
    "0": icon_loc + "clear-day.svg",
    "1": icon_loc + "overcast-day.svg",
    "2": icon_loc + "overcast-day.svg",
    "3": icon_loc + "overcast.svg",
    "51": icon_loc + "partly-cloudy-day-drizzle.svg",
    "53": icon_loc + "drizzle.svg",
    "55": icon_loc + "overcast-drizzle.svg",
    "56": icon_loc + "partly-cloudy-day-snow.svg",
    "57": icon_loc + "overcast-snow.svg",
    "61": icon_loc + "partly-cloudy-day-rain.svg",
    "63": icon_loc + "rain.svg",
    "65": icon_loc + "thunderstorms-rain.svg",
    "66": icon_loc + "overcast-snow.svg",
    "67": icon_loc + "thunderstorms-rain.svg",
    "45": icon_loc + "fog.svg",
    "48": icon_loc + "fog.svg",
    "71": icon_loc + "partly-cloudy-day-snow.svg",
    "73": icon_loc + "snow.svg",
    "75": icon_loc + "snowflake.svg",
    "77": icon_loc + "snowflake.svg",
    "80": icon_loc + "overcast-day-rain.svg",
    "81": icon_loc + "rain.svg",
    "82": icon_loc + "thunderstorms-rain.svg",
    "85": icon_loc + "snow.svg",
    "86": icon_loc + "snowflake.svg",
    "95": icon_loc + "thunderstorms-rain.svg",
    "96": icon_loc + "thunderstorms-day-overcast-snow.svg",
    "99": icon_loc + "snowflake.svg",
    
    "0n": icon_loc + "clear-night.svg",
    "1n": icon_loc + "overcast-night.svg",
    "2n": icon_loc + "overcast-night.svg",
    "3n": icon_loc + "overcast.svg",
    "51n": icon_loc + "partly-cloudy-night-drizzle.svg",
    "53n": icon_loc + "drizzle.svg",
    "55n": icon_loc + "overcast-drizzle.svg",
    "56n": icon_loc + "partly-cloudy-night-snow.svg",
    "57n": icon_loc + "overcast-snow.svg",
    "61n": icon_loc + "partly-cloudy-night-rain.svg",
    "63n": icon_loc + "rain.svg",
    "65n": icon_loc + "thunderstorms-rain.svg",
    "66n": icon_loc + "overcast-snow.svg",
    "67n": icon_loc + "thunderstorms-rain.svg",
    "45n": icon_loc + "fog.svg",
    "48n": icon_loc + "fog.svg",
    "71n": icon_loc + "partly-cloudy-night-snow.svg",
    "73n": icon_loc + "snow.svg",
    "75n": icon_loc + "snowflake.svg",
    "77n": icon_loc + "snowflake.svg",
    "80n": icon_loc + "overcast-night-rain.svg",
    "81n": icon_loc + "rain.svg",
    "82n": icon_loc + "thunderstorms-rain.svg",
    "85n": icon_loc + "snow.svg",
    "86n": icon_loc + "snowflake.svg",
    "95n": icon_loc + "thunderstorms-rain.svg",
    "96n": icon_loc + "thunderstorms-night-overcast-snow.svg",
    "99n": icon_loc + "snowflake.svg",
    "arrow": icon_loc + "arrow.svg",
    "raindrop": icon_loc + "raindrop.svg",
    "raindrops": icon_loc + "raindrops.svg",
    "wind": icon_loc + "wind.svg",
}

bg_css = {
    "0": "clear_sky",
    "1": "few_clouds",
    "2": "few_clouds",
    "3": "overcast",
    "51": "showers_scattered",
    "53": "showers_scattered",
    "55": "showers_scattered",
    "56": "snow",
    "57": "snow",
    "61": "showers_scattered",
    "63": "showers_large",
    "65": "showers_large",
    "66": "snow",
    "67": "showers_large",
    "45": "fog",
    "48": "fog",
    "71": "snow",
    "73": "snow",
    "75": "snow",
    "77": "snow",
    "80": "showers_large",
    "81": "showers_large",
    "82": "showers_large",
    "85": "snow",
    "86": "snow",
    "95": "storm",
    "96": "storm",
    "99": "snow",
    
    "0n": "clear_sky_night",
    "1n": "few_clouds_night",
    "2n": "few_clouds_night",
    "3n": "overcast_night",
    "51n": "showers_scattered_night",
    "53n": "showers_scattered_night",
    "55n": "showers_scattered_night",
    "56n": "snow_night",
    "57n": "snow_night",
    "61n": "showers_scattered_night",
    "63n": "showers_large_night",
    "65n": "showers_large_night",
    "66n": "snow_night",
    "67n": "showers_large_night",
    "45n": "fog_night",
    "48n": "fog_night",
    "71n": "snow_night",
    "73n": "snow_night",
    "75n": "snow_night",
    "77n": "snow_night",
    "80n": "showers_large_night",
    "81n": "showers_large_night",
    "82n": "showers_large_night",
    "85n": "snow_night",
    "86n": "snow_night",
    "95n": "storm_night",
    "96n": "storm_night",
    "99n": "snow_night",
}
# 1 ->   indicates day
# 1n ->  indicates night

conditon = {
    "0": _("Clear sky"),
    "1": _("Few Clouds"),
    "2": _("Partly Cloudy"),
    "3": _("Overcast"),
    "45": _("Fog"),
    "48": _("Mist"),
    "51": _("Light Drizzle"),
    "53": _("Moderate Drizzle"),
    "55": _("Heavy Intensity Drizzle"),
    "56": _("Light Freezing Drizzle"),
    "57": _("Heavy Freezing Drizzle"),
    "61": _("Light Rain"),
    "63": _("Moderate Rain"),
    "65": _("Heavy Rain"),
    "66": _("Light Freezing Rain"),
    "67": _("Heavy Freezing Rain"),
    "71": _("Light Snow Fall"),
    "73": _("Moderate Snow Fall"),
    "75": _("Heavy Snow Fall"),
    "77": _("Snow grains"),
    "80": _("Light Rain Showers"),
    "81": _("Moderate Rain Showers"),
    "82": _("Heavy Rain Showers"),
    "85": _("Light Snow Showers"),
    "86": _("Heavy Snow Showers "),
    "95": _("Thunderstorm"),
    "96": _("Thunderstorm with Hail"),
}

hpa_to_inhg = 0.02953
