Skip to content

Commit

Permalink
Update source template
Browse files Browse the repository at this point in the history
  • Loading branch information
dala318 committed Oct 28, 2024
1 parent ede189e commit 7b0b96d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
9 changes: 5 additions & 4 deletions doc/contributing_source.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ The script should have the following general structure
```py
import datetime
from waste_collection_schedule import Collection
from const import Icons

TITLE = "My Council" # Title will show up in README.md and info.md
DESCRIPTION = "Source script for abc.com" # Describe your source
Expand All @@ -33,10 +34,10 @@ TEST_CASES = { # Insert arguments for test cases to be used by test_sources.py
}

API_URL = "https://abc.com/search/"
ICON_MAP = { # Optional: Dict of waste types and suitable mdi icons
"DOMESTIC": "mdi:trash-can",
"RECYCLE": "mdi:recycle",
"ORGANIC": "mdi:leaf",
ICON_MAP = { # Optional: Dict of waste types and suitable icons
"DOMESTIC": Icons.ICON_GENERAL_TRASH,
"RECYCLE": Icons.ICON_RECYCLE,
"ORGANIC": Icond.ICON_COMPOST,
}

#### Arguments affecting the configuration GUI ####
Expand Down
2 changes: 1 addition & 1 deletion script/check_icon_use.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash

verbose=false
verbose=true
if [ "$1" == "-v" ]
then
verbose=true
Expand Down

0 comments on commit 7b0b96d

Please sign in to comment.