Compare commits
5 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| c5f4fd93b4 | |||
| f537edc4cb | |||
| 63a3dee8fd | |||
| 558ed192d9 | |||
| 2b65daff7f |
@@ -8,7 +8,7 @@ from libs.monitoring import endedCall
|
|||||||
from libs.message import conversion as conv
|
from libs.message import conversion as conv
|
||||||
import urllib.request
|
import urllib.request
|
||||||
import xmltodict, json
|
import xmltodict, json
|
||||||
import sys, os
|
import sys, os, time
|
||||||
import smbclient
|
import smbclient
|
||||||
|
|
||||||
|
|
||||||
@@ -97,7 +97,6 @@ def lastcall2matrix(tam,tam_no):
|
|||||||
|
|
||||||
|
|
||||||
def fritzab2matrix(tam):
|
def fritzab2matrix(tam):
|
||||||
|
|
||||||
### CHECK AND GET MESSAGES FROM FRITZBOX ###
|
### CHECK AND GET MESSAGES FROM FRITZBOX ###
|
||||||
############################################
|
############################################
|
||||||
|
|
||||||
@@ -125,7 +124,7 @@ def fritzab2matrix(tam):
|
|||||||
for a in messages:
|
for a in messages:
|
||||||
|
|
||||||
# format the information regarding the message
|
# format the information regarding the message
|
||||||
msg_info = a['Date'] + " - " + a['Number']
|
msg_info = a['Date'] + " - " + str(a['Number'])
|
||||||
if a['Name']:
|
if a['Name']:
|
||||||
msg_info += " (" + a['Name'] + ") "
|
msg_info += " (" + a['Name'] + ") "
|
||||||
|
|
||||||
@@ -173,6 +172,7 @@ def fritzab2matrix(tam):
|
|||||||
|
|
||||||
|
|
||||||
def multitam(tams):
|
def multitam(tams):
|
||||||
|
time.sleep(10)
|
||||||
for tam in tams.keys():
|
for tam in tams.keys():
|
||||||
print("Check TAM {}.".format(tam))
|
print("Check TAM {}.".format(tam))
|
||||||
fritzab2matrix(tam)
|
fritzab2matrix(tam)
|
||||||
|
|||||||
9970
matrix-commander.py
9970
matrix-commander.py
File diff suppressed because it is too large
Load Diff
@@ -4,20 +4,25 @@ python-dotenv
|
|||||||
xmltodict
|
xmltodict
|
||||||
smbprotocol
|
smbprotocol
|
||||||
pydub
|
pydub
|
||||||
|
audioop-lts
|
||||||
|
|
||||||
# for matrix-commander
|
# for matrix-commander
|
||||||
|
|
||||||
aiohttp
|
aiohttp
|
||||||
aiofiles #<0.5.0,>=0.4.0
|
aiofiles #>=0.6.0
|
||||||
argparse
|
argparse
|
||||||
asyncio
|
asyncio
|
||||||
|
async-timeout
|
||||||
atomicwrites
|
atomicwrites
|
||||||
cachetools
|
cachetools
|
||||||
datetime
|
datetime
|
||||||
|
emoji
|
||||||
markdown
|
markdown
|
||||||
matrix-nio[e2e]>=0.18.3
|
matrix-nio[e2e]>=0.18.3
|
||||||
|
notify2
|
||||||
peewee
|
peewee
|
||||||
Pillow
|
Pillow
|
||||||
python-magic
|
python-magic
|
||||||
|
pyxdg
|
||||||
uuid
|
uuid
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user