|
|
|
@ -15,6 +15,10 @@ kommune: 2601
|
|
|
|
|
strasse: 2146 |
|
|
|
|
pathBot: '~/bin/YMBot' |
|
|
|
|
tgBotOwner: <hier DEINE Telegram-ID eintragen> |
|
|
|
|
signal: |
|
|
|
|
path: "~/bin/signal-cli" |
|
|
|
|
account: "+49<deine Mobilfunknummer>" |
|
|
|
|
group_id: "<siehe 'signal-cli listGroups'>" |
|
|
|
|
''' |
|
|
|
|
|
|
|
|
|
import csv |
|
|
|
@ -169,3 +173,9 @@ if __name__ == '__main__':
|
|
|
|
|
tonnen = ' und '.join(tonnen) |
|
|
|
|
# Jetzt den Bot ansprechen |
|
|
|
|
os.system(f'echo "Morgen {wird} {tonnen} abgeholt" | {config["pathBot"]} -u {config["tgReceiver"]}') |
|
|
|
|
|
|
|
|
|
# Signal Bot |
|
|
|
|
try: |
|
|
|
|
os.system(f'{config["signal"]["path"]} -a {config["signal"]["account"]} send -g {config["signal"]["group_id"]} -m "Morgen {wird} {tonnen} abgeholt"') |
|
|
|
|
except NameError: |
|
|
|
|
pass |
|
|
|
|