Skip to content
This repository has been archived by the owner on Sep 16, 2022. It is now read-only.

ludeeus/pyruter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pyruter Build Status PyPI version

Python package to interact with the local API of Google Home devices.

Install

pip install pyruter

This package also include a CLI tool, run pyruter --help to see what it can do.

Example usage

"""Example usage of pyruter."""
import asyncio
import aiohttp
from pyruter.api import Departures

async def test_pyruter():
    """Example usage of pyruter."""
    stopid = 2190400
    destination = 'Drammen'
    custom_session = aiohttp.ClientSession()
    data = Departures(LOOP, stopid, destination, custom_session)
    await data.get_departures()

    print("Departures:", data.departures)

LOOP = asyncio.get_event_loop()
LOOP.run_until_complete(test_pyruter())

**NB!: The destination has to be the final destination, and not where you are hopping off.

About

A module to get information about the next departure from a stop.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages