Skip to content

Commit

Permalink
Update updateStationLogo.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Highpoint2000 committed Jul 31, 2024
1 parent 840f15d commit 5968d90
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions StationLogo/updateStationLogo.js
Original file line number Diff line number Diff line change
@@ -1,24 +1,24 @@
//////////////////////////////////////////////////////////////////////////////////////
/// ///
/// STATION LOGO INSERT SCRIPT FOR FM-DX-WEBSERVER (V3.2c) ///
/// STATION LOGO INSERT SCRIPT FOR FM-DX-WEBSERVER (V3.3) ///
/// ///
/// Thanks to Ivan_FL, Adam W, mc_popa, noobish & bjoernv for the ideas and ///
/// design! ///
/// ///
/// New Logo Files (png/svg) and Feedback are welcome! ///
/// 73! Highpoint ///
/// last update: 25.07.24 ///
/// last update: 31.07.24 ///
//////////////////////////////////////////////////////////////////////////////////////

/// This plugin only works from web server version 1.2.5!!!
/// This plugin only works from web server version 1.2.6!!!

const enableOnlineradioboxSearch = true; // Enable or disable onlineradiobox search if no local or server logo is found.
const 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.

// Immediately invoked function expression (IIFE) to encapsulate the loggerPlugin code
(() => {

const plugin_version = '3.2c'; // Plugin Version
const plugin_version = '3.3'; // Plugin Version
const StationLogoPlugin = (() => {

//////////////// Insert logo code for desktop devices ////////////////////////
Expand Down Expand Up @@ -219,7 +219,7 @@ function waitForServer() {
let parsedData = JSON.parse(event.data);
let piCode = parsedData.pi.toUpperCase();
let ituCode = parsedData.txInfo.itu.toUpperCase();
let Program = parsedData.txInfo.station.replace(/%/g, '%25');
let Program = parsedData.txInfo.tx.replace(/%/g, '%25');
let frequenz = parsedData.freq;
updateStationLogo(piCode, ituCode, Program, frequenz);
});
Expand Down

0 comments on commit 5968d90

Please sign in to comment.