diff --git a/htdocs/css/openwebrx.css b/htdocs/css/openwebrx.css index 5ff426f8..30bac56a 100644 --- a/htdocs/css/openwebrx.css +++ b/htdocs/css/openwebrx.css @@ -1367,6 +1367,10 @@ img.openwebrx-mirror-img content: "📰 "; } +.rds-container .rds-radiotext-plus .rds-rtplus-weather:not(:empty):before { + content: "⛅ "; +} + .rds-container .rds-radiotext-plus .rds-rtplus-homepage:not(:empty):before { content: "🔗 "; } \ No newline at end of file diff --git a/htdocs/lib/MetaPanel.js b/htdocs/lib/MetaPanel.js index 00c189a3..a1cfccbe 100644 --- a/htdocs/lib/MetaPanel.js +++ b/htdocs/lib/MetaPanel.js @@ -422,7 +422,6 @@ WfmMetaPanel.prototype.update = function(data) { tags = Object.fromEntries(data.radiotext_plus.tags.map(function (tag) { return [tag['content-type'], tag['data']] })); - console.info(tags); } if (data.radiotext_plus.item_toggle !== this.radiotext_plus.item_toggle) { @@ -456,6 +455,10 @@ WfmMetaPanel.prototype.update = function(data) { this.radiotext_plus.news = tags['info.news']; } + if ('info.weather' in tags) { + this.radiotext_plus.weather = tags['info.weather']; + } + } if ('radiotext' in data && !this.radiotext_plus) { @@ -471,6 +474,7 @@ WfmMetaPanel.prototype.update = function(data) { } $el.find('.rds-rtplus-programme').text(this.radiotext_plus.programme || ''); $el.find('.rds-rtplus-news').text(this.radiotext_plus.news || ''); + $el.find('.rds-rtplus-weather').text(this.radiotext_plus.weather || ''); if (this.radiotext_plus.homepage) { $el.find('.rds-rtplus-homepage').html( '' + this.radiotext_plus.homepage + '' @@ -502,7 +506,8 @@ WfmMetaPanel.prototype.setEnabled = function(enabled) { '
' + '' + '' + - ''+ + '' + + '' + '' + '' + '' +