completed full run script

This commit is contained in:
2019-10-12 03:05:38 +01:00
parent ac366716ee
commit ca19ff0c9a
14 changed files with 38 additions and 57 deletions

View File

@@ -45,19 +45,19 @@ class sendToSQS(object):
print(msg['MessageId'])
inst = sendToSQS.createSession(
profileName='plex-aws',
queueURL='https://sqs.eu-west-1.amazonaws.com'
'/745437999005/slack-bot.fifo',
)
# inst = sendToSQS.createSession(
# profileName='plex-aws',
# queueURL='https://sqs.eu-west-1.amazonaws.com'
# '/745437999005/slack-bot.fifo',
# )
instM = (
getTrafficInfo.getTrafficURL('M62')
.findIncidents()
.getIncidentInformation()
.generateOutput()
)
# instM = (
# getTrafficInfo.getTrafficURL('M62')
# .findIncidents()
# .getIncidentInformation()
# .generateOutput()
# )
for _ in range(0, 5):
for item in instM.output:
inst.sendMessage(message=item, messageGroupId='slack-bot-M62')
# for _ in range(0, 5):
# for item in instM.output:
# inst.sendMessage(message=item, messageGroupId='slack-bot-M62')