MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.

    Pollen Count

    Scheduled Pinned Locked Moved Unsolved Requests
    5 Posts 3 Posters 3.7k Views 3 Watching
    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 Offline
      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
      • ? Offline
        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 Offline
          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 Offline
            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
            • ? Offline
              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 Sam, technical setup by Karsten.
              This forum is using NodeBB as its core | Contributors
              Contact | Privacy Policy