TodayPlus Boards v2

Programming and MOD Forums => Developer's Corner Discussion => Topic started by: Broesel on February 22, 2007, 03:43:45 PM

Title: Problems with tpfans.com - uk_skinner could you take a look ?
Post by: Broesel on February 22, 2007, 03:43:45 PM
Hi,

Uk_skinner, hope you will read this   ....

As reported in the German forum:
http://www.ppc-welt-community.info/community/showthread.php?p=841670#post841670 (http://www.ppc-welt-community.info/community/showthread.php?p=841670#post841670)

there is a problem with the scripts like:

Warning: Unknown(/home/tpfansc/public_html/rss/weather.php): failed to open stream: Permission denied in Unknown on line 0

Warning: Unknown(/home/tpfansc/public_html/rss/weather.php): failed to open stream: Permission denied in Unknown on line 0

Warning: (null)() [function.include]: Failed opening '/home/tpfansc/public_html/rss/weather.php' for inclusion
(include_path='.:/usr/lib/php:/usr/local/lib/php') in Unknown on line 0


Would be nice, if you coult take a look .....

Regards Broesel
Title: Re: Problems with tpfans.com - uk_skinner could you take a look ?
Post by: uk_skinner on February 23, 2007, 01:27:14 AM
Ok, I fixed it.  Can you let me know if the problem show up again?
Title: Re: Problems with tpfans.com - uk_skinner could you take a look ?
Post by: Broesel on February 23, 2007, 02:34:07 PM
Quote from: uk_skinner on February 23, 2007, 01:27:14 AM
Ok, I fixed it.  Can you let me know if the problem show up again?

Yes, you fixed it  :grin: , thanks.
Will let you know, if there are problems ....

Regards Broesel
Title: Re: Problems with tpfans.com - uk_skinner could you take a look ?
Post by: Broesel on May 03, 2007, 07:22:19 PM
Quote from: Broesel on February 23, 2007, 02:34:07 PM
Will let you know, if there are problems ....

Well, here I am again  :| as reported in the German forum there is a new problem with the de-weatherscript:

http://www.ppc-welt.info/community/showthread.php?p=876526#post876526 (http://www.ppc-welt.info/community/showthread.php?p=876526#post876526)

If you read this, could you take a look ?  :bow:

Regards Broesel
Title: Re: Problems with tpfans.com - uk_skinner could you take a look ?
Post by: nas on August 26, 2007, 09:46:34 AM
Hi,

Uk_skinner, hope you will read this.

URL: http://www.tpfans.com/rss/weather.php?Citycode=GMXX0266&Language=GM - there is a problem with the script like...

............................................
function makeWeatherObj() {




         this.swSunrise = "";


         this.swSunset = "";


         this.swDayLength = "";

         this.swCity = "Wrong Citycode";

         this.swSubDiv = "";

         this.swCountry = "";

         this.swRegion = "";

         this.swTemp = "";

         this.swTempCel = Math.round(5/9)*(this.swTemp-32);

         this.swCIcon = "";

         this.swWindS = "";

         this.swWindD = "";

         this.swBaro = "";

         this.swHumid = "";

         this.swReal = "";

         this.swUV = "";

         this.swVis = "";

         this.swLastUp = "";

         this.swConText = "Error!!!";

                        this.swFore = "1|2|3|4|5|02/15/2005|02/16/2005|02/17/2005|02/18/2005|02/19/2005|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|";



         this.swAcid = "GMXX0266";
}
...............................................

Would be nice, if you coult take a look .....

Regards nas
Title: Re: Problems with tpfans.com - uk_skinner could you take a look ?
Post by: GJCV on August 28, 2007, 08:26:35 PM
Quote from: nas on August 26, 2007, 09:46:34 AM
Hi,

Uk_skinner, hope you will read this.

URL: http://www.tpfans.com/rss/weather.php?Citycode=GMXX0266&Language=GM - there is a problem with the script like...

(...)

         this.swCity = "Wrong Citycode";


I am also a big fan of the "72.9.224.178/~tpfansc"  URL to make the weather work on TP+.

However I have got a similar problem as NAS with the Dutch weather. However, the US weather works just fine.
Below are the first lines of my radar.txt

SURL=http://72.9.224.178/~tpfansc/rss/weather.php?Citycode=NLXX0028&SFDay=1&Language=EN
STOR=\Program Files\TodayPlus\Buffer\city1.txt
FORM=
SURL=http://72.9.224.178/~tpfansc/rss/weather.php?Citycode=USMD0347&SFDay=1&Language=EN
STOR=\Program Files\TodayPlus\Buffer\city2.txt
FORM=


City1 (supposed to be Arnhem/Dieren, The Netherlands) does not work any more (wrong city code), Rockville (MD, USA) still does.
The problem started last week.
Solutions anyone? Thanks!

GJCV
Title: Re: Problems with tpfans.com - uk_skinner could you take a look ?
Post by: Morpheus on August 29, 2007, 04:01:16 PM
Same problem with UK cities, UKXX0104 and UKXX0018 which are Nottingham and Birmingham respectively.

Any ideas?

Morpheus
Title: Re: Problems with tpfans.com - uk_skinner could you take a look ?
Post by: uk_skinner on August 31, 2007, 07:15:58 PM
Broesel/Morpheus/nas/GJCV:


   Sorry, to response so late.  I will take a look over weekend.

Edit:  Weather.com uses different html code in USA and non-usa countries.  It will take some time to modify the codes. :wall:
Title: Re: Problems with tpfans.com - uk_skinner could you take a look ?
Post by: Morpheus on September 04, 2007, 10:15:10 PM
Quote from: uk_skinner on August 31, 2007, 07:15:58 PM
Broesel/Morpheus/nas/GJCV:


   Sorry, to response so late.  I will take a look over weekend.

Edit:  Weather.com uses different html code in USA and non-usa countries.  It will take some time to modify the codes. :wall:

Ok thanks for investigating.

Morpheus

P.S.

I don't know if it helps but Weather.com has a dedicated UK site: http://uk.weather.com/. I believe they also have a French and German site in terms of europe
Title: Re: Problems with tpfans.com - uk_skinner could you take a look ?
Post by: GJCV on September 19, 2007, 06:10:17 PM
UK_skinner,
I don't know if it's helpful but I have noted the following:
The HTML pages look very similar (and so is the structure of the HTML code) if you compare the following US versus NL pages

US
http://www.weather.com/weather/local/USMD0347.htm
is redirected to:
http://www.weather.com/outlook/travel/businesstraveler/local/USMD0347

NL
http://www.weather.com/weather/local/NLXX0028.htm
is redirected to:
http://www.weather.com/outlook/travel/businesstraveler/local/NLXX0028

How does the script actually extract the data from the weather.com? Does it first download the HTML, which then is processed? Or do you access the weather.com server in a different way?
Please let me know if there is a chance I could help somehow.

Regards, GJCV
Title: Re: Problems with tpfans.com - uk_skinner could you take a look ?
Post by: pgmnv on October 09, 2007, 12:01:36 PM
Hello all,

Does anyone have the problem resolved???
I still can't download the weather!

Cheers

Pedro Vicente

PS: I'm a bit limited in programation, but if there is anything I can do to help, just ask!!
Title: Re: Problems with tpfans.com - uk_skinner could you take a look ?
Post by: Morpheus on December 11, 2007, 10:08:03 PM
Any news on a solution to this or an alternative plgin which can replace the functionality. I trued SOMPY Weather but it has the same problem.
Title: Re: Problems with tpfans.com - uk_skinner could you take a look ?
Post by: nas on December 12, 2007, 09:21:10 AM
Quote from: Morpheus on December 11, 2007, 10:08:03 PM
Any news on a solution to this or an alternative plgin which can replace the functionality. I trued SOMPY Weather but it has the same problem.

Have a look here http://www.happyjackroad.net/pocketpc/weatherPlus/weather.asp (http://www.happyjackroad.net/pocketpc/weatherPlus/weather.asp)

nas
Title: Re: Problems with tpfans.com - uk_skinner could you take a look ?
Post by: Morpheus on December 12, 2007, 10:29:46 PM
Quote from: nas on December 12, 2007, 09:21:10 AM
Quote from: Morpheus on December 11, 2007, 10:08:03 PM
Any news on a solution to this or an alternative plgin which can replace the functionality. I trued SOMPY Weather but it has the same problem.

Have a look here http://www.happyjackroad.net/pocketpc/weatherPlus/weather.asp (http://www.happyjackroad.net/pocketpc/weatherPlus/weather.asp)

nas

Thanks, I have temporarily deleted the weather section from my modded HandyPlus basic skin and installed ADB Weather Plus. Its not as pretty as the weather options available in TP but it does provide a forecast.
Title: Re: Problems with tpfans.com - uk_skinner could you take a look ?
Post by: mfigrs on January 02, 2008, 04:35:54 PM
I am fortunate enough to reside in the USA, where TP still works. But I'd really like to have this issue addressed  :pray:. I am not a programmer, but in case any help is needed, I am willing to help.
Title: Re: Problems with tpfans.com - uk_skinner could you take a look ?
Post by: GJCV on January 02, 2008, 10:22:48 PM
Quote from: mfigrs on January 02, 2008, 04:35:54 PM
I am fortunate enough to reside in the USA, where TP still works. But I'd really like to have this issue addressed. I am not a programmer, but in case any help is needed, I am willing to help.

Indeed, it would be nice to resolve this issue.

@ Uk_skinner:
If you don't have time to look into it (which I respect), would you perhaps be willing to release the code so that we could give it a shot?

Thanks. GJCV