Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Thu 18 Sep 2014, 23:59
All times are UTC - 4
 Forum index » Advanced Topics » Cutting edge
Newsticker (now standalone)
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 2 [18 Posts]   Goto page: 1, 2 Next
Author Message
MU


Joined: 24 Aug 2005
Posts: 13642
Location: Karlsruhe, Germany

PostPosted: Sun 13 Aug 2006, 14:02    Post subject:  Newsticker (now standalone)  

This is a "widget", that can run in the system-tray or as an own borderless mini-window.

It displays headlines, and if you click on it, the corresponding website is opened in a webbrowser to read the full story.
You can add own feeds with different topics like "health", "finance", "linux" ...

Picture:


It has an own simple RSS-news-downloader, but also can use the more advanced RSS-reader "liferea" ( http://www.murga.org/~puppy/viewtopic.php?t=10127 ).

Download (60 kb, binary, examplescript, source):
http://dotpups.de/dotpups/Internet/MU-trayticker/MU-trayticker.pup

Options can be set with a grafical setup, see screenshot:



Mark

Last edited by MU on Wed 16 Aug 2006, 09:16; edited 6 times in total
Back to top
View user's profile Send private message Visit poster's website 
MU


Joined: 24 Aug 2005
Posts: 13642
Location: Karlsruhe, Germany

PostPosted: Sun 13 Aug 2006, 15:52    Post subject:  

Update:
before the ticker reads the textfile, it executes "grabber".
This is a script, that can run several converters.

Currently included is a converter, that reads the liferea - feeds.

So you can use liferea as your main program to set up all your newsfeeds, and use my program to display the headlines in the tray.
If a headline looks interesting, click on "go" to read the full story Cool

You can run it from the dotpups-menu.

Liferea is available here:
http://www.murga.org/~puppy/viewtopic.php?t=10127

Mark
Back to top
View user's profile Send private message Visit poster's website 
MU


Joined: 24 Aug 2005
Posts: 13642
Location: Karlsruhe, Germany

PostPosted: Sun 13 Aug 2006, 17:05    Post subject:  

--
Last edited by MU on Tue 15 Aug 2006, 10:54; edited 1 time in total
Back to top
View user's profile Send private message Visit poster's website 
MU


Joined: 24 Aug 2005
Posts: 13642
Location: Karlsruhe, Germany

PostPosted: Sun 13 Aug 2006, 20:42    Post subject:  

Update:

the small button was difficult to hit, so now the text itself can be clicked to open it in the webbrowser.

The window now is borderless and "always on top", so you can place it whereever on your screen, and it will not disturb in the small defaultsize.

Mark
Back to top
View user's profile Send private message Visit poster's website 
MU


Joined: 24 Aug 2005
Posts: 13642
Location: Karlsruhe, Germany

PostPosted: Mon 14 Aug 2006, 01:53    Post subject:  

fixed: and other special characters from liferea work correct now.
fixed: bug when all headlines had been displayed and reloaded then, then the old ones still were in memory creating "garbaged" headlines.

Oh my, string-handling in C is much different to Basic Rolling Eyes

Some more screenshots are here:
http://f1.parsimony.net/forum1/messages/51731.htm

Last edited by MU on Tue 15 Aug 2006, 11:06; edited 2 times in total
Back to top
View user's profile Send private message Visit poster's website 
MU


Joined: 24 Aug 2005
Posts: 13642
Location: Karlsruhe, Germany

PostPosted: Tue 15 Aug 2006, 00:10    Post subject:  

Now the Newsticker has a setup-wizard, where you can click on the options:
- if to run as window or in the tray
- how old messages are allowed to be used in the ticker

With a right-click on the ticker, all news are shown, and can be watched in Dillo.

These tools are german and english.
To add your own language, simply make a copy of lng/en.lng (for example as fr.lng for french), and translate it.
The program will detect it automatically from your $LANG.

As Puppys Xdialog does not support UTF8 (), I added a version compiled for Gtk2.
This version is unstable, but the dialogs I used work fine. Test it carefully if you want to take it for other dialogs, it has bugs.

Here is a screenshot of the german localization:



Mark
Back to top
View user's profile Send private message Visit poster's website 
MU


Joined: 24 Aug 2005
Posts: 13642
Location: Karlsruhe, Germany

PostPosted: Tue 15 Aug 2006, 03:35    Post subject:  

I included a simple script, that can get news for you.
You can choose in the setup, if you want to use it, or liferea, or both.

My script is not as sophisticated as liferea, for example it can not handle the "age" of messages.

But it is a extremly small alternative.
It checks for new news every 15 minutes.

You can open the feed-list from the setup, too, it is a simple textfile, where you can copy&paste new links.

Screenshot:



Mark
Back to top
View user's profile Send private message Visit poster's website 
MU


Joined: 24 Aug 2005
Posts: 13642
Location: Karlsruhe, Germany

PostPosted: Tue 15 Aug 2006, 09:44    Post subject:  

oops, my own script had problems concerning Iso/Utf8.
I added now a small conversion-utility iso2utf.
EDIT: It seems I must add another check, for sites that are in UTF-already.
Will try to add that tomorrow.

Note, I also made a selfinstalling package for other Linuxsystems, it includes Puppybasic and Xdialog-Gtk2.

http://dotpups.de/dotpups/Internet/MU-trayticker/allLinux/

Mark

Last edited by MU on Tue 15 Aug 2006, 10:57; edited 1 time in total
Back to top
View user's profile Send private message Visit poster's website 
jam


Joined: 14 Jul 2006
Posts: 245

PostPosted: Tue 15 Aug 2006, 09:58    Post subject: NewsTicker  

Excellent work on this widget Mark! Can you include a source to filter economic/financial news only?
_________________
Jam
Back to top
View user's profile Send private message 
MU


Joined: 24 Aug 2005
Posts: 13642
Location: Karlsruhe, Germany

PostPosted: Tue 15 Aug 2006, 10:27    Post subject:  

Quote:
Can you include a source to filter economic/financial news only?


I don't understand...
All you have to do:

middle-click the ticker to get the setup.
Choose "edit feeds".
Comment or delete the existing entries, and add your own ones.

Wait, trying google:
http://www.google.de/search?hl=en&ie=ISO-8859-1&q=financial+news+rss&btnG=Google+Search

I found this for example:
http://asp.usatoday.com/marketing/rss/index.aspx?POE=FOOTER
Click for example on:
XML Money Headlines
that is this link:
http://asp.usatoday.com/marketing/rss/rsstrans.aspx?feedId=money1

There they offer to use one of several readers, or a "native" format, that we need:
"Or subscribe to this feed using your favorite reader. XML"

If you click on that, you see the feed, that is right what we need.
http://rssfeeds.usatoday.com/UsatodaycomMoney-TopStories

Enter this link in leafpad, then close leafpad to restart the reader.

XML-feeds are what we need, not every site might support this format.
You can check it, by clicking on a rss-link in mozilla, it should contain words like <title> and <link>.

---------------
In liferea you can add feed-links with a right-click to a folder.

Is this what you meant?
Mark
Back to top
View user's profile Send private message Visit poster's website 
jam


Joined: 14 Jul 2006
Posts: 245

PostPosted: Tue 15 Aug 2006, 11:04    Post subject: Finance/Economic Feeds  

Mark,

Thanks for clearing this up for me and by providing some additional examples! At first I was under the impression these feeds were predefined by you the "widgetmaker" - now I understand they are editable, so I can take care of the rest myself. I skimmed over your prior posts too quickly - my mistake. This is a very usefull tool.

Jam

_________________
Jam
Back to top
View user's profile Send private message 
MU


Joined: 24 Aug 2005
Posts: 13642
Location: Karlsruhe, Germany

PostPosted: Tue 15 Aug 2006, 11:09    Post subject:  

Feel free to ask more Smile
This "RSS"-stuff was somewhat confusing for me, too.
So I'll try to make it as simple as possible.

The feedback/question help to do that Very Happy

When I'll have finished the setup-dialogs for all basic stuff and fixed all UTF-bugs and added a "time-handling" to my script, I will add a "category"-list to choose from, so that you don't need to enter links manually.
Thanks, Mark
Back to top
View user's profile Send private message Visit poster's website 
MU


Joined: 24 Aug 2005
Posts: 13642
Location: Karlsruhe, Germany

PostPosted: Wed 16 Aug 2006, 09:20    Post subject:  

Update:
- fixed: UTF-detection
- new: all basic options can be set in the grafical Setup (see new screenshot in the first message). This does not apply yet to the Feed-list, this still uses the editor.
- fixed: erratic behaviour with broken Gtk-themes.

Mark
Back to top
View user's profile Send private message Visit poster's website 
MU


Joined: 24 Aug 2005
Posts: 13642
Location: Karlsruhe, Germany

PostPosted: Wed 16 Aug 2006, 09:46    Post subject:  

- added setup-dialog for editor and webbrowser
Back to top
View user's profile Send private message Visit poster's website 
MU


Joined: 24 Aug 2005
Posts: 13642
Location: Karlsruhe, Germany

PostPosted: Wed 16 Aug 2006, 20:25    Post subject:  

I found several other bugs, and corrected them.

I also added a timestamp-system to my download-script.

Now when you set in the setup "show only news from the last x hours" to "1", then you will see only the news downloaded in the last hour.

In case the ticker should not work, delete the folder /root/.MU-trayticker/feeds/ to reset it.

Mark
Back to top
View user's profile Send private message Visit poster's website 
Display posts from previous:   Sort by:   
Page 1 of 2 [18 Posts]   Goto page: 1, 2 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Cutting edge
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0761s ][ Queries: 12 (0.0043s) ][ GZIP on ]