Skip to content

This application gives users features for easy access to information on PTV. The functionality here is a base, which should be converted to the programming language of whichever Operating System contains the widget.

Notifications You must be signed in to change notification settings

fteodoro803/ptv-widget

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PTV Widget

This application gives users features for easy access to information on PTV.

The functionality here is a template, which should be converted to the programming language of whichever Operating System contains the widget.

Setup

For the program to work, paste your User/Developer ID and API Key in the config.ini file.

Dependencies

  • python 3.10
  • requests 2.31.0
  • pytest 8.1.1

Notes

To-Do

  • Priority:
    • Trams based on Location, and Direction
    • Selecting 1 form of PTV and getting information on that to Widget:
      1. Big Widget (saving a stop)
        1. tram_sample_screen.jpg
      2. Small Widget (saving a tram)
        1. just one of the above
  • Continuous Integration and Development
  • PTV Colour Palette
  • PTV Icons
  • Figure out Disruption and their IDs
    • Particularly in Disruptions
  • Calendar Integration
    • ex: I want to take a tram to get to X Location, to arrive at Y time. Add a Notification/Calendar Alert for when they should leave
  • API Calls / Data Collection
    • Stops within Distance --> route (id, name, number, type)
      • Get unique PTV Numbers (Tram Numbers, Train, Etc)
    • If I do multiple calls, such as looping to get directions for each Tram Route, does that count as spamming the API? Any way I can minimise calls?
      • Maybe I can create a little text file storing directions for routes, like a cache
  • Ideas
    • For direction, maybe something like "Flinders -> North Coburg"
    • Notification for Disruptions?
      • A way of notifying that a Tram is going to the depot/stops early
      • Cancellation?

Testing

  • PyTest
  • apiTests.py
    • Can't really do tests on valid/invalid URLS, since that's done by the API, but include these responses as tests maybe???
    • Maybe some tests for, if the site is down or something

About

This application gives users features for easy access to information on PTV. The functionality here is a base, which should be converted to the programming language of whichever Operating System contains the widget.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages