Skip to content

A simple library for Sector Alarm API written in Python 3.

License

Notifications You must be signed in to change notification settings

frli4797/sectoralarm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sector Alarm Library

Information

A simple library for Sector Alarm API written in Python 3.

The code is heavily based on this project: https://github.com/the-louie/sectoralarm

Installation

Install with pip3

$ sudo pip3 install sectoralarm

Code examples

Current status

Getting the current alarm status. Returned values are 'armed', 'partialarmed' or 'disarmed'.

#!/usr/bin/env python3
import sectoralarm

email = "[email protected]"
password = "SuperSecretPassword!"
site_id = "01234567"

sector_alarm = sectoralarm.connect(email, password, site_id)

current_status = sector_alarm.status()
if current_status:
    print(current_status)

Example output:

{"AlarmStatus": "disarmed"}

About

A simple library for Sector Alarm API written in Python 3.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages