TodayPlus Boards v2

TodayPlus for the Pocket PC Forums => HammerSkin => Topic started by: Rick on August 01, 2005, 02:26:48 PM

Title: RSS / News, Stocks, Weather
Post by: Rick on August 01, 2005, 02:26:48 PM
All,
I am new to this Forum and have installed Hammerskin QVGA on an Axim X5. I have the skin working (and it's great !) but I cannot get the News ticker, Weather or stocks to work. I have read the topics and replies but still cannot get it to work. Buffer file is empty. I have attched Radar.exe to see if there is a problem in it. When I run Radar, it appears to be downloading (cannot see all of path since it is obscured by a light blue bar), then an error results (Directory Not Found Exception). Help would be appreciated.
Title: RSS / News, Stocks, Weather
Post by: Broesel on August 01, 2005, 03:13:40 PM
Quote from: RickAll,
I am new to this Forum and have installed Hammerskin QVGA on an Axim X5. I have the skin working (and it's great !) but I cannot get the News ticker, Weather or stocks to work. I have read the topics and replies but still cannot get it to work. Buffer file is empty.

Hi Rick, I'm pretty sure, that you do start the todayplus.exe.
This is not the way to get TodayPlus working. You need to run it as a
today-plugin, because the .exe is only for testing and does not support
weather and rss-download.
This thread might help you :
http://forums.jhollin1138.com/viewtopic.php?t=1812&highlight=expiration
If not, do a search with "expiration" in the forumsearch.

QuoteI have attched Radar.exe to see if there is a problem in it. When I run Radar, it appears to be downloading (cannot see all of path since it is obscured by a light blue bar), then an error results (Directory Not Found Exception). Help would be appreciated.

Well, the radar.exe is the program, that does the download and is not what you should attach here  :wink: . What we need to take a look at is the radar.txt, where the urls for download are stored ....
The error you are describing, seems to be the problem, that one of the directories,
where you want to store the files, does not exist ! You have to create it, before downloading with the radar.exe.

Hope, this helps,
regards Broesel
Title: news ticker not working
Post by: tonyaross on August 17, 2005, 04:25:34 PM
I put in two rss feeds in the config file, (NY Times and BBC World); I can read the feeds in the rss section, but the News Ticker on the main page is not working.  :oops: Since I run TP as a plugin, not as .exe, I know it must be a different reason. I really appreciate if someone could give me some help. Thanks much!  :roll:


T
Title: Re: news ticker not working
Post by: DeftOne on August 17, 2005, 05:31:04 PM
Quote from: tonyarossI put in two rss feeds in the config file, (NY Times and BBC World); I can read the feeds in the rss section, but the News Ticker on the main page is not working.  :oops: Since I run TP as a plugin, not as .exe, I know it must be a different reason. I really appreciate if someone could give me some help. Thanks much!  :roll:


T

I'm not sure what skin your using, but the Newsticker is usually region 6, I believe.  Make sure you've got it "turned on" in your skin file.  The initregion command should be near the top of the skin file and should read:

initregion,6,0

If the last number of the above initregion command reads 999, the Newsticker will not be visible.  

Technically, this really isn't turning the region on or off, it just sets which page of the region to display.  999 is just the default way of disabling a region by selecting a page that doesn't exist - or at least that's how I view it anyway.

Not sure if this is your problem, but it's where I'd start...
Title: RSS / News, Stocks, Weather
Post by: tonyaross on August 17, 2005, 10:57:18 PM
Deftone, thx so much for the help. I'm using Hammerskin, and I checked the code. You are right, the news ticker is in region 6, but it also seems to be in region 4,3 - 4,8. See below.

Region2
// REGION   4,3 - 4,8 Newsticker der Mainpage Region 6
// REGION   3,0 WETTER
// REGION   5,0           AGENDA AREA FÜR MAINPAGE
// REGION   6,0           NEWSTICKER FÜR MAINPAGE


Also, the code for initregion 6 is already set to 0. See below.

initregion,1,0
initregion,2,0
initregion,6,0
initregion,3,999
initregion,7,999
initregion,8,999
initregion,9,999


Still, the ticker is not working. It's kinda frustrating.

Now that I have you :wink:  , can I also ask you how to move the agenda section on the mainpage downward?

You got a real cute little one for your avatar. :wink:

T
Title: RSS / News, Stocks, Weather
Post by: DeftOne on August 18, 2005, 09:55:47 AM
I'm not sure why your Newsticker isn't working on your mainpage.  If you want to upload your skin file, maybe I could find some time to take a look at it.  Or maybe someone else can give you a few things to try?

As far as moving your agenda section down to insert a header, find the following section in your skin file:

//////////////////////////////////////////////////////////////////////////
// REGION 5 AGENDA DISPLAY FOR MAINPAGE
//////////////////////////////////////////////////////////////////////////

region,5,0,-1
defregion,5,0,126,209,120,1

options,calendarfilter,1
options,taskfilter,1

options,dateformat,3,15,18,%changefont,tahoma,11,%%line,203,10,-1_4_-1%%bold%%date,"dddd, MMMM dd, yyyy",l%%regularfont%
options,today-text,'Today', MMMM dd, yyyy
options,tomorrow-text,'Tomorrow', MMMM dd, yyyy

options,apptformat,0,11,13,%iconstart,67%%sensitivityicon,-10,1,private sensitivity.png,normal sensitivity,tr%%recurrenceicon,-10,1,recurrence.png,tr%%remindericon,-10,1,reminder.png,tr%%changefont,tahoma,11,%%image,0,2,small_arrow_right.png,tr%%tab,7%%starttime,h:mm t%%tab,76%%subject%%regularfont%

options,apptallday,0,11,13,%iconstart,67%%sensitivityicon,-10,1,private sensitivity.png,normal sensitivity,tr%%recurrenceicon,-10,1,recurrence.png,tr%%remindericon,-10,1,reminder.png,tr%%changefont,tahoma,11,%%textcolor,0_128_0%%image,0,2,small_arrow_right.png,tr%%tab,7%All Day%tab,76%%subject%%regularfont%%resettextcolor%

options,taskformat,0,11,13,%iconstart,67%%sensitivityicon,-10,1,private sensitivity.png,normal sensitivity,tr%%recurrenceicon,-10,1,recurrence.png,tr%%remindericon,-10,1,reminder.png,tr%%priorityicon,-10,1,lowpriority.png,normal priority.png,high priority.png,tr%%changefont,tahoma,11,%%checkbox,0,0,12,12,dot.png,dot1.png,t%%tab,10%[%enddate,dd/MM%]%tab,76%%subject%%regularfont%

options,taskoverdue,0,11,13,%textcolor,200_0_0%%iconstart,67%%sensitivityicon,-10,1,private sensitivity.png,normal sensitivity,tr%%recurrenceicon,-10,1,recurrence.png,tr%%remindericon,-10,1,reminder.png,tr%%priorityicon,-10,1,lowpriority.png,normal priority.png,high priority.png,tr%%changefont,tahoma,11,%%checkbox,0,0,12,12,dot.png,dot1.png,t%%tab,10%[%enddate,dd/MM%]%tab,76%%subject%%regularfont%%resettextcolor%

options,taskcomplete,0,11,13,%iconstart,67%%sensitivityicon,-10,1,private sensitivity.png,normal sensitivity,tr%%recurrenceicon,-10,1,recurrence.png,tr%%remindericon,-10,1,reminder.png,tr%%priorityicon,-10,1,lowpriority.png,normal priority.png,high priority.png,tr%%changefont,tahoma,11,s%%checkbox,0,0,12,12,dot.png,dot1.png,t%%tab,10%[%enddate,dd/MM%]%tab,76%%subject%%regularfont%

options,blanktext,-1,11,13

outlook,4,126,203,120,0,0,228,,,5
button,4,126,12,120,-1,24,nohighlight,5
changefont,tahoma,12


Change the y coordinate of the outlook command (in red below):

outlook,4,126,203,120,0,0,228,,,5

Increase the number enough to slide your agenda section down within the agenda region to give you enough room for your new header.  Please note that this will give you less screen real-estate to view agenda items, since you haven't resized the agenda region.  I'd probably adjust the y coordinate of the button right below the outlook command to match, just to keep it consistent.

I'm not sure where it's located anymore, but there was a skin reference file available for TodayPlus that explained all the available commands used in the skin file.  I'd suggest hunting it down - it's a very valuable resource!

Hope this helps!  

p.s. - That's my daughter in my avatar.  You're right - she's definitely a cutie!!!  (I'm not biased at all... :wink: )
Title: RSS / News, Stocks, Weather
Post by: DeftOne on August 18, 2005, 11:39:54 AM
Ok, it looks like you're using SiggloX's version of Hammerskin, correct? The one located here?

http://www.jhollin1138.com/forums/viewtopic.php?t=1761

I downloaded the skin file and took a look at it (Hammerskin1.05.6 QVGA Ger_ppcwelt_eng.zip).  It looks to me like Region 6 and Sub-Region 4 (and its pages) have been deleted completely.

This is what region 6 and sub-region 4 look like in my skin (I've got them commented out since I don't use the Newsticker):

/////////////////////////////////////////////////////////////////////////////////
// REGION 6 NEWS TICKER MAINPAGE   REGION 4,3-4,6
/////////////////////////////////////////////////////////////////////////////////

//region,6,0,10
//defregion,6,0,200,210,38

//if,var,var15,,=,0
//jumpregion,4,3
//storevar,var15=1
//else

//if,var,var15,,=,1
//jumpregion,4,4
//storevar,var15=2
//else

//if,var,var15,,=,2
//jumpregion,4,5
//storevar,var15=3
//else

//if,var,var15,,=,3
//jumpregion,4,6
//storevar,var15=4
//else

//if,var,var15,,=,4
//jumpregion,4,7
//storevar,var15=5
//else

//if,var,var15,,=,5
//jumpregion,4,8
//storevar,var15=0
//endif
//endif
//endif
//endif
//endif
//endif


//RSS NEWSTICKER============================

//region,4,3,-1

//load,rss,1

//RSS,title,4,201,207,12,1,,,l
//RSS,title,4,212,207,12,2,,,l
//RSS,title,4,223,207,12,3,,,l

//endregion,4,3


//RSS NEWSTICKER============================

//region,4,4,-1

//load,rss,2

//RSS,title,4,201,207,12,1,,,l
//RSS,title,4,212,207,12,2,,,l
//RSS,title,4,223,207,12,3,,,l

//endregion,4,4


//RSS NEWSTICKER============================

//region,4,5,-1

//load,rss,1

//RSS,title,4,201,207,12,4,,,l
//RSS,title,4,212,207,12,5,,,l
//RSS,title,4,223,207,12,6,,,l

//endregion,4,5


//RSS NEWSTICKER============================

//region,4,6,-1

//load,rss,2

//RSS,title,4,201,207,12,4,,,l
//RSS,title,4,212,207,12,5,,,l
//RSS,title,4,223,207,12,6,,,l

//endregion,4,6


//RSS NEWSTICKER============================

//region,4,7,-1

//load,rss,1

//RSS,title,4,201,207,12,7,,,l
//RSS,title,4,212,207,12,8,,,l
//RSS,title,4,223,207,12,9,,,l

//endregion,4,7


//RSS NEWSTICKER============================

//region,4,8,-1

//load,rss,2

//RSS,title,4,201,207,12,7,,,l
//RSS,title,4,212,207,12,8,,,l
//RSS,title,4,223,207,12,9,,,l

//endregion,4,8

//endregion,6,0


So, it looks like there's a significant amount of code missing from that skin file that deals with the Newsticker as it was originally designed by Wichtel.  Which makes me wonder why SiggloX has got the heading "Newsticker" in his skin in the first place???? Hmmm....I'm guessing it should read "Agenda", since there's no code for the newsticker in that skin file.
Title: RSS / News, Stocks, Weather
Post by: Wichtel on August 18, 2005, 03:12:31 PM
@ tonyaross

I see here and in other posts you have some trouble to find the correct settings for the Hammerskin. I haven't time to answer you the last Day's, sorry for that.

My suggestion: load my original Hammerskin (http://forums.jhollin1138.com/viewtopic.php?t=1663) and you can see if your setup work correct or not.

Here and in some other forums exists some Hammerskin modifications with any changes in the Skincode. Some Skins are reduced in the height some have no Newsticker and anything else.

Use my original Version as referenc and try out later a modification Version. All Mods uses the Original Setup in the Config.
Title: RSS / News, Stocks, Weather
Post by: tonyaross on August 18, 2005, 08:22:09 PM
Hi, guys, greatly appreciate your help.

DeftOne, I was playing with the "defregion" in the agenda section code before I got your post; and then I realized that I was doing the wrong part. Thx much for the pointer. I read your reply and then went over to the tutorial on skinning, and was finally able to make the adjustment. Like you, however, I decided to give up on the News Ticker in the end, because it was too hard to squezee in that many lines without sacrificing the agenda display.

Wichtel, thx for the link to the original code. As I'm a student in international affair and know not a word of computer code, it is very helpful and also educational to compare the original with the one that I got. I actually cut and pasted the whole region 6 to make the ticker work, and it actually did. But like I said above, I couldn't get the agenda display at the length that I wanted and ticker at the same time, so I had to give it up on the main page. I still love the idea of having one or two lines of news "tickering," I just need to think where I can space to put it.

Guys, thx again, you are great. Here's a screenshot of what I have, thx to you!!! I made the wallpaper from two pics, the space in the lower right corner comes in handy for the beautiful lady.
Title: RSS / News, Stocks, Weather
Post by: DeftOne on August 19, 2005, 08:56:45 AM
Skin looks great!  I'm glad I was able to help you out.  

Now that you've got the skin reference info, you'll be a pro-skinner in no time!

Good luck!

DeftOne
Title: rss config does not take comma
Post by: tonyaross on August 21, 2005, 08:27:34 PM
I don't know whether any of you has had this problem before, but I was trying to put in a rss feed in the TP config.exe, and found that I could not put in a comma (,). If I do, the text will break of from the comma and the rest of the feed get into the "name" section.

Any ideas?

T
Title: RSS / News, Stocks, Weather
Post by: DeftOne on August 22, 2005, 10:29:01 AM
All the information for a RSS feed is stored in a single registry string.  The url, name, update time, and pages to cache are all in that single string with each item seperated by a comma.  This is where you are running into problems.  Since your url has a comma in it, it is being read and stored incorrectly in the registry.  

Now...is there a way around this?  I don't know.  Surely people have run into this problem before.  Perhaps there is a way to make the config.exe and registry read and store a comma literally, like you can in the skin file using ','.  (I've tried this, and unfortunately it doesn't work :( ).  

Sorry I didn't answer your question, but at least this might shed some light on why you're having a problem.  Maybe someone else will have the solution.
Title: RSS / News, Stocks, Weather
Post by: tonyaross on August 22, 2005, 09:33:53 PM
Thx for reply. I think you are right that other people must have run into this problem before. Fox and Wall Street Journal both have comma in their feeds. I cannot imagine that other people haven't tried them yet. I probably should get this post into the help and support section. Maybe those who've had this problem know how to get around it.

Thx again, you are great!

T
Title: RSS / News, Stocks, Weather
Post by: tonyaross on September 01, 2005, 08:02:09 AM
My device froze yesterday and I had to hard-reset. :oops:  After reintalling TP, quite a few things go wrong.

I lost the calendar header (the "M,T,W,Thr,F,S,S" display). The calendar header code is still in the skin, so I cannot figure out where the problem is. :oops:

//========================================
// CALENDAR CURRENT MONTH
//========================================

image,115,5,kalender_header_main.png
image,181,5,kalender_header_senkrecht_main_grau.png
image,194,5,kalender_header_senkrecht_main_rot.png

color,font,0_0_0
calendarheader,116,5,13
color,font,-1_4_-1

calendar,0,0,116,18,13,10,l


My radar.exe also stops working. The update button is OK and I can still get rss feeds, but it is not downloading anything.

Neither can I load weather icons, although I have all the weather icon folders in place. :cry:

I obviously need help.  :roll:

ThX!

T
Title: RSS / News, Stocks, Weather
Post by: Timmy on September 01, 2005, 09:34:37 AM
Quote from: tonyarossMy device froze yesterday and I had to hard-reset. :oops:  After reintalling TP, quite a few things go wrong.
@Tonyaross,

From time to time I have the same problem. Don't worry about your skin: there's nothing wrong with it!!! Mostly there's an URL-problem causing the things that happen on your PCC.

You have to give a soft-reset, and try downloading another time.

Timmy
Title: RSS / News, Stocks, Weather
Post by: Geezer on September 01, 2005, 11:11:11 AM
Timmy's right.  Same thing happens to me from time to time.  You should also try this technique, incase you didn't know about it:

Run the TPconfig
Click on the "Clear Buffer" button on the first screen
Then do a an update on all you data.  

I can tell you how to do this in my skin but I'm not sure about the others.  Should be a button on one of the screens.

Hang in there..
Title: RSS / News, Stocks, Weather
Post by: tonyaross on September 01, 2005, 02:26:53 PM
Thx guys, for the reassurance.

QuoteDon't worry about your skin: there's nothing wrong with it!!! Mostly there's an URL-problem causing the things that happen on your PCC


I did some experimenting. I went into "my document" folder and clicked the radar.exe button. It worked and downloaded radar images into the radar folder. I can also see these images on the radar page. So, the server is up, and the radar.exe is working. It's just that I cannot get the radar.exe linked with the "update" button on the main page or the weather page.

Also, the calendar header and the weather icons are in the skin and icon folders, and I should be able to load them independent of the url issue, is that corrent? (I'm not sure :oops:   )

Appreciate the help!

T
Title: RSS / News, Stocks, Weather
Post by: Broesel on September 01, 2005, 02:49:47 PM
Quote from: tonyaross
I did some experimenting. I went into "my document" folder and clicked the radar.exe button. It worked and downloaded radar images into the radar folder. I can also see these images on the radar page. So, the server is up, and the radar.exe is working. It's just that I cannot get the radar.exe linked with the "update" button on the main page or the weather page.

Also, the calendar header and the weather icons are in the skin and icon folders, and I should be able to load them independent of the url issue, is that corrent? (I'm not sure :oops:   )

Appreciate the help!

T

Hi Tonya,
I think you are missing all your preferences made in config.exe. (Cause is your hardreset)
Did you do a backup of the registry-keys ? If not, you have to configure everything new in the config.exe
(even the abbrivations of the calendar, weather and shortcuts)

Regards Broesel
Title: RSS / News, Stocks, Weather
Post by: tonyaross on September 01, 2005, 03:59:38 PM
Broesel wrote:

QuoteI think you are missing all your preferences made in config.exe.

:oops:  How could I have possbily forgotten that? I did do the rss part, but forgot about the abbr. for the calendar. Thx Broesel. I now have both the calendar header and the weather icons back. The radar.exe is still not linked to the update button, but I'm sure there must be a reason as simple as the above one. And I'm sure when people point that out to me, I gonna do the  :oops: again.

T
Title: RSS / News, Stocks, Weather
Post by: Broesel on September 01, 2005, 04:12:42 PM
Quote from: tonyarossThe radar.exe is still not linked to the update button, but I'm sure there must be a reason as simple as the above one. And I'm sure when people point that out to me, I gonna do the  :oops: again.

The radar.exe has to be linked with the first shortcut in apps-7 (the 7'th group
of applications) as far as I remember. You have to redefine all your shortcuts
in the config.exe if you want all funktions back.

Regards Broesel
Title: RSS / News, Stocks, Weather
Post by: tonyaross on September 01, 2005, 06:48:55 PM
:oops:

:lol:

I'm gonna write a list remind me of all these little things.

Truly appreciate!

T
Title: RSS / News, Stocks, Weather
Post by: Broesel on September 02, 2005, 12:43:34 AM
Quote from: tonyaross
I'm gonna write a list remind me of all these little things.

If you want to save work when a hardreset is neccessary, you can backup your settings of the config.exe by using a registry-editor, that can save and restore single keys of the registry (f. ex. Tascal Regedit). There is a workaround, how to do that. You will find it here:
http://forums.jhollin1138.com/viewtopic.php?p=14257#14257

Regards Broesel
Title: RSS / News, Stocks, Weather
Post by: tonyaross on September 02, 2005, 03:39:13 PM
Thx, that's very helpful! I'll now make the back up copy just in case this happens again.

I want to link the green radar button on the weather page to a photo viewer so that I can see radar images more clearly. I change the the following code


     imagebutton,177,78,Radar.png,t,7,4,6,-1
button,177,78,32,32,-1,6,var3=-100,
button,177,78,32,32,-1,6,var23=-20,
button,177,78,32,32,-1,6,var25=0,
button,177,78,32,32,3,4,999
button,177,78,32,32,1,4,999


into this:

     imagebutton,177,78,Radar.png,t,7,4,6,-1
button,177,78,32,32,-1,0,%apps-1-6


It does work, but it also executes the old code. Therefore, I get radar images twice, once through the photo viewer, and once the old way. This is the only place where I can find the green radar button in the code. Is there another place that I should look for?

This is interesting stuff. I should change my major. :wink:

T
Title: RSS / News, Stocks, Weather
Post by: Wichtel on September 02, 2005, 04:43:20 PM
Hi tonyaross

Change:
     imagebutton,177,78,Radar.png,t,7,4,6,-1
button,177,78,32,32,-1,0,%apps-1-6

into:
     imagebutton,177,78,Radar.png,t,-1,0,%apps-1-6

This should work
Title: RSS / News, Stocks, Weather
Post by: tonyaross on September 03, 2005, 09:41:10 AM
Wichtel,
QuoteCode:
imagebutton,177,78,Radar.png,t,-1,0,%apps-1-6  

Works great! :D

Thx!

T
Title: RSS / News, Stocks, Weather
Post by: tonyaross on September 08, 2005, 03:05:57 PM
hi guys!

I changed some code to make the weathre icons on the main page clickable. The idea is that when I click on the icon, a pop up window will show me the weather details, just like the pop up windows in the main weather page. Here is the button that I added
//===================================
//WEATHER AKTUELL + 1 Day
//===================================

load,city,1

button,7,80,15,15,7,4,0,3

calcvar,var20,weatherupdatetimediff


It works, it's hard to close the the pop up window. It freezes for about 5 seconds before it closes. Is a way to make this better?  (The close button is right over the "current month" in the calendar section, and it can "click through." Every time I touch the button, the calendar display also refreshes. Therefore, maybe the difficulty in closing it has something to do with two actions at the same time, closing and refreshing?)

Thanks!

T
Title: RSS / News, Stocks, Weather
Post by: tonyaross on September 18, 2005, 03:19:39 PM
Hi, guys, I'm having a repeated problem with the deactiviate button command, I thinking I must be doing something wrong. I'm trying to define a "region 19" for my photo album, and link that with "suspend button" at the bottom of the right hand corner. It works OK, but the images and buttons contained in "region 19" keeps showing on the main page when I press the update button. Here is a shot for the main page. I did put the  "deactiviatebuttons, 19" in the main page section.  :evil:   I'm just limping along, doing and learning at the same time.  :) Hope I can get some help.

Thanks!!!!

T
Title: RSS / News, Stocks, Weather
Post by: DeftOne on September 19, 2005, 09:08:45 AM
Make sure that you initialize your new Region 19 to be hidden at the beginning of your skin file.

initregion,19,999

Also, once you've finished using that region and go back to your Main Page (or whatever page), you'll need to hide Region 19 again.  Usually this is done through a imagebutton or button command.  

button,<x>,<y>,<width>,<height>,<target region>,<action>,<data>,<regions to update>

The "target" you want is Region 19, the "action" you want is 4, and the "data" you want is 999.  Something like this:

button,<x>,<y>,<width>,<height>,19,4,999,<regions to update>

Basically this means jump region 19 to page 999, which essentially hides the region.
Title: RSS / News, Stocks, Weather
Post by: tonyaross on September 20, 2005, 07:52:27 PM
Dear Deftone, Thx so much for all the help. I've been busy in the past two days with a paper that I have to write. I'll definitely try out your suggestions once the paper is out of the way. Thanks a million!

T