Station Logo Plugin for FM-DX-Webserver
This script provides a logo for identified radio stations.
- The use of the directory on the server has been removed; the logos are now loaded directly again.
Compatible from webserver version 1.2.6 !!! Older webserver versions take the Plugin Version 3.2a, 3.2b or 3.2c !!!
- Download the last repository as a zip
- Unpack the Station Logo.js and the Station Logo folder with the updateStationLogo-js into the web server plugins folder (..fm-dx-webserver-main\plugins) image
- Restart the server
- coming soon: Activate the plugin it in the settings
The following variables can be changed in the header of the script:
enableSearchLocal = false; // Enable or disable searching local paths (.../web/logos)
enableOnlineradioboxSearch = true; // Enable or disable onlineradiobox search if no local or server logo is found.
updateLogoOnPiCodeChange = true; // Enable or disable updating the logo when the PI code changes on the current frequency. For Airspy and other SDR receivers, this function should be set to false.
updateInfo = true; // Enable or disable daily versions check for admin login
In order for logos to be displayed, your own location in the web server must also be correctly entered and activated! Otherwise, the system cannot receive an ITU code of the sender location to display the logo. The correct station logo should then be loaded during RDS recognition, provided a specific logo has already been created on our server or it is located in the local /web/logos folder. LOGOS with the same PI code can be distinguished by adding the program name from the TX field. To do this, rename the file to PICODE_PROGRAMNAME.png/.svg, all in capital letters and without spaces or special characters e.g. "9210" & "DR P1/DR P2" ---> 9210_DRP1DRP2.png . Missing logos will be taken over by onlineradiobox.com (from version 3.1). For missing or incorrect logos, please use the integrated Google search function. This is activated automatically (the logo box is highlighted) if a country code and a program name can also be retrieved from the database for a PI code. In most cases, you can find the right logo this way. Many logos are in PNG or SVG format with a transparent background. These fit in very well with the look of the web server. For the PNG format, a small version is often sufficient, as we currently process a maximum of 140 pixels wide and 60 pixels high. Basically, the script inserts the logos appropriately into the existing window. If you create logos for different countries, please place them in separate folders that you are welcome to use with the ITU names. Then just send me the files or a download link via email or via our Discord Community. I will upload them to our server as soon as possible.
If a logo used in the plugin violates copyright, please let me know. I will remove it immediately.
If you have any questions, would like to report problems, or have suggestions for improvement, please feel free to contact me! You can reach me by email at highpoint2000@googlemail.com. I look forward to hearing from you!
History
- incorrect country corrected in Google logo search
- Revised socket logic to avoid duplicate connections (thanks to AmateurAudioDude)
- automatic reconnect of the websocket built in (this could eliminate the hanging logo)
- Fixed logo display for identified US Stations
- Updates are now displayed in Setup
- Logo display now also in landscape format on smartphones (side reload required!)
- Google Image Search opens in a new window
- Added local search for default-logo.png
- Added console output for Program Name Search (PI_PROGRAMNAME.svg/.png)
- Problems with quick PI code changes fixed
- minor code optimizations
- Removed unnecessary console output
- Added support for Proxy and VPN-Connections
- Added Program Name Search (PI_PROGRAMNAME.svg/.png) for local directory
- Implemented handling of special characters in program names (Everything must be in capital letters and without spaces or special characters!)
- Server request via directory file (faster and no error messages)
- Daily update check for admin login installed
- Improved cors proxy mechanism
- Query order adjusted
- small design adjustment
- Built-in switch to deactivate local search (reduction of error messages in the console!)
- compatible with changed websocket data in version 1.2.6
- Design adjustment for transparent background
- Stereo toggle problem fixed on mobile devices
- mouseover show plugin version
- Design correction for stereo symbol in mobile layout
- CORS PROXY HTTPS Support for onlineradiobox.com
- Added switch for alternative search at onlineradiobox.com
- Added switch for logo reload when PI code changes, recommended for SDR receivers (e.g.: Airspy)
- Switching the query process to JSON
- Reduction of query values
- Stability and performance improvements
- Bug fixing
- Countrylist (ITU codes) were moved to the server
- program name logo query in capital letters
- itu code additions
- code optimization & bug fixing
- additional query for PI code and program name (Local + Server)
- Play/Stop button back to original size
- Problem with logo retrieval from onlineradiobox.com fixed
- Instead of Lyngsat, missing logos are now downloaded from onlineradiobox.com
- Fixed the disappearance of the PS identifier
- remove tooltip
- code optimizations
- additional logo query via the Lyngsat website
- fixed missing display of TP/TA/MO/ST on mobile devices
- local folder "/web/logos" is prioritized
- further optimized Google Search Function (e.g. country name added)
- Tooltip has been bugfixed
- optimized Google Search Function (ITU code added)
- Google Search Function -> When a RDS Station has been identified, the logo field is highlighted. Now you can click on the field and go directly to Google image search to download a suitable logo quickly and easily
- code optimizing
- The script now also searches the local directory /web/logos

