https://github.com/gpbenton/freesat_control
Python script to control freesat box
https://github.com/gpbenton/freesat_control
freesat python3 ssdp
Last synced: 5 months ago
JSON representation
Python script to control freesat box
- Host: GitHub
- URL: https://github.com/gpbenton/freesat_control
- Owner: gpbenton
- License: mit
- Created: 2017-11-23T14:05:22.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-12-30T10:36:43.000Z (over 6 years ago)
- Last Synced: 2023-12-11T10:36:15.554Z (over 1 year ago)
- Topics: freesat, python3, ssdp
- Language: Python
- Size: 19.5 KB
- Stars: 4
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# freesat_control
Python script to control freesat boxThis script was inspired by https://github.com/Tyfy/POSHFreesat, which I have translated into python to run on my Raspberry Pi.
The ssdp discovery library came from https://gist.github.com/dankrause/6000248
# Usage
from freesat import Freesat
p = Freesat("FS-HMX-01A-0000-6A15")or
p = Freesat("192.168.0.3")
examples:
p.sendRemoteCode(415)
p.sendRemoteKeys("Pause")
p.sendRemoteKeys("106")
p.sendRemoteKeys(("Play", "106"))
l = p.getLocale()
print (l.response.locale.tuners.cdata)
2s = p.getPowerStatus()
print (s.response.power['state'])
ont = p.getNetflixStatus()
print (t.service.name.cdata)
Netflix
print (t.service.state.cdata)
stoppedThe device_id can be found in the settings/System Information/General Info page of your freesat box. The device and key codes are at freeesat.keycodes