cloudy

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

0 Members and 1 Guest are viewing this topic.

Offline hermann20

  • Posts: 11
IWDL with ASCII 128 or UTF-8?
« Reply #105 on: January 10, 2010, 01:35:02 PM »
Hi Sietse

I made a translation in german (first steps). When i use ASCII signs like ä ö ü then there will shown in a strange way. I know, a great part around the world doesn't use them. Do you implement a solution in future?

Regards
Hermann

Offline vogon1

  • Posts: 177
  • Utrecht, NL
Re: IWDL with ASCII 128 or UTF-8?
« Reply #106 on: January 10, 2010, 02:21:44 PM »
Hi Sietse

I made a translation in german (first steps). When i use ASCII signs like ä ö ü then there will shown in a strange way. I know, a great part around the world doesn't use them. Do you implement a solution in future?

Regards
Hermann

Please have a look at http://www.ascii.cl/htmlcodes.htm and use the html codes. E.g. a-umlaut should be written as '& # 228 ;' (without the spaces).

Thanks in advance for your translation.
Sietse

Offline hermann20

  • Posts: 11
Re: Weather Display on Iphone?
« Reply #107 on: January 10, 2010, 02:47:40 PM »
Great, it works fine. Thanks.

Hermann

Offline vogon1

  • Posts: 177
  • Utrecht, NL
Re: Weather Display on Iphone?
« Reply #108 on: January 10, 2010, 03:51:01 PM »
There is a new version out: iWDL 0.7.

Please surf to http://sietse.net/iwdlinfo for more information.

Download: http://sietse.net/iwdl-latest.tar.gz
Demo english: http://sietse.net/iwdl-demo
Demo dutch: http://sietse.net/iwdl

If you have a translation, I will happily incorporate it in iWDL.

Changes:
- Units and language can be set in the app
- Gust fields adjusted
- Wind direction can now also be displayed as N, NE, etc.
- Norwegian an Swedish language added
- Show on a map where the weather station is

Making everything configurable in the app was quite some work, but it is done. Settings will be remembered by means of a HTML5 database on the device.
There are more texts now, so translators are kindly requested to check the language files, and change the new texts to their language.

Upgraders are adviced to save their current iwdl directory, and then unpack the new release. iwdl_settings.js will not be overwritten, there is now a file called iwdl_settings.js.sample. Please rename that to iwdl_settings.js and make necessary adjustments.

In the toolbar at the bottom are text-links; I'd love to use icons, but I am not good at creating new ones, or making existing icons suitable for my toolbar. If you know of any, please let me know.

Next release will be bug fixes (I guess there are some left, please let me know), and ajusted language files.
After that, I want to redo the Min/Max screen: split it in day/month/year/all time records.
Also, I would like to have a page with forecast. I can use the station forecast, but I would also like a more official forecast. If your location is known (it is in clientraw.txt), what would be the best way to get the forecast for that location? Possible options would be google weather, Yahoo weather or weather.com. Of course it should be a world wide service, preferably without keys / subscription needed.
Please let me know your ideas.

Thanks,
Sietse

Offline CNYWeather

  • Professional Trophymaker!
  • Posts: 1,440
  • Rome, New York
    • CNYWeather.com
Re: Weather Display on Iphone?
« Reply #109 on: January 10, 2010, 04:05:28 PM »
If I wanted to try and change the wind direction from Degrees to the Letter Direction,
where would I put this code from this post?

http://www.weather-watch.com/smf/index.php/topic,20097.0.html

Tony
Tony

CNYWeather.com
CWOP: CW2352
WeatherUnderground: KNYWESTM1


http://www.CNYWeather.com

I Make Trophies Too!
http://www.speedyawards.com

Offline vogon1

  • Posts: 177
  • Utrecht, NL
Re: Weather Display on Iphone?
« Reply #110 on: January 10, 2010, 04:14:28 PM »
If I wanted to try and change the wind direction from Degrees to the Letter Direction,
where would I put this code from this post?

It is in the newest release, choose 'abbr' for the wind direction units.
(I hope this is what you meant with your question).

Sietse

Online TNETWeather

  • Kevin Reed (KrelvinAZ)
  • Global Moderator
  • Posts: 5,868
  • Gremlins are at work...
  • Mesa, AZ
    • TNET Weather Station - Mesa AZ
Re: Weather Display on Iphone?
« Reply #111 on: January 10, 2010, 04:21:00 PM »
Topic should be moved or recreated to the Custom Templates and Scripts topic.

Then you can update the first posting with the current version info so that people can find it quickly without having to wade through a ton of postings and attempting to download older versions.
on

All you need is Time, Aptitude and Desire ... and you can build just about anything...

Offline BfdWx

  • Posts: 1,586
  • Branford Connecticut
    • Branford Weather
Re: Weather Display on Iphone?
« Reply #112 on: January 10, 2010, 04:26:07 PM »
Quote
If your location is known (it is in clientraw.txt), what would be the best way to get the forecast for that location? Possible options would be google weather, Yahoo weather or weather.com. Of course it should be a world wide service, preferably without keys / subscription needed.
Please let me know your ideas.

How about using advforecast2.php and/or plaintext-parser.php? See.....http://stillweather.com/advforecast2.php and http://stillweather.com/plaintext-parser.php many users already incorporate one or both of these scripts into their site.

Offline hermann20

  • Posts: 11
Map: unknown location
« Reply #113 on: January 10, 2010, 04:33:35 PM »
Hi Sietse

Great work from you!
In the settings i changed the coordinates to my home. Why i get the message unknown location?

settings["longitude"] = -7.663897;
settings["latitude"]  = 47.193051;

www.huerzeler.org/wetter/iwdl

Thanks
Hermann

Offline vogon1

  • Posts: 177
  • Utrecht, NL
Re: Weather Display on Iphone?
« Reply #114 on: January 10, 2010, 04:34:32 PM »
Wasnt there code you could put on your site that auto detected if the browser viewing your site was a mobile browser so it could redirect to your mobile version?

This piece of javascript works for me:
Code: [Select]
<script> if (navigator.userAgent.toLowerCase().indexOf('iphone') != -1) document.location.href='http://sietse.net/iwdl/';</script>

Of course, replace the href with your iphone site.

Sietse

Offline vogon1

  • Posts: 177
  • Utrecht, NL
Re: Weather Display on Iphone?
« Reply #115 on: January 10, 2010, 04:39:46 PM »
Topic should be moved or recreated to the Custom Templates and Scripts topic.

Sounds like a good plan, I will start a topic there.

Sietse

Offline CNYWeather

  • Professional Trophymaker!
  • Posts: 1,440
  • Rome, New York
    • CNYWeather.com
Re: Weather Display on Iphone?
« Reply #116 on: January 10, 2010, 04:43:00 PM »
It is in the newest release, choose 'abbr' for the wind direction units.
(I hope this is what you meant with your question).

Sietse

Sorry didnt see that post. Thats what I was looking for.

I tried a couple time to download the latest file. When I open it there is just
1 file in it with a file extension of "file"
Tony

CNYWeather.com
CWOP: CW2352
WeatherUnderground: KNYWESTM1


http://www.CNYWeather.com

I Make Trophies Too!
http://www.speedyawards.com

Offline vogon1

  • Posts: 177
  • Utrecht, NL
Re: Map: unknown location
« Reply #117 on: January 10, 2010, 04:45:35 PM »
Great work from you!
In the settings i changed the coordinates to my home. Why i get the message unknown location?

oh, shoot, I guess you need a key for google maps.
Does generating a key on http://code.google.com/apis/maps/signup.html help?
I thought that the google API version 3.0 didn't require a key anymore.

Sietse

Offline hermann20

  • Posts: 11
Re: Weather Display on Iphone?
« Reply #118 on: January 10, 2010, 05:03:31 PM »
oh, shoot, I guess you need a key for google maps.
Does generating a key on http://code.google.com/apis/maps/signup.html help?
I thought that the google API version 3.0 didn't require a key anymore.

Sietse

I got a key with examples in java script, html and more. Now i tried some steps, but i don't know really how to solve the problem. sorry. Do i need the java script or the html example?

Thanks
Hermann

Offline vogon1

  • Posts: 177
  • Utrecht, NL
Re: Weather Display on Iphone?
« Reply #119 on: January 10, 2010, 05:25:55 PM »
Now i tried some steps, but i don't know really how to solve the problem. sorry.

I think I found the problem.
Please download http://sietse.net/iwdl/all.min.js and put it in your iwdl directory. It should fix the problem.

Sietse
« Last Edit: January 10, 2010, 05:28:40 PM by vogon1 »

 

cumulus