diff --git a/contact.xlsx b/contact.xlsx index 6f51c64..6054224 100644 Binary files a/contact.xlsx and b/contact.xlsx differ diff --git a/main.py b/main.py index a423eb7..9fd84ca 100644 --- a/main.py +++ b/main.py @@ -34,16 +34,6 @@ def get_devices_ports() -> list: return MODEM_POOL_PORTS -def has_sim(ser) -> bool: - # check pin - cmd_check_pin = "AT+cpin?\r" - msg = send_command(cmd_check_pin, ser) - if b'OK' in msg: - return True - else: - return False - - def send_command(cmd: str, ser, wait_time_in_s: int = 0) -> bytes: ser.write(cmd.encode()) msg = ser.read(100) @@ -57,11 +47,6 @@ def send_command(cmd: str, ser, wait_time_in_s: int = 0) -> bytes: return msg -def get_phone_number(ser): - cmd = "AT+CNUM\r" - send_command(cmd, ser) - - def create_modem_for_port(port: str) -> Union[SerialModem, None]: logger.info('Initializing modem... for ' + port) # Uncomment the following line to see what the modem is doing: diff --git a/notification/mail.py b/notification/mail.py deleted file mode 100644 index 084e273..0000000 --- a/notification/mail.py +++ /dev/null @@ -1,14 +0,0 @@ -from sqlalchemy import Column, String -from sqlalchemy.orm import declarative_base - -Base = declarative_base() - - -class Mail(Base): - __tablename__ = 'mailer' - id_key = Column(String(255), primary_key=True, nullable=False) - secret_key = Column(String(255), nullable=False) - recipient_list = Column(String(255), nullable=False) - - def __repr__(self): - return "Mail id_key:% s secret_key:% s recipient_list:% s" % (self.id_key, self.secret_key, self.recipient_list)