ExFrontier (ex_frontier v0.2.0)

Copy Markdown View Source

Library used for connecting and controlling radios based on Frontier

from the manufacturer website Frontier’s leading SmartRadio modules combine DAB+, FM, Bluetooth with Internet Radio, Podcasts and audio streaming services including Spotify, Amazon Music, Tidal, Qobuz and Deezer. SmartRadios can be controlled with a Smartphone using the Frontier UNDOK™ application.

Library is mostly based on sniffing traffic from the android app and also on some documentation found on the internet

Summary

Functions

creates a connection that needs to be passed to every request

discards the session_id

forward

returns a list of items about audio setup

returns a list of items about clock

returns track duration

returns list of predefined equalizer modes

returns friendly name of device

returns system info

returns a list of items about current network settings

returns selected playing input mode

returns list of supported wifi modes

returns current mute state

get a list of items about nav state

returns notifications or timeouts if none are sent

returns a list of items about current track

returns a list of items about play state

returns current artist

returns current artist

returns cover uri

returns name of current playing item

returns description of current playing item

returns playing status

returns current mute state

returns status of the unit 0 - loading 1 - ready

returns current volume

returns amount of volume steps

returns list of wifi networks

returns a list of items about wired connection

returns a list of items about wireless connection

TODO inits the radio

navigates 1 level up

disables navigation

enables navigation

returns items in current menu optional pagination params from = default -1 items = default 100

returns the number of items in current menu

navigates to the the root node

selects current item to play map type is not 0

returns navigation state 0 - disabled 1 - enabled

navigates inside a map map type is 0

pause

play

play, pause, forward, rewind modes

rewind

sets current playack mode

sets mute state

sets power state

sets volume in range returned by get_volume_steps

Functions

connect()

creates a connection that needs to be passed to every request

disconnect(conn)

discards the session_id

forward(conn)

forward

get_audio(conn)

returns a list of items about audio setup

get_clock(conn)

returns a list of items about clock

get_duration(conn)

returns track duration

get_eq_modes(conn)

returns list of predefined equalizer modes

get_friendly_name(conn)

returns friendly name of device

get_info(conn)

returns system info

get_ipconfig(conn)

returns a list of items about current network settings

get_mode(conn)

returns selected playing input mode

get_modes(conn)

returns list of supported wifi modes

get_mute(conn)

returns current mute state

get_nav(conn)

get a list of items about nav state

get_notifies(conn)

returns notifications or timeouts if none are sent

get_play_current(conn)

returns a list of items about current track

get_play_info(conn)

returns a list of items about play state

get_play_info_album(conn)

returns current artist

get_play_info_artist(conn)

returns current artist

get_play_info_graphics(conn)

returns cover uri

get_play_info_name(conn)

returns name of current playing item

get_play_info_text(conn)

returns description of current playing item

get_play_status(conn)

returns playing status

get_power(conn)

returns current mute state

get_status(conn)

returns status of the unit 0 - loading 1 - ready

get_volume(conn)

returns current volume

get_volume_steps(conn)

returns amount of volume steps

get_wifi_scan(conn)

returns list of wifi networks

get_wired(conn)

returns a list of items about wired connection

get_wlan(conn)

returns a list of items about wireless connection

init_radio(conn)

TODO inits the radio

pause(conn)

pause

play(conn)

play

play_control(conn, value)

play, pause, forward, rewind modes

rewind(conn)

rewind

search(conn, value)

TODO

set_friendly_name(conn, value)

sets device name

set_mode(conn, mode)

sets current playack mode

set_mute(conn, value)

sets mute state

set_power(conn, value)

sets power state

set_volume(conn, value)

sets volume in range returned by get_volume_steps