GithubHelp home page GithubHelp logo

MDI icons about bureau_of_meteorology HOT 9 CLOSED

bremor avatar bremor commented on May 28, 2024
MDI icons

from bureau_of_meteorology.

Comments (9)

bremor avatar bremor commented on May 28, 2024 1

No worries, leave it with me 👍
What was the format of the sensor state on the old platform? Was it for example “sunny” or “mdi:sunny”

from bureau_of_meteorology.

bremor avatar bremor commented on May 28, 2024 1

mdi icons added in v0.7

from bureau_of_meteorology.

oneseventhree avatar oneseventhree commented on May 28, 2024

+1! Great integration.
I use Dark Sky for the icon's and would love to make the switch as my tileboard doesn't show anything when using this integrations icon:

DarkSky:
Screen Shot 2020-10-31 at 1 56 55 pm

BOM:
Screen Shot 2020-10-31 at 1 57 09 pm

from bureau_of_meteorology.

ntompson avatar ntompson commented on May 28, 2024

Awesome. It was the latter: “mdi:sunny”.

from bureau_of_meteorology.

bremor avatar bremor commented on May 28, 2024

I'm working on this now guys, I need to create a "map", to map BOMs values to MDI Icons, so far I have the below. If you could please help up by letting me know what BOM icons you have come across.

MDI_ICON_MAP = {
"cloudy": "mdi:weather-cloudy",
"light_shower": "mdi:weather-partly-rainy",
"sunny": "mdi:weather-sunny",
"windy": "mdi:weather-windy",
}

from bureau_of_meteorology.

DavidFW1960 avatar DavidFW1960 commented on May 28, 2024

Someone asked me for these in the old ftp component but I couldn't get it to use a variable mapping. The numbers are the BOM available conditions

ICON_MAPPING = {
    '1': 'mdi:weather-sunny',
    '2': 'mdi:weather-night',
    '3': 'mdi:weather-partly-cloudy',
    '4': 'mdi:weather-cloudy',
    '6': 'mdi:weather-sunset',
    '8': 'mdi:weather-partly-rainy',
    '9': 'mdi:weather-windy',
    '10': 'mdi:weather-sunset',
    '11': 'mdi:weather-rainy',
    '12': 'mdi:weather-pouring',
    '13': 'mdi:weather-sunset',
    '14': 'mdi:snowflake-melt',
    '15': 'mdi:weather-snowy',
    '16': 'mdi:weather-lightning',
    '17': 'mdi:weather-light-showers',
    '18': 'mdi:weather-pouring',
    '19': 'mdi:weather-hurricane'
}

from bureau_of_meteorology.

bremor avatar bremor commented on May 28, 2024

And here are all the possible values for the new BOM API, fortunately the numbers match up with the FTP component.

sunny=1
clear=2
partly_cloudy=3
cloudy=4
mostly_sunny=5
haze=6
hazy=6
light_rain=8
wind=9
windy=9
fog=10
shower=11
showers=11
rain=12
dust=13
dusty=13
frost=14
snow=15
storm=16
storms=16
light_shower=17
light_showers=17
heavy_shower=18
heavy_showers=18
tropical_cyclone=19
cyclone=19

from bureau_of_meteorology.

DavidFW1960 avatar DavidFW1960 commented on May 28, 2024

yeah. They are published by BOM in a doc I found

from bureau_of_meteorology.

ntompson avatar ntompson commented on May 28, 2024

Sensational - thanks @bremor.

from bureau_of_meteorology.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.