Skip to content

SL Notify - A neat python script for polling SL's asp.net servers for any disturbances in the traffic.

License

Notifications You must be signed in to change notification settings

johanberglind/SLNotify

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SL Notify

SL Notify is a Python application to query SL's ASP.NET servers for any disturbance in the buslines relevant to you. I've added the ability to recieve push-notifications through Pushovers service if you are a member of said service. Just add your token and user-id to the class-variables at the top. Also be sure to edit the buslines so they are relevant to you.

Requirements

pip install -r requirements.txt

BeautifulSoup4 - For parsing the asp.net responses (BS4)

License

See LICENSE.MD

Usage

You can run SLNotify as a stand-alone script however you can also integrate it to your own application:

from SLNotify import Notify
n = Notify('410, 474')
issues = n.issue_check()

This will return a maximum of three issues per query into the variable issues. Issues is a str[] containing all the issues found by the query from the ASP.NET Server.

Best regards!

// Johan

About

SL Notify - A neat python script for polling SL's asp.net servers for any disturbances in the traffic.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages