Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Flagstaff, AZ USA #3250

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2229,6 +2229,7 @@ If your service provider is not listed, feel free to open a [source request issu
- [City of Austin, TX](/doc/ics/recollect.md) / austintexas.gov
- [City of Bloomington](/doc/ics/recollect.md) / bloomington.in.gov
- [City of Cambridge](/doc/ics/recollect.md) / cambridgema.gov
- [City of Flagstaff, AZ](/doc/ics/flagstaff_az_gov.md) / flagstaff.az.gov
- [City of Gastonia, NC](/doc/ics/recollect.md) / gastonianc.gov
- [City of Georgetown, TX](/doc/ics/recollect.md) / texasdisposal.com/waste-wizard
- [City of Los Angeles, CA](/doc/source/lacity_gov.md) / lacitysan.org
Expand Down
6 changes: 6 additions & 0 deletions custom_components/waste_collection_schedule/sources.json
Original file line number Diff line number Diff line change
Expand Up @@ -14091,6 +14091,12 @@
},
"id": "ics_recollect"
},
{
"title": "City of Flagstaff, AZ",
"module": "ics",
"default_params": {},
"id": "ics_flagstaff_az_gov"
},
{
"title": "City of Gastonia, NC",
"module": "ics",
Expand Down
42 changes: 42 additions & 0 deletions custom_components/waste_collection_schedule/translations/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -16934,6 +16934,48 @@
},
"data_description": {}
},
"args_ics_flagstaff_az_gov": {
"title": "Quelle konfigurieren",
"description": "Konfiguriere deinen Service Provider. \n\n- Go to https://www.recyclebycity.com/flagstaff/schedule and enter your address.\n- Scroll down to the \"Add to your calendar\" section\n- Right click Google Calendar button and select \"Copy link address\"\n- Replace the `url` in the example configuration with this link.\n\n\nMehr details: https://github.com/mampfes/hacs_waste_collection_schedule/blob/master/doc/ics/flagstaff_az_gov.md",
"data": {
"calendar_title": "Kalender Titel",
"file": "Datei",
"headers": "Headers",
"method": "Methode",
"offset": "Offset",
"params": "Parameter",
"regex": "Regulärer Ausdruck",
"split_at": "Trennen bei",
"title_template": "Titelvorlage",
"url": "URL",
"verify_ssl": "SSL-Verifizierung aktivieren",
"version": "Version",
"year_field": "Jahresfeld"
},
"data_description": {
"calendar_title": "Ein lesbarerer oder benutzerfreundlicherer Name für den Müllkalender. Wenn nichts angegeben wird, wird der Name der Quelle verwendet."
}
},
"reconfigure_ics_flagstaff_az_gov": {
"title": "Quelle Neu Konfigurieren",
"description": "Konfiguriere deinen Service Provider. \n\n- Go to https://www.recyclebycity.com/flagstaff/schedule and enter your address.\n- Scroll down to the \"Add to your calendar\" section\n- Right click Google Calendar button and select \"Copy link address\"\n- Replace the `url` in the example configuration with this link.\n\n\nMehr details: https://github.com/mampfes/hacs_waste_collection_schedule/blob/master/doc/ics/flagstaff_az_gov.md",
"data": {
"calendar_title": "Kalender Titel",
"file": "Datei",
"headers": "Headers",
"method": "Methode",
"offset": "Offset",
"params": "Parameter",
"regex": "Regulärer Ausdruck",
"split_at": "Trennen bei",
"title_template": "Titelvorlage",
"url": "URL",
"verify_ssl": "SSL-Verifizierung aktivieren",
"version": "Version",
"year_field": "Jahresfeld"
},
"data_description": {}
},
"args_lacity_gov": {
"title": "Quelle konfigurieren",
"description": "Konfiguriere deinen Service Provider. \n\nEnter your street address exactly as it appears on your LA Sanitation bill. The address must be within Los Angeles city limits.\n\nMehr details: https://github.com/mampfes/hacs_waste_collection_schedule/blob/master/doc/source/lacity_gov.md",
Expand Down
42 changes: 42 additions & 0 deletions custom_components/waste_collection_schedule/translations/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -16967,6 +16967,48 @@
},
"data_description": {}
},
"args_ics_flagstaff_az_gov": {
"title": "Configure Source",
"description": "Configure your service provider. \n\n- Go to https://www.recyclebycity.com/flagstaff/schedule and enter your address.\n- Scroll down to the \"Add to your calendar\" section\n- Right click Google Calendar button and select \"Copy link address\"\n- Replace the `url` in the example configuration with this link.\n\n\nMore details: https://github.com/mampfes/hacs_waste_collection_schedule/blob/master/doc/ics/flagstaff_az_gov.md.",
"data": {
"calendar_title": "Calendar Title",
"file": "File",
"headers": "Headers",
"method": "Method",
"offset": "Offset",
"params": "Parameters",
"regex": "Regex",
"split_at": "Split At",
"title_template": "Title Template",
"url": "Url",
"verify_ssl": "Verify Ssl",
"version": "Version",
"year_field": "Year Field"
},
"data_description": {
"calendar_title": "A more readable, or user-friendly, name for the waste calendar. If nothing is provided, the name returned by the source will be used."
}
},
"reconfigure_ics_flagstaff_az_gov": {
"title": "Reconfigure Source",
"description": "Configure your service provider. \n\n- Go to https://www.recyclebycity.com/flagstaff/schedule and enter your address.\n- Scroll down to the \"Add to your calendar\" section\n- Right click Google Calendar button and select \"Copy link address\"\n- Replace the `url` in the example configuration with this link.\n\n\nMore details: https://github.com/mampfes/hacs_waste_collection_schedule/blob/master/doc/ics/flagstaff_az_gov.md.",
"data": {
"calendar_title": "Calendar Title",
"file": "File",
"headers": "Headers",
"method": "Method",
"offset": "Offset",
"params": "Parameters",
"regex": "Regex",
"split_at": "Split At",
"title_template": "Title Template",
"url": "Url",
"verify_ssl": "Verify Ssl",
"version": "Version",
"year_field": "Year Field"
},
"data_description": {}
},
"args_lacity_gov": {
"title": "Configure Source",
"description": "Configure your service provider. \n\nEnter your street address exactly as it appears on your LA Sanitation bill. The address must be within Los Angeles city limits.\n\nMore details: https://github.com/mampfes/hacs_waste_collection_schedule/blob/master/doc/source/lacity_gov.md.",
Expand Down
42 changes: 42 additions & 0 deletions custom_components/waste_collection_schedule/translations/it.json
Original file line number Diff line number Diff line change
Expand Up @@ -16916,6 +16916,48 @@
},
"data_description": {}
},
"args_ics_flagstaff_az_gov": {
"title": "Configurazione Sorgente",
"description": "Compila i campi per ottenere le informazioni sul tuo servizio di raccolta. \n\n- Go to https://www.recyclebycity.com/flagstaff/schedule and enter your address.\n- Scroll down to the \"Add to your calendar\" section\n- Right click Google Calendar button and select \"Copy link address\"\n- Replace the `url` in the example configuration with this link.\n\n\nMaggiori informazioni: https://github.com/mampfes/hacs_waste_collection_schedule/blob/master/doc/ics/flagstaff_az_gov.md.",
"data": {
"calendar_title": "Nome Calendario",
"file": "Nome File",
"headers": "Headers",
"method": "Metodo",
"offset": "Offset",
"params": "Parametri",
"regex": "Regex",
"split_at": "Split At",
"title_template": "Title Template",
"url": "Url",
"verify_ssl": "Verifica SSL",
"version": "Versione",
"year_field": "Year Field"
},
"data_description": {
"calendar_title": "Puoi cambiare il nome del calendario della raccolta dei rifiuti, altrimenti di default verra' utilizzato il nome del tuo fornitore di servizi."
}
},
"reconfigure_ics_flagstaff_az_gov": {
"title": "Riconfigurazione Sorgente",
"description": "Compila i campi per ottenere le informazioni sul tuo servizio di raccolta. \n\n- Go to https://www.recyclebycity.com/flagstaff/schedule and enter your address.\n- Scroll down to the \"Add to your calendar\" section\n- Right click Google Calendar button and select \"Copy link address\"\n- Replace the `url` in the example configuration with this link.\n\n\nPer maggiori informazioni: https://github.com/mampfes/hacs_waste_collection_schedule/blob/master/doc/ics/flagstaff_az_gov.md.",
"data": {
"calendar_title": "Nome Calendario",
"file": "Nome File",
"headers": "Headers",
"method": "Metodo",
"offset": "Offset",
"params": "Parametri",
"regex": "Regex",
"split_at": "Split At",
"title_template": "Title Template",
"url": "Url",
"verify_ssl": "Verifica SSL",
"version": "Versione",
"year_field": "Year Field"
},
"data_description": {}
},
"args_lacity_gov": {
"title": "Configurazione Sorgente",
"description": "Compila i campi per ottenere le informazioni sul tuo servizio di raccolta. \n\nEnter your street address exactly as it appears on your LA Sanitation bill. The address must be within Los Angeles city limits.\n\nMaggiori informazioni: https://github.com/mampfes/hacs_waste_collection_schedule/blob/master/doc/source/lacity_gov.md.",
Expand Down
23 changes: 23 additions & 0 deletions doc/ics/flagstaff_az_gov.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# City of Flagstaff, AZ

City of Flagstaff, AZ is supported by the generic [ICS](/doc/source/ics.md) source. For all available configuration options, please refer to the source description.


## How to get the configuration arguments

- Go to https://www.recyclebycity.com/flagstaff/schedule and enter your address.
- Scroll down to the "Add to your calendar" section
- Right click Google Calendar button and select "Copy link address"
- Replace the `url` in the example configuration with this link.

## Examples

### City Hall

```yaml
waste_collection_schedule:
sources:
- name: ics
args:
url: http://www.recyclebycity.com/flagstaff/schedule/cbfbefb8b9ae737c7b389baa4bfa80e5/subscribe
```
13 changes: 13 additions & 0 deletions doc/ics/yaml/flagstaff_az_gov.yaml
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Chicago uses the same system. (https://www.recyclebycity.com/chicago/schedule)
Could you add a new file for chicago?

alternative:
rename file to recyclebycity_com and modify title and add

extra_info:
  - title: City of Flagstaff, AZ
    url: https://www.flagstaff.az.gov
  - title: City of Chicago, IL
    url: https://www.chicago.gov

Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
title: City of Flagstaff, AZ
url: https://www.flagstaff.az.gov
country: us
howto:
en: |
- Go to https://www.recyclebycity.com/flagstaff/schedule and enter your address.
- Scroll down to the "Add to your calendar" section
- Right click Google Calendar button and select "Copy link address"
- Replace the `url` in the example configuration with this link.
test_cases:
City Hall:
url: http://www.recyclebycity.com/flagstaff/schedule/cbfbefb8b9ae737c7b389baa4bfa80e5/subscribe
1 change: 1 addition & 0 deletions doc/source/ics.md
Original file line number Diff line number Diff line change
Expand Up @@ -317,6 +317,7 @@ This source has been successfully tested with the following service providers:
- [City of Austin, TX](/doc/ics/recollect.md) / austintexas.gov
- [City of Bloomington](/doc/ics/recollect.md) / bloomington.in.gov
- [City of Cambridge](/doc/ics/recollect.md) / cambridgema.gov
- [City of Flagstaff, AZ](/doc/ics/flagstaff_az_gov.md) / flagstaff.az.gov
- [City of Gastonia, NC](/doc/ics/recollect.md) / gastonianc.gov
- [City of Georgetown, TX](/doc/ics/recollect.md) / texasdisposal.com/waste-wizard
- [City of McKinney, TX](/doc/ics/recollect.md) / mckinneytexas.org
Expand Down
Loading
Loading