2017 © Pedro PelĂĄez
 

library fsapi

Frontier Silicon API for PHP

image

flammy/fsapi

Frontier Silicon API for PHP

  • Friday, June 30, 2017
  • by flammy
  • Repository
  • 9 Watchers
  • 19 Stars
  • 30 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 6 Forks
  • 3 Open issues
  • 2 Versions
  • 11 % Grown

The README.md

fsapi - Frontier Silicon API for PHP Build Status Maintainability

This code is work in progress! It is not finished yet, feel free co contribute to it., (*1)

This code is developed for Frontier Silicon Ltd. Venice 6.2 chipset and tested with TERRISÂź Stereo Internetradio., (*2)

In this case there is no spotify mode and there are not so many equalizers., (*3)

Please let me know if it does not work on your device., (*4)

Usage:

Class Radio, (*5)

The radio class provides an easy to use set of human readable methods and parameters., (*6)

$Radio = new Radio($host,$pin);
$response = $Radio->radioFrequency(106.4);
$response = $Radio->mute(0);
$response = $Radio->volume(5);

Class FSAPI, (*7)

The fsapi class provides the abstracted basic communication with the device., (*8)

$Request = new Request($host,$session_id,$pin);
$FSAPI = new FSAPI($Request);
$response = $FSAPI->doRequest('SET','netRemote.sys.audio.mute',array('value' => 0));
$response = $FSAPI->doRequest('SET','netRemote.play.frequency'',array('value' => 106400));
$response = $FSAPI->doRequest('SET','netRemote.sys.audio.volume',array('value' => 5));

Class SSDP (Simple Service Discovery Protocol), (*9)

The ssdp class provices the device discovery via UPNP. This is a very rudimentary class which does only this one thing., (*10)

$Scanner = new Scanner();
$SSDP = new SSDP($Scanner);
$response = $SSDP->doScan('urn:schemas-frontier-silicon-com:fs_reference:fsapi:1');

More examples, (*11)

You can find a detailed documentation for the classes at:, (*12)

https://github.com/flammy/fsapi/blob/master/Documentation.md, (*13)

Example implementation:, (*14)

You can find an example implementation in the following repository:, (*15)

https://github.com/flammy/fsapi-remote, (*16)

documentation:

You can find a documentation of the raw FSAPI reqests and responses at:, (*17)

https://github.com/flammy/fsapi/blob/master/FSAPI.md, (*18)

The Versions

30/06 2017

dev-master

9999999-dev

Frontier Silicon API for PHP

  Sources   Download

The Requires

 

The Development Requires

03/01 2017

2.0

2.0.0.0

Frontier Silicon API for PHP

  Sources   Download