https://github.com/mrmarble/sagemcomclient
Python library to comunicate with sagemcom routers
https://github.com/mrmarble/sagemcomclient
automation domotic fast library python router sagemcom
Last synced: 26 days ago
JSON representation
Python library to comunicate with sagemcom routers
- Host: GitHub
- URL: https://github.com/mrmarble/sagemcomclient
- Owner: MrMarble
- License: gpl-3.0
- Created: 2020-06-20T13:50:12.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2020-06-20T14:01:14.000Z (almost 5 years ago)
- Last Synced: 2025-03-29T19:34:29.014Z (about 2 months ago)
- Topics: automation, domotic, fast, library, python, router, sagemcom
- Language: Python
- Homepage:
- Size: 17.6 KB
- Stars: 5
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# SAGEMCOM F@st
I wanted to automate some things at my home but my current router (_Sagemcom F@st 5655v2AC_) does not have any option so I wrote my own python client.
Thanks to [@wuseman](https://github.com/wuseman) for his incredible [wiki](https://github.com/wuseman/SAGEMCOM-FAST-5370e-TELIA) about the sagecom router.
I will be adding methods as I need them, so if you need one and is not yet implemented fell free to collaborate 😉
## How to install
You can install this package using pip
`pip install git+https://github.com/MrMarble/sagemcomclient`## Usage
```python
from sagemcom.sagemcomclient import Sagemcomclient
client = Sagemcomclient('user','pass')
client.login() # will raise an exception on login failedcustom_query = client.get_values_tree('Device/Hosts/Hosts') # returns a dict with the response from the router
```### Available methods
- **login**: Will let you login to the router
- **get_values_tree**: Will let you make custom requests to the router
- **get_hosts**: Will show connected devices