Weather Display on Iphone/Android?

Runar

[quote]But “regn” is wrong, in my opinion. "Nedb

Hi

I just had a look at this myself and got it installed and working but im getting undefined / undefined for
the current conditions, its Night/Snow fall at present

Hi,

That is a known issue in 0.6; will be solved in 0.7, hopefully out this w/e.

Sietse

Ah, ok thanks Sietse, the work is appreciated, i dont use an iPhone but im sure there will be a few of my visitors that do so it will be a good script to use, thank you!

Thanks for all your hard work on this Sietse.

I searched but couldnt find this. 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?

Tony

Hi Sietse

I made a translation in german (first steps). When i use ASCII signs like

[quote author=hermann20 link=topic=33281.msg356339#msg356339 date=1263134102]
Hi Sietse

I made a translation in german (first steps). When i use ASCII signs like

Great, it works fine. Thanks.

Hermann

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

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?

Tony

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

Sietse

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

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.

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

This piece of javascript works for me:


<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

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

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”

oh, shoot, I guess you need a key for google maps.
Does generating a key on Preguntas frecuentes sobre Google Maps Platform  |  Google for Developers 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

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