sync
Some checks failed
perso/huawei-3G-SMS-API/pipeline/head There was a failure building this commit
Some checks failed
perso/huawei-3G-SMS-API/pipeline/head There was a failure building this commit
This commit is contained in:
@@ -159,11 +159,15 @@ if __name__ == "__main__":
|
||||
# Pushbullet
|
||||
print('# Notif pushbullet')
|
||||
pb.push_note("SMS", "From: %s\nDate: %s\n%s" % (messagesR[i]['Phone'], messagesR[i]['Date'], messagesR[i]['Content']))
|
||||
|
||||
# NTFY
|
||||
# TODO: exec ntfy publish
|
||||
|
||||
# Log HTTP
|
||||
print('# Notif HTTP')
|
||||
datam = {'sender' : messagesR[i]['Phone'], 'date': messagesR[i]['Date'], 'content': messagesR[i]['Content']}
|
||||
r = requests.post(url="https://sms.cabillot.eu", headers={'Content-Type': 'application/json' }, json=datam)
|
||||
# desactive
|
||||
#r = requests.post(url="https://sms.cabillot.eu", headers={'Content-Type': 'application/json' }, json=datam)
|
||||
#print(r.status_code)
|
||||
|
||||
#Save
|
||||
|
||||
Reference in New Issue
Block a user