Actually, I think weather display does it wrong, it uses the wrong sign in the clientraw.txt; in my code I negate the longtude to get the right value.
Sietse
Actually, I think weather display does it wrong, it uses the wrong sign in the clientraw.txt; in my code I negate the longtude to get the right value.
Sietse
The file iwdl.js is not loaded by default by iWDL
This is of course to trick you.
If you look in the head of index.html, you see:
<!--
<script src="lib/jquery.1.3.2.min.js" type="text/javascript" charset="utf-8"></script>
<script src="lib/jqtouch.js" type="application/x-javascript" charset="utf-8"></script>
<script src="lib/jqt.database.js" type="application/x-javascript" charset="utf-8"></script>
<script src="lib/jquery.flot.min.js" type="application/x-javascript" charset="utf-8"></script>
<script src="lib/jquery.timers.js" type="application/x-javascript" charset="utf-8"></script>
<script src="iwdl.js" type="application/x-javascript" charset="utf-8"></script>
-->
<script src="all.min.js" type="application/x-javascript" charset="utf-8"></script>
Only the all minimised version is loaded.
Change it to
<script src="lib/jquery.1.3.2.min.js" type="text/javascript" charset="utf-8"></script>
<script src="lib/jqtouch.js" type="application/x-javascript" charset="utf-8"></script>
<script src="lib/jqt.database.js" type="application/x-javascript" charset="utf-8"></script>
<script src="lib/jquery.flot.min.js" type="application/x-javascript" charset="utf-8"></script>
<script src="lib/jquery.timers.js" type="application/x-javascript" charset="utf-8"></script>
<script src="iwdl.js" type="application/x-javascript" charset="utf-8"></script>
<!--
<script src="all.min.js" type="application/x-javascript" charset="utf-8"></script>
-->
and the file is loaded, but that impacts performance.
If you have a patch that makes it work for both meteohub and weather display, I will include it in iWDL.
Sietse
PS - still working on iWDL, but personal life has taken over a bit recently.
Thank you for sharing! Great application with real iPhone look and feel.
I’ll contribute with Finnish translation when I have it ready.
BR - Timo
Thanks Sietse,
Yes, I have encountered this type of problem many times myself as I have written some astronomy type software that has to cope with the two different conventions used for east and west. I believe that the fault lies with meteohub as the definition for clientraw.txt is clearly laid down in NameBright - Domain Expired
The file iwdl.js is not loaded by default by iWDL This is of course to trick you.
Aha! - Many thanks, now my changes are taking effect!
However the patch you put in all.mins.js to allow the location to be manually set are now not there of course, so I need to look where I can alter that.
Once again thanks for the software and a donation is on its way.
Sietse, thanks I got it working now - as a work around I have removed the negation of the longitude in iwdl.js so that my meteohub data works. I also have altered the code for the Station Name / Time split and that is working too. I am sorry I have not tried to make it work with meteohub and WDL, but hopefully this meteohub bug may be fixed.
Incidentally my station for iPhone viewers is at http://www.gm4jjj.co.uk/weather/iwdl now.
Note:I seem to have slow updating of data, possibly because I am using evaluation version of meteohub.
Edit: I think I fixed my problem with poor FTP upload today.
Hi
Forecast settings for all german users with "
Hi
Finnish translation at you disposal.
I fiddled bit with iwdl.js and added fi as a language option, but apparently it is not enough to have Finnish (fi) to show in iPhone language selection menu. It seems that something else must also be done.
BR - Timo
iwdl_lang_fi.js.txt (7.35 KB)
Thanks for the translation.
In iwdl.js, search for dk; then add before the first line with dk the following:
if (settings["lang"] == "fi") selected = 'selected'; else selected = '';
str += "<option value='fi'" + selected + ">" + texts["set_lang"] + ": fi</option>";
I will change this part; it is ugly.
Sietse
There must be something I’m doing wrong/missing here. I added the code in iwdl.js and uploaded to server. But, fi is not shown in language options menu. I tried with iPod and Crome as well. Other languages are shown/working ok, but no Finnish (fi) on the list at all.
I can use Finnish if set it as a default language in iwdl_settings and don’t touch the settings in iPod at all.
In iPod I eve deleted both Safari cache and corresponding iwdl database. Same result still.
BR -Timo
PS. you can verify veikkola-weather.com which shall be redirected automatically to veikkola-weather.com/iwdl if you are using iPhone/iTouch. i.veikkola-weather.com works as well
Hi!
I’ve done my Italian translation for this application…
The file is in attachment.
Best regards,
Alessandro
iwdl_lang_it.zip (2.16 KB)
Thanks for all translations; T-man, a new release will be hopefully tomorrow, just wait for that one.
The next release will have lots of small changes, no records yet (monthly, yearly, alltime), that will be the 1.0 release.
For the 0.9 I would like translations for the following:
texts[“Monday”] = “Monday”;
texts[“Tuesday”] = “Tuesday”;
texts[“Wednesday”] = “Wednesday”;
texts[“Thursday”] = “Thursday”;
texts[“Friday”] = “Friday”;
texts[“Saturday”] = “Saturday”;
texts[“Sunday”] = “Sunday”;
Please mail translations to me (sietse -at- sietse -dot- nl), no need to flood the newsgroup with this.
The new release will contain the following languages:
cz, dk, en, fi, it, nl, no, se, sp
Other languages are welcome!
Sietse
Hi,
Version 0.9 is available. Changes:
Check out the demo at http://sietse.net/iwdl-demo
Download: http://sietse.net/iwdl-latest.tar.gz
Additions to settings:
settings["all_langs"] = [ "cz", "dk", "en", "fi", "it", "nl", "no", "se", "sp" ];
// Station type; if this setting is not defined, Weather Display is assumed.
// Meteohub has another stationname/time separator, and negates longitude
// Possible setting: meteohub
// settings["station_type"] = "meteohub";
// When using yr.no, decide weather to show date and/or day of the week.
// Possible settings: date day date-day day-date
settings["date_day"] = "weekday";
// If you want to toggle humidex (temp > 17C) and windchill (temp < 17C), then uncomment following option.
// In the live screen setting (see above), use either field 44 or 45, it will toggle
// settings["humchill"] = "toggle";
// If you don't like the yellow background color, set your own color here:
settings["bgcolor"] = "#e0e0a0";
For upgraders, it may be wise to restart with the iwdl_settings.js.sample to be sure not to miss a setting.
One major item on the todo list for 1.0: daily, monthly, yearly, alltime records.
Bugs? Let me know!
Enjoy!
Sietse
Thanks for sharing, amazing app!
J
Hi Sietse,
i’ve seen that you’re just translated italian language in your new release.
BRAVO!
Let me know if you need other translations.
Best regards,
Alessandro
Sietse,
It’s looking great. I just wonder if you should use these 2 instead of the 2 that I sent you for the Norwegian translation. It seems to be working like you have it but it’s safer like this?
texts[“Saturday”] = “Lørdag”;
texts[“Sunday”] = “Søndag”;
Then I have one small wish for next version: Can you make the weather report from yr.no for all the days that yr.no have in their XML-file (9-10)?
Have you thought any more about the opening picture?
Hi
Ver 0.9 - downloaded, made the settings similar to 0.8 - uploaded to web. But, all I got is error message No iwdl_settings.js, please rename…
What could be causing the problem?
-Timo
The file is in UTF8, that is why it works; however I made your suggested changes.
I left out the parts after 4 days, because often there are ‘gaps’ in time after four days.
I spent a quite some time on the opening screen; I just can’t get it right. Still trying.
Sietse
Rename iwdl_settings.js.sample to iwdl_settings.js?
Does settings[“clientraw_dir”] have a value? It should not be an empty string.
Sietse
yr.no breaks down the weather report in 4 parts for each day for the next 4 days, after that they show just 1 line for each day. If possible, it would be nice to have those also.
I also wonder why you don’t show all of the next 4 days? Right not (Tuesday 7:55am) you show only 01-07 and 07-13 for Saturay. In the yr.no file you also find 13-19 and 19-01 for Saturday. Is that a bug?