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
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
Moderator: mcrossley
- 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
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>
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>
- 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
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("°","'"))
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("°","'"))
- 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
It does - but my script does not seem to be able to read them! No idea why!!
It reads the Metoffice rss feed ok!
It reads the Metoffice rss feed ok!
- 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
But the code above only appears to use the title, the values are in the descriptions.
- 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
I am afraid my Python skills amount to Google->Copy->Paste->Google Python Errors
I will need to do some more Googling!!!!
I will need to do some more Googling!!!!
- 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
I know nothing about it, but I think you would want...
But won't that show the messages really fast? You may want a delay in the loop.
Code: Select all
sense.show_message(post.description)
- 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
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
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
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
-
- 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
Yes, I stopped using it when it stopped working and I couldn't figure out why
- 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
Many thanks that worked perfectly - my code is now - it has a default scroll speed that is slow enough to read perfectlymcrossley wrote: ↑Fri 08 Dec 2023 9:03 pm I know nothing about it, but I think you would want...But won't that show the messages really fast? You may want a delay in the loop.Code: Select all
sense.show_message(post.description)
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)