npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

iobroker.frontier_silicon

v0.3.0

Published

Provides support for media players equipped with a Frontier Silicon chipset using FSAPI.

Downloads

202

Readme

ioBroker.frontier_silicon

Logo

ioBroker adapter for Frontier SmartRadio

NPM version Downloads Number of Installations (latest) Number of Installations (stable)

Tests: Test and Release

NPM

Info

Provides support for media players, internet radios and SmartRadios equipped with a Frontier Silicon chipset using FSAPI.

NOTE: This adapter has been transferred to iobroker-community-adapters for maintenance. Thus planned features (see below) will not be implemented. Only important bug fixes and dependency updates will be released in the future. However PRs with bug fixes or feature enhancements are always welcome.

RELEASE NOTES: Version 0.3.x includes some Breaking Changes:

  • node>=18, js-contoller>=5 and admin>=6 required
    Upgrade your ioBroker to at least this software level, if you want to use this adapter

  • PIN encryption and validity check of all parameters in config UI
    If you update this adapter from a previous version instead of a new installation, the adapter will not start, even if your PIN in your config is correct and has not been changed. To fix this, simply enter the same previous PIN once more in the config UI and store and close the config UI to restart the adapter. This of course is only neccessary once after the first start after the update.

  • The type of "frontier_silicon.X.modes.selectPreset" changed from "string" to "number"
    If you update this adapter from a previous version instead of a new installation, you may possibly find warnings in the ioBroker log like: State value to set for "frontier_silicon.0.modes.selectPreset" has to be type "string" but received type "number" To prevent this from happening, the most simple solution is to stop the adapter in the instances tab of ioBroker, completely delete the object tree in the objects tab and then restart the adapter. This of course is only neccessary once after the update and is not required if you do a clean new installation.

  • Synchronization of power, volume and mute states with the UNDOK App
    Synchronization with the UNDOK App here means that power, volume and mute settings changed by the UNDOK App will now also be updated in the states of this adapter. Due to the limitations of the FSAPI protocol the state synchronization of the UNDOK App with the adapter still is unreliable and will not be instantaneous but only happen when e.g. a preset or a mode is changed using the UNDOK App.

  • Cyclic connection retry instead of disabling the adapter
    Previously the adapter was terminated after 10 session connection attempts when the device was unreachable due to long-lasting network problems like router restarts, LAN or WiFi outage. Now the adapter will retry after every session refresh interval until the device is reachable again. If you want to avoid log entries regarding these retries you have to stop the adapter manually. If your network problem is fixed while the retry period is still ongoing, simply restart the adapter.

Features

Implemented features

  • Power control
  • Mode selection
  • Preset selection
  • Notifications for several states
  • Volume control
  • Notifications

Planned features

  • Auto discovery
  • More states
  • Translations
  • More Exception handling
  • Cleaner code
  • Multi room features

Not planned features

  • Changing system information

Known Bugs and Limitations

  • The Media player must be on for preset discovery
  • Due to limitations of the FSAPI protocol, parallel operation with the UNDOK App is not reliable and thus not supported. Use at own risk.

Documentation

This adapter lets you control internet radios and media players based on Frontier Silicon chipsets. Many devices which can be controlled via UNDOK should work. Tested devices come from Revo, Sangean, Hama and SilverCrest, others should work, too.

After installation the device's IP and PIN must be entered in the configuration dialog. If the radio does not play DAB after switching on via the UNDOK App or this adapter try again with "DAB starts without sound" enabled.

When the adapter starts for the first time it collects information about the device. For that it needs to switch through all modes. During checking settings the device will be muted for a few seconds to avoid disturbing sounds.

While the adapter reads the device's settings ioBroker objects and states are created. States can be read-only (ro) or read-write (rw) ok, write-only for buttons is also possible.

  • audio

    Basic audio settings. No equalizer controls implemented yet.

    • maxVolume (number, ro)

      The maximum volume selectable

    • mute (boolean, rw)

      true if the device is muted, falseotherwise

    • volume (number, rw)

    • control

      • volumeDown and volumeUp

      In-/ or decreases volume by 1

  • device

    • friendlyName (text, rw)

    • power (boolean, rw)

    • radioId (test, ro)

      My guess is that this is the MAC of the device

    • version (text, ro)

      Software version

    • webfsapi (text, ro)

      The address of the API

  • info

    • connection (boolean, ro)

      Connection indicator for the adapter

  • media

    • state (number, rw)

      valid values are:

      • 0: Pause
      • 1: Play
    • control

      • next
      • plause
      • play
      • previous

    Do not take the following names too seriously. The radio uses them differently in different modes.

    • album (text, ro)

    • artist (text, ro)

    • graphic (text, ro)

      Use this URL to get an album cover or a station's logo.

    • name (text, ro)

    • text (text, ro)

    • title (text, ro)

  • modes

    • readPresets

      Re-reads all presets

    • selectPreset (number, rw)

      Used to get or select a preset. Be warned that the adapter guesses as this value cannot be read from the API.

    • selected (number, rw)

      Indicates or selects the selected mode. Can also be selected via modes.{number}.switchTo

    • {number}

      • id (text, ro)

        The name of that mode

      • key (number, ro)

        The index of that mode. Equals mode.{number} from object tree and can be written into modes.selected.

      • selectable (boolean, ro)

        true if this mode can be manually selected.

      • streamable (boolean, ro)

        Only present on multi-room enabled devices. true if this mode can be used as source for several multi-room devices.

      • switchTo

        Selects that mode.

      • presets

        • availabe (boolean, ro)

          Indicates whether presets for this mode are available

        • {number}

          The index of that preset. Equals mode.*.presets.{number}.key.

          • key

            The index of that preset. Equals mode.*.presets.{number} from object tree and can be written into modes.selectPreset.

          • name (text, ro)

            The name of that preset

          • switchTo

            Selects that preset and the corresponding mode.

Please be aware that you can sometimes choose between "pushing a button" or "setting a value". Use what is more convenient for you.

Changelog

0.3.0 (2024-08-27) - 2024H2 maintenance release

  • (pdbjjens) Change: node>=18, js-contoller>=5 and admin>=6 required
  • (pdbjjens) Change: Removed .npmignore
  • (pdbjjens) Change: Cyclic connection retry instead of disabling the adapter (#191)
  • (pdbjjens) New: Updated dependencies
  • (pdbjjens) Fix: Replace deprecated method "deleteChannel" by "delObject" (#224)

0.2.0 (2024-01-28)

  • (pdbjjens) Change: Increase minor version number

0.1.2 (2024-01-26) - 2024 maintenance release

  • (pdbjjens) Change: node>=16, js-contoller>=4 and admin>=5 required
  • (pdbjjens) New: Optionally display PIN code and limit to 4 digits in config GUI
  • (pdbjjens) Updated dependencies

0.1.1 (2023-07-26)

  • (pdbjjens) Breaking Change: node>=14, js-contoller>=4 and admin>=5 required
  • (pdbjjens) Breaking Change: PIN encryption and validity check of all parameters in config UI
  • (pdbjjens) Breaking Change: Type of frontier_silicon.X.modes.selectPreset changed from "string" to "number"
  • (pdbjjens) Change: Validity check of all parameters in config UI
  • (pdbjjens) Change: Re-establish session if network connection is lost
  • (pdbjjens) New: Synchronization of power, volume and mute states with the UNDOK App

0.1.0 (2023-07-15)

  • (pdbjjens) Breaking Changes: node>=14, js-contoller>=4 and admin>=5 required
  • (pdbjjens) New: json config UI
  • (pdbjjens) New: Re-establish session if network connection is lost
  • (pdbjjens) New: Remove obsolete unit testing
  • (pdbjjens) Fix: Prevent crashes if radio device is not reachable

Legal Notices

Frontier, Frontier Silicon, SmartRadio, UNDOK and associated logos are trademarks or registered trademarks of Frontier Smart Technologies Limited https://www.frontiersmart.com

All other trademarks are the property of their respective owners.

The authors are in no way endorsed by or affiliated with Frontier Smart Technologies Limited , or any associated subsidiaries, logos or trademarks.

License

MIT License

Copyright (c) 2024 halloamt [email protected]

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.