Welcome to the Cumulus Support forum.

Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024

Cumulus MX V4 beta test release 4.0.0 (build 4021) - 04 May 2024

Legacy Cumulus 1 release 1.9.4 (build 1099) - 28 November 2014
(a patch is available for 1.9.4 build 1099 that extends the date range of drop-down menus to 2030)

Download the Software (Cumulus MX / Cumulus 1 and other related items) from the Wiki

RSS Feed

From build 3044 the development baton passed to Mark Crossley. Mark has been responsible for all the Builds since. He has made the code available on GitHub. It is Mark's hope that others will join in this development, but at the very least he welcomes your ideas for future developments (see Cumulus MX Development suggestions).

Moderator: mcrossley

Post Reply
User avatar
The Dalek Hunter
Posts: 256
Joined: Wed 05 Aug 2020 11:51 am
Weather Station: Ecowitt GW1000B, Ecowitt GW2000
Operating System: macOS Sonoma on a Mac Mini M2
Contact:

RSS Feed

Post by The Dalek Hunter »

I am trying to setup a scrolling ticker display on a Raspberry Pi with the current conditions from one of my websites, unfortunately my coding skill is low!!!!

I have got the ticker bit sorted it's just the rss file I can't figure out.

I did some searching in the forum and came up with the file below.

I am getting CMX to upload and process the file as an extra web file.

However when displayed via the ticker no variables (ie temp ) are shown.

I know the ticker is working as it displays an rss feed from the Metoffice perfectly.

<?xml version="1.0" ?>
<rss version="2.0">
<channel>
<title>Long Sutton Weather</title>
<description>Current Conditions</description>
<link>http://angteck.co.uk</link>
<item>
<title>Current Temp</title>
<description>Temp <#temp> C</description>
</item>
<item>
<title>Current Pressure</title>
<description>Pressure <#press> mb</description>
<link>http://angteck.co.uk</link>
</item>
</channel>
</rss>
User avatar
The Dalek Hunter
Posts: 256
Joined: Wed 05 Aug 2020 11:51 am
Weather Station: Ecowitt GW1000B, Ecowitt GW2000
Operating System: macOS Sonoma on a Mac Mini M2
Contact:

Re: RSS Feed

Post by The Dalek Hunter »

And just to clarify further the ticker will be displayed an a Raspberry Pi Sense Hat using the following python code

import feedparser
from sense_hat import SenseHat

sense = SenseHat()

d = feedparser.parse("https://angteck.co.uk/rss.xml")

print (d.feed.title)

for post in d.entries:
print (post.title)
sense.show_message(post.title.replace("°","'"))
User avatar
mcrossley
Posts: 12808
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: RSS Feed

Post by mcrossley »

The XML looks like it has values in it now?
User avatar
The Dalek Hunter
Posts: 256
Joined: Wed 05 Aug 2020 11:51 am
Weather Station: Ecowitt GW1000B, Ecowitt GW2000
Operating System: macOS Sonoma on a Mac Mini M2
Contact:

Re: RSS Feed

Post by The Dalek Hunter »

It does - but my script does not seem to be able to read them! No idea why!!

It reads the Metoffice rss feed ok!
User avatar
mcrossley
Posts: 12808
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: RSS Feed

Post by mcrossley »

But the code above only appears to use the title, the values are in the descriptions.
User avatar
The Dalek Hunter
Posts: 256
Joined: Wed 05 Aug 2020 11:51 am
Weather Station: Ecowitt GW1000B, Ecowitt GW2000
Operating System: macOS Sonoma on a Mac Mini M2
Contact:

Re: RSS Feed

Post by The Dalek Hunter »

I am afraid my Python skills amount to Google->Copy->Paste->Google Python Errors

I will need to do some more Googling!!!!
User avatar
mcrossley
Posts: 12808
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: RSS Feed

Post by mcrossley »

I know nothing about it, but I think you would want...

Code: Select all

sense.show_message(post.description)
But won't that show the messages really fast? You may want a delay in the loop.
User avatar
PaulMy
Posts: 3863
Joined: Sun 28 Sep 2008 11:54 pm
Weather Station: Davis VP2 Plus 24-Hour FARS
Operating System: Windows8 and Windows10
Location: Komoka, ON Canada
Contact:

Re: RSS Feed

Post by PaulMy »

Interesting...
Beyond me to even begin to understand, but I do follow instructions and a lot of trial and error. About 10 years ago forum member BCJKiwi (Brian) wrote an RSS script and I had it working on both my Cumulus template and Saratoga template sites. I think some time ago it stopped working and appears to be some deprecated PHP code but it is still being processed and updated by my old CU1 setup http://www.komokaweather.com/weather/cumulusrss.php

Enjoy,
Paul
VP2+
C1 www.komokaweather.com/komokaweather-ca
MX https://komokaweather.com/cumulusmx/index.htm /index.html /index.php
MX https://komokaweather.com/cumulusmxwll/index.htm /index.html /index.php
MX https:// komokaweather.com/cumulusmx4/index.htm
Image
BCJKiwi
Posts: 1256
Joined: Mon 09 Jul 2012 8:40 pm
Weather Station: Davis VP2 Cabled
Operating System: Windows 10 Pro
Location: Auckland, New Zealand
Contact:

Re: RSS Feed

Post by BCJKiwi »

Yes, I stopped using it when it stopped working and I couldn't figure out why :bash:
User avatar
The Dalek Hunter
Posts: 256
Joined: Wed 05 Aug 2020 11:51 am
Weather Station: Ecowitt GW1000B, Ecowitt GW2000
Operating System: macOS Sonoma on a Mac Mini M2
Contact:

Re: RSS Feed

Post by The Dalek Hunter »

mcrossley wrote: Fri 08 Dec 2023 9:03 pm I know nothing about it, but I think you would want...

Code: Select all

sense.show_message(post.description)
But won't that show the messages really fast? You may want a delay in the loop.
Many thanks that worked perfectly - my code is now - it has a default scroll speed that is slow enough to read perfectly

import feedparser
from sense_hat import SenseHat

sense = SenseHat()

import time

d = feedparser.parse("https://angteck.co.uk/rss.xml")

while True:

for post in d.entries:
sense.show_message(post.description)
Post Reply