MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord
    MagicMirror² v2.20.0 is available! For more information about this release, check out this topic.

    UNSOLVED Pollen Count

    Requests
    3
    5
    3058
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • I
      incubik last edited by

      Hi! As a “allergic to Pollen” person I would like to have a display of Pollen levels in my city (Madrid, Spain) on the Magic Mirror.

      I’ve been trying to find an API for this in Spain or Madrid but I don’t find any… I’ve seen UK and Germany have some websites that let you retrieved this data but not in Spain 😞

      The clearest place I’ve found this data is this url: http://www.eltiempo.es/madrid/polen/

      So, how can I get this info if I only have an url?? Anyone?

      Thx!

      1 Reply Last reply Reply Quote 1
      • ?
        A Former User last edited by

        The closest I have found for an world spanning pollen information is this site: https://weather.com/forecast/allergy/l/SPXX0050:1:SP but it is quite dumb; it only tells allergy levels for “trees” or “grass” etc, but not which trees or grass types.

        But what I have seen there is no site that offers a good API for getting the information. My guess is that we need to scrape the information from the HTML. I.e. return all HTML from a specific site and parse the information using regular expressions.

        BR

        1 Reply Last reply Reply Quote 0
        • I
          incubik last edited by

          Great! I’ll give it a try and let you know how it goes 🙂

          1 Reply Last reply Reply Quote 0
          • A
            Aartsie last edited by

            I’ve found an API based on a Longitude Latitude, how far are you with this module? Maybe i can help.

            1 Reply Last reply Reply Quote 0
            • ?
              A Former User last edited by

              I have not started this yet, as I have been sick with pollen…
              However, when I investigated the size of a project like this, I saw that it should not be that complex to implement this as a plugin. I will start sometime after the summer I think.
              I have created a first draft/concept of this, if you want to experiment. 🙂
              You then need to implement the function `processResponse’, and maybe something more, IDK.

              https://github.com/sebastiw/PollenCountForMagicMirror

              1 Reply Last reply Reply Quote 0
              • 1 / 1
              • First post
                Last post
              Enjoying MagicMirror? Please consider a donation!
              MagicMirror created by Michael Teeuw.
              Forum managed by Paul-Vincent Roll and Rodrigo Ramírez Norambuena.
              This forum is using NodeBB as its core | Contributors
              Contact | Privacy Policy