Skip to content

Commit deb54bb

Browse files
authored
Update outage_notifier.yaml - activate!
Pointing to PwrOn telegram and removing PG&E for now due to bug and lack of geo fencing.
1 parent 0057ceb commit deb54bb

File tree

1 file changed

+3
-23
lines changed

1 file changed

+3
-23
lines changed

.github/workflows/outage_notifier.yaml

Lines changed: 3 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ jobs:
8888
- name: Run pse notify
8989
continue-on-error: true
9090
run: |
91-
python outage_notifier.py -d output_files -r .5 -c 1 -lc 100 -e .1 -u pse --telegram-token "${PWRONDATABOT_TOKEN}" --telegram-chat-id "-1003012377346" --telegram-thread-id "2" --geocode-api-key "${GEOCODE_API_KEY}"
91+
python outage_notifier.py -d output_files -r 4 -c 100 -lc 1000 -e .25 -u pse --telegram-token "${PWRONDATABOT_TOKEN}" --telegram-chat-id "-1002452542176" --telegram-thread-id "4789" --geocode-api-key "${GEOCODE_API_KEY}"
9292
9393
- name: Run scl expand
9494
continue-on-error: true
@@ -108,7 +108,7 @@ jobs:
108108
- name: Run scl notify
109109
continue-on-error: true
110110
run: |
111-
python outage_notifier.py -d output_files -r .5 -c 1 -lc 100 -e .1 -u scl --telegram-token "${PWRONDATABOT_TOKEN}" --telegram-chat-id "-1003012377346" --telegram-thread-id "2" --geocode-api-key "${GEOCODE_API_KEY}"
111+
python outage_notifier.py -d output_files -r 4 -c 100 -lc 1000 -e .25 -u scl --telegram-token "${PWRONDATABOT_TOKEN}" --telegram-chat-id "-1002452542176" --telegram-thread-id "4789" --geocode-api-key "${GEOCODE_API_KEY}"
112112
113113
- name: Run snopud expand
114114
continue-on-error: true
@@ -128,24 +128,4 @@ jobs:
128128
- name: Run snopud notify
129129
continue-on-error: true
130130
run: |
131-
python outage_notifier.py -d output_files -r .5 -c 1 -lc 100 -e .1 -u snopud --telegram-token "${PWRONDATABOT_TOKEN}" --telegram-chat-id "-1003012377346" --telegram-thread-id "2" --geocode-api-key "${GEOCODE_API_KEY}"
132-
133-
- name: Run PGE expand
134-
continue-on-error: true
135-
run: |
136-
git pull origin main
137-
python -u expand.py -r ../pge-outages -i last_file_pge_test.txt -o output_files -l 10 ../pge-outages/pge-events.json
138-
139-
- name: Save PGE progress if succeeded
140-
continue-on-error: true
141-
if: success()
142-
run: |
143-
git pull origin main
144-
git add last_file_pge_test.txt
145-
git commit -m "updating file to track latest processed commit for pge"
146-
git push -u origin main
147-
148-
- name: Run PGE notify
149-
continue-on-error: true
150-
run: |
151-
python outage_notifier.py -d output_files -r 1 -c 50 -lc 100 -e .1 -u pge --telegram-token "${PWRONDATABOT_TOKEN}" --telegram-chat-id "-1003012377346" --telegram-thread-id "2" --geocode-api-key "${GEOCODE_API_KEY}"
131+
python outage_notifier.py -d output_files -r 4 -c 100 -lc 1000 -e .25 -u snopud --telegram-token "${PWRONDATABOT_TOKEN}" --telegram-chat-id "-1002452542176" --telegram-thread-id "4789" --geocode-api-key "${GEOCODE_API_KEY}"

0 commit comments

Comments
 (0)