cloudy

Author Topic: Weather Display on Iphone/Android?  (Read 21520 times)

0 Members and 1 Guest are viewing this topic.

Offline hermann20

  • Posts: 11
Re: Weather Display on Iphone?
« Reply #15 on: December 23, 2009, 03:38:08 PM »
Hello Sietse

Thanks a lot, i do that tomorrow. I like this Application. Maybe sometimes it is a native Objective-C.

It works now fine.

Regards
Hermann
« Last Edit: December 24, 2009, 02:43:47 PM by hermann20 »

Offline runarbg

  • Posts: 406
  • Drammen, Norway
    • Konnerud weather
Re: Weather Display on Iphone?
« Reply #16 on: December 28, 2009, 05:58:53 AM »
Sietse,

Thanks for a good program. I have it up and running here:

http://runarweb.com/iwdl

But I have one problem: Why are all the graphs delayed by 4 hours? It seems to me that you display f.ex. Temp Hour 1 - Temp Hour 20 from clientrawextra.txt. But you don't use Temp Hour 21 - Temp Hour 24 which contains the data for the latest 4 hours. Is that correct?

Is it possible for you to change this so that you also display the latest 4 hours in the charts?

Runar

Offline vogon1

  • Posts: 173
  • Utrecht, NL
Re: Weather Display on Iphone?
« Reply #17 on: December 28, 2009, 06:29:23 AM »

But I have one problem: Why are all the graphs delayed by 4 hours? It seems to me that you display f.ex. Temp Hour 1 - Temp Hour 20 from clientrawextra.txt. But you don't use Temp Hour 21 - Temp Hour 24 which contains the data for the latest 4 hours. Is that correct?

Is it possible for you to change this so that you also display the latest 4 hours in the charts?

Runar

That is correct, the clientraw file is a bit strange because the data is split in 20 + 4 hour sections. On development, I have a working version for 24 hours ( http://home.sietse.net/iwdl ).

Just a little patience, it will be solved shortly.

Sietse

Offline runarbg

  • Posts: 406
  • Drammen, Norway
    • Konnerud weather
Re: Weather Display on Iphone?
« Reply #18 on: December 28, 2009, 06:41:08 AM »
Just a little patience, it will be solved shortly.

Thanks, no problem waiting!

Offline vogon1

  • Posts: 173
  • Utrecht, NL
Re: Weather Display on Iphone?
« Reply #19 on: December 28, 2009, 07:42:48 PM »
Here is version 0.3, now with extra graphs and.... unit conversion!
If you already have installed iwdl, I suggest you remove it (or rename the directory), install this new version, and edit iwdl_settings.js.

Please let me know if there are bugs (quite possible).

Demo: http://sietse.net/iwdl
Download it here: http://sietse.net/iwdl-latest.tar.gz

Sietse
« Last Edit: January 10, 2010, 05:33:07 PM by vogon1 »

Offline Weather Display

  • Posts: 64,521
Re: Weather Display on Iphone?
« Reply #20 on: December 28, 2009, 08:46:54 PM »
good stuff, thanks for making this available for WD users :)

Offline BfdWx

  • Posts: 1,509
  • Branford Connecticut
    • Branford Weather
Re: Weather Display on Iphone?
« Reply #21 on: December 29, 2009, 01:33:58 AM »
Quote
Please let me know if there are bugs

Think I found one minor one.....

Code: [Select]
if (settings["baro"] == "hg") {
should be

Code: [Select]
if (settings["baro"] == "in") {

At least that fixed the baro issue with me! Very nice script, thanks for sharing!

Offline jwwd

  • Posts: 3,545
  • Silkeborg, Denmark (56:10:58 N-09:30:26 E) - Elevation 75,35 meters
    • Weather at Silkeborg, Denmark
Re: Weather Display on Iphone?
« Reply #22 on: December 29, 2009, 06:33:30 AM »
Hi Sietse

Thank you very much for a great script. Its very cool.

I have a suggestion for us Danish users:

In Ken Trues ajaxWDwx.js there are some translations from English to Danish in clientraw field 49 - current conditions - would it be able to put them in the iwdl.js too?

Here they are:

Code: [Select]
currentcond = clientraw[49];
currentcond = currentcond.replace(/_/g,' ');
currentcond = currentcond.replace(/^\/Dry\//g,'');
currentcond = currentcond.replace(/\\/g,', ');
currentcond = currentcond.replace(/\//g,', ');
// Extra Tag Cleanup
currentcond = currentcond.replace(/ø/g,'ø');
currentcond = currentcond.replace(/Ã¥/g,'å');
currentcond = currentcond.replace(/æ/g,'æ');
// METAR translation English to Danish begins
currentcond = currentcond.replace(/\b(Clear)\b/ig,' Klart');
currentcond = currentcond.replace(/\b(, clear)\b/ig,', Klart');
currentcond = currentcond.replace(/\b(Sunny)\b/ig,'Sol');
currentcond = currentcond.replace(/\b(Clear skies)\b/ig,'Skyfrit');
currentcond = currentcond.replace(/\b(mostly)\b/ig,'overvejende');
currentcond = currentcond.replace(/\b(cloudy)\b/ig,'skyet');
currentcond = currentcond.replace(/\b(Mostly sunny)\b/ig,'Mest sol');
currentcond = currentcond.replace(/\b(A few clouds)\b/ig,'Få skyer');
currentcond = currentcond.replace(/\b(Sc)\b/ig,'Delvist skyet');
currentcond = currentcond.replace(/\b(Scattered clouds)\b/ig,'Delvist skyet');
currentcond = currentcond.replace(/\b(Partly cloudy)\b/ig,'Delvist skyet');
currentcond = currentcond.replace(/\b(Mostly cloudy)\b/ig,'Mest skyet');
currentcond = currentcond.replace(/\b(Cloudy with clear p)\b/ig,'Mest skyet');
currentcond = currentcond.replace(/\b(Cloudy with clear patches)\b/ig,'Mest skyet');
currentcond = currentcond.replace(/\b(Overcast)\b/ig,'Overskyet');

One more thing:

I was trying to get it working on  a subdomain - but the wx-data did not show up.
Best regards,

Henrik

Offline vogon1

  • Posts: 173
  • Utrecht, NL
Re: Weather Display on Iphone?
« Reply #23 on: December 29, 2009, 07:13:55 AM »
Think I found one minor one.....

Code: [Select]
if (settings["baro"] == "hg") {
should be

Code: [Select]
if (settings["baro"] == "in") {

At least that fixed the baro issue with me! Very nice script, thanks for sharing!

Actually, the bug was in iwdl_settings.js - baro should have possible values hpa and hg; at least that is what I had in mind.

Thanks for reporting,
Sietse

Offline vogon1

  • Posts: 173
  • Utrecht, NL
Re: Weather Display on Iphone?
« Reply #24 on: December 29, 2009, 07:21:05 AM »
Hi Sietse

I have a suggestion for us Danish users:

In Ken Trues ajaxWDwx.js there are some translations from English to Danish in clientraw field 49 - current conditions - would it be able to put them in the iwdl.js too?


One more thing:

I was trying to get it working on  a subdomain - but the wx-data did not show up.
Best regards,

Henrik

Translations will go into the iwdl_lang_<language>.js files; not everything is in there yet, but you are welcome to provide a danish translation (you better wait a while until everything is in).

Getting the clientraw file from another (sub-)domain is not (yet?) supported, it is a security issue that I have to investigate.

Sietse

Offline jwwd

  • Posts: 3,545
  • Silkeborg, Denmark (56:10:58 N-09:30:26 E) - Elevation 75,35 meters
    • Weather at Silkeborg, Denmark
Re: Weather Display on Iphone?
« Reply #25 on: December 29, 2009, 07:40:15 AM »
Hi Sietse

Thanks for your reply.

I will be more than happy to send you my Danish translation. But I will wait till everything is in there.

I think you maybe misunderstood my translation of clientraw[49] - I dont think I can translate that in the <language> file - becuase its the clienraw words that has to be translated. For example - is the word "Dry" in my clientraw "Tørt" which I would like translated into "Tørt"

Best regards,

Henrik

Offline Timster

  • Posts: 37
  • Scarsdale, Vic., AU
    • Scarsdale Weather
Re: Weather Display on Iphone?
« Reply #26 on: December 29, 2009, 09:53:09 AM »
 :D

Very Happy... working well!
http://people.aapt.net.au/~timster/iwdl

Would it work on a local network, for iPod Touch with WiFi?


Cheers
Tim
http://people.aapt.net.au/~timster/Weather/LemajicsWDL.html

Offline vogon1

  • Posts: 173
  • Utrecht, NL
Re: Weather Display on Iphone?
« Reply #27 on: December 29, 2009, 09:56:48 AM »

Would it work on a local network, for iPod Touch with WiFi?

Sure, why not?

Sietse

Offline Timster

  • Posts: 37
  • Scarsdale, Vic., AU
    • Scarsdale Weather
Re: Weather Display on Iphone?
« Reply #28 on: December 30, 2009, 02:14:20 AM »
Re. the local network, I'll test it over the weekend.

Is it possible that the graphs be auto-sized when you turn the device to landscape mode, so that they fill the width of the screen?

Cheers
Tim

Offline jwwd

  • Posts: 3,545
  • Silkeborg, Denmark (56:10:58 N-09:30:26 E) - Elevation 75,35 meters
    • Weather at Silkeborg, Denmark
Re: Weather Display on Iphone?
« Reply #29 on: December 30, 2009, 06:37:05 AM »
Hi

I got it working here:

http://www.silkeborg-vejret.dk/iphone/

Unfortunately I dont have an iPhone - would anyone test for me?

I have testet in Crome, FF3 and IE8 - and its not working in IE8.

Thanks

Best regards,

Henrik