{"id":13585853,"url":"https://github.com/simonhq/accu_allergies","last_synced_at":"2025-04-07T10:31:58.196Z","repository":{"id":37609860,"uuid":"260599208","full_name":"simonhq/accu_allergies","owner":"simonhq","description":"HA allergy sensors from AccuWeather","archived":false,"fork":false,"pushed_at":"2023-03-23T22:23:08.000Z","size":128,"stargazers_count":18,"open_issues_count":6,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-02-14T21:17:29.391Z","etag":null,"topics":["accuweather","accuweather-allergies","allergies-information","appdaemon","hacs","sensor"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/simonhq.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-05-02T02:29:55.000Z","updated_at":"2024-08-01T16:31:47.780Z","dependencies_parsed_at":"2024-08-01T16:31:47.125Z","dependency_job_id":"2f7cf4e2-8885-4c35-91c5-dff32d1c4544","html_url":"https://github.com/simonhq/accu_allergies","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simonhq%2Faccu_allergies","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simonhq%2Faccu_allergies/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simonhq%2Faccu_allergies/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simonhq%2Faccu_allergies/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/simonhq","download_url":"https://codeload.github.com/simonhq/accu_allergies/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247636809,"owners_count":20971005,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["accuweather","accuweather-allergies","allergies-information","appdaemon","hacs","sensor"],"created_at":"2024-08-01T15:05:11.101Z","updated_at":"2025-04-07T10:31:57.898Z","avatar_url":"https://github.com/simonhq.png","language":"Python","funding_links":[],"categories":["Python"],"sub_categories":[],"readme":"## NOTE - added automatic daily download \n\n# AccuWeather Allergies\n[![hacs_badge](https://img.shields.io/badge/HACS-Default-orange.svg?style=for-the-badge)](https://github.com/custom-components/hacs)\n\n_Creates sensors for Home Assistant with the AccuWeather Allergy level information for various sensor types_\n\n## Lovelace Example\n\nPRE APRIL22 changes\n\n![Example of Allergies information in the Dashboard](https://github.com/simonhq/accu_allergies/blob/master/accu_allergies_glances.PNG)\n\nAPRIL22 changes\n\n![Example of Allergies information in the Dashboard](https://github.com/simonhq/accu_allergies/blob/master/post_april22.jpg)\n\n## Installation\n\nThis app is best installed using [HACS](https://github.com/custom-components/hacs), so that you can easily track and download updates.\n\nAlternatively, you can download the `accu_allergies` directory from inside the `apps` directory here to your local `apps` directory, then add the configuration to enable the `accu_allergies` module.\n\n## How it works\n\nThe [AccuWeather](https://www.accuweather.com/) site provides this information, this just scrapes the page and makes the information available as a sensor in HA.\n\nAs this is non time critical sensor, it only gets the information on a set time schedule, once per day at 5.07am, but it also watches an `input_boolean` that you specify for when to update the sensor. You can obviously automate when you want that input_boolean to turn on.\n\n### To Run outside of the schedule\n\nYou will need to create an input_boolean entity to watch for when to update the sensor. When this `input_boolean` is turned on, whether manually or by another automation you create, the scraping process will be run to create/update the sensor.\n\nTo reduce the number of requests to the website, I have made this a two stage system, with one `input_boolean` controlling when the data is requested from the website and a second when you want to update the sensors, meaning doing a HA restart won't trigger html requests, it will just read from your saved data file from that morning.\n\nTherefore you will need to chain the two `input_boolean` requests so that one is offset by a minute to allow for the data to be downloaded.\n\n## AppDaemon configuration\n\nYou will also need to install Beautiful Soup / bs4 by adding bs4 to your python packages in Appdaemon.\n\n```yaml\nsystem_packages: []\npython_packages:\n  - bs4\ninit_commands: []\n```\n\n## App configuration\n\n```yaml\naccu_allergies:\n  module: accu_allergies\n  class: Get_Accu_Allergies\n  ACC_FILE: \"./allergies\"\n  ACC_FLAG: \"input_boolean.get_allergies_data\"\n  DEB_FLAG: \"input_boolean.reset_allergies_sensor\"\n  URL_ID: \"21921\"\n  URL_CITY: \"canberra\"\n  URL_COUNTRY: \"au\"\n  URL_LANG: \"en\"\n  URL_POSTCODE: \"\"\n  WEB_VER: \"\" # or use \"APRIL22\"\n```\n\nkey | optional | type | default | description\n-- | -- | -- | -- | --\n`module` | False | string | | `accu_allergies`\n`class` | False | string | | `Get_Accu_Allergies`\n`ACC_FILE` | False | string | | path and name of a file to store html in, to reduce number of requests to the website\n`ACC_FLAG` | False | string | | The name of the flag in HA for triggering getting the information from the website \n`DEB_FLAG` | False | string | | The name of the flag in HA for triggering refreshing the sensors from the stored html\n`URL_ID` | False | string | | The ID on the AccuWeather webpage for the node you want information for\n`URL_CITY` | False | string | | The name on the AccuWeather webpage for the node you want information for\n`URL_COUNTRY` | False | string | | The country code on the AccuWeather webpage for the node you want information for\n`URL_LANG` | False | string | | The language code on the AccuWeather webpage for the node you want information for\n`URL_POSTCODE` | True | string | | Some locations use the postcode as well as an ID in the AccuWeather webpage URL this will default to the ID value if left blank\n`WEB_VER` | True | string | | Some locations have transitioned to a new website template for AccuWeather - use \"APRIL22\" if your area has the new template\n\n## Sensors to be created\n\nThis app will create sensors\n\n* sensor.acc_data_last_sourced\n\nPre APRIL22\n\nsensors for each of the types for today and tomorrow (24 in total)\nragweed pollen, grass pollen, tree pollen, mold, dust, air quality, common cold, flu, asthma, arthritis, migraine, sinus\n\neach sensor is a rating from 1-\u003e10\n\nThe actual site holds 12 days of information for each of the 12 concepts, but I have only chosen to get the current day and the next day.\n\nPost APRIL22\n\nair quality for today and tomorrow\n\nsensors for each of the types for today only\n\neach sensor is a low-\u003eextreme\n\ndust \u0026 dander, sinus pressure, asthma, grass pollen, ragweed pollen, tree pollen, mold, migraine, arthritis, common cold, flu, \nindoor pests, outdoor pests, mosquitos, outdoor entertaining, lawn mowing, composting, air travel, driving, fishing, running\ngolf, biking \u0026 cycling, beach \u0026 pool, stargazing, hiking\n\n\n## Issues/Feature Requests\n\nPlease log any issues or feature requests in this GitHub repository for me to review.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimonhq%2Faccu_allergies","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsimonhq%2Faccu_allergies","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimonhq%2Faccu_allergies/lists"}