Skip to content
Python implementation of the Frontier Silicon API
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
fsapi
LICENSE.md
MANIFEST.in
README cleanup setup.py Jan 30, 2017
README.md v0.0.7 - added timeout Feb 18, 2018
requirements.txt >= in requirements.txt Feb 5, 2017
setup.cfg cleanup setup.py Jan 30, 2017
setup.py
tests.py v0.0.7 - added timeout Feb 18, 2018

README.md

python-fsapi

Python implementation of the Frontier Silicon API

Required python libs:

  • requests
  • lxml (had to install it through apt-get, pip3 did not work)

Usage

from fsapi import FSAPI

URL = 'http://192.168.1.39:80/device'
PIN = 1234
TIMEOUT = 1 # in seconds

fs = FSAPI(URL, PIN, TIMEOUT)
print('Name: %s' % fs.friendly_name)
print('Mute: %s' % fs.mute)
print('Mode: %s' % fs.mode)
print('Modes: %s' % fs.modes)
print('Power: %s' % fs.power)
print('Volume steps: %s' % fs.volume_steps)
print('Volume: %s' % fs.volume)
print('Play status: %s' % fs.play_status)
print('Track name: %s' % fs.play_info_name)
print('Track text: %s' % fs.play_info_text)
print('Artist: %s' % fs.play_info_artist)
print('Album: %s' % fs.play_info_album)
print('Graphics: %s' % fs.play_info_graphics)
You can’t perform that action at this time.