cloudy cloudy

Author Topic: Weather Display Live for the iPhone and Android  (Read 146622 times)

0 Members and 1 Guest are viewing this topic.

Offline vogon1

  • Posts: 178
  • Utrecht, NL
Weather Display Live for the iPhone and Android
« on: January 10, 2010, 10:05:17 PM »
Hi,

I have created a web application for the iPhone and Android. The application has the look and feel of a native iPhone program and displays the contents of the clientraw files in text and in graphs.
The best experience is on an iPhone or iPod.
Android works equally well, but I am not sure whether the application can be run from the springboard.

Surf to http://sietse.net/iwdl-info for more information and screenshots.

Latest version is 1.3

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

If you have created a translation, I will happily incorporate it in iWDL; currently supported: cz dk de el en fi fr hu it nl no pt se sp

Installation:
  • download the latest file
  • unpack on your website, it will unpack in a directory called iwdl
  • in that directory, rename iwdl_settings.js.sample to iwdl_settings.js
  • edit iwdl_settings.js and at least change the setting for "clientraw_dir" - set it to the directory where the clientraw files reside.
    Please note, it is the directory you would have to type into your browser to view the clientraw.txt file. For example, assume the clientraw.txt can be found here:
    http://sietse.net/wdl2/clientraw.txt
    Then the directory part is /wdl2 and that should be put in the setting for "clientraw_dir".
    Also note that clientraw_dir cannot be empty; if you want it to be the current directory, than use e.g. ".".
  • Surf with your phone to your newly created iwdl directory, e.g. http://sietse.net/iwdl
  • The theme can be changed by editing index.html and change the theme setting to apple (lwhite+blue) or jqt (black).

To get a real iPhone application experience, create an icon for iWDL on your springboard (I don't know about Android).
This is how to do it:
  • Surf with Safari to your iwdl installation
  • Tap the + - sign in the bottom toolbar of Safari
  • Choose 2nd option (put on home screen)
  • Give it a name of your liking (or leave it at iWDL)

When done, there is an icon on your springboard; tapping it makes it feel like a native iPhone app.

On the to-do list:
- Use icons to show current weather conditions

If you like my software, feel free to donate; there is a link near the bottom of http://sietse.net/iwdl-info

Enjoy!
Sietse
« Last Edit: March 06, 2012, 06:56:54 AM by administrator »

Offline mayo9999

  • Jerry
  • Posts: 101
  • Lake Mary, FL
    • Lake Mary Weather
Re: Weather Display Live for the iPhone
« Reply #1 on: January 10, 2010, 10:43:50 PM »
Sietse,

Wind Direction is fixed (and fyi my Map now works); however when you pull up the Wind Direction graphs it still shows degrees and not "abbr" values.

Your support is awesome!!!!!!!

Suggestion for the future development:
As Julian has in WDL when temp is below 17 degrees C (approx 62.6 degrees F) "Heat Index" swaps with "Wind Chill" (and it's a setting that can be turn on and off "<autoSwapHeatWindchill>1</autoSwapHeatWindchill>").  As I live in Florida and we normally don't have a Wind Chill, other than these last few weeks.  It wold be great if you could just do an "if" using the current temp to display either "Wind Chill" or "Heat Index" field and value.
Jerry-
http://www.lakemaryweather.com
CWOP= DW3228
WU    = KFLLAKEM7

Davis 6153 Wireless VP2 / 6316 Wireless Weather Envoy
Windows Display*Windows Display Live*Weatherlink*VirtualIP*StartWatch

I also host my own CentOS (Linux) Apache WEB Server

Offline NBH

  • Posts: 325
  • Davis Vantage Pro2
  • Stenestad Sweden
    • Stenstad Weather
Re: Weather Display Live for the iPhone
« Reply #2 on: January 11, 2010, 01:48:51 PM »
Hi,
why is it a picture at startup (see attached picture)?
I changed the name of the file, which it says that you should do.
Clicking "OK" in the picture, then starts all right.
What am I doing wrong?
Here is my iwdl
http://www.stenestad-vader.com/iwdl/index.html

Greetings Bertil
« Last Edit: January 11, 2010, 01:59:40 PM by NBH »

Offline vogon1

  • Posts: 178
  • Utrecht, NL
Re: Weather Display Live for the iPhone
« Reply #3 on: January 11, 2010, 03:03:22 PM »
why is it a picture at startup (see attached picture)?
I changed the name of the file, which it says that you should do.

Your settings file says:

settings["clientraw_dir"] = "";

It is not meant to be an empty string; if you want the current directory, please try ./

Sietse

Offline NBH

  • Posts: 325
  • Davis Vantage Pro2
  • Stenestad Sweden
    • Stenstad Weather
Re: Weather Display Live for the iPhone
« Reply #4 on: January 11, 2010, 03:33:39 PM »
Thanks for your help,
tested with. / as you mentioned - did not work.
When I tried to .. / so it worked as it should.
(I have my clientraw file in the root directory, so where was the error).

Once again thanks for your help
Bertil

Offline macguai

  • Posts: 10
Re: Weather Display Live for the iPhone
« Reply #5 on: January 11, 2010, 04:05:05 PM »
Thanks vogon for your great job.

Could we use clientrawextra fields in iwdl?

Thanks!

Offline vogon1

  • Posts: 178
  • Utrecht, NL
Re: Weather Display Live for the iPhone
« Reply #6 on: January 11, 2010, 05:14:16 PM »
however when you pull up the Wind Direction graphs it still shows degrees and not "abbr" values.

As Julian has in WDL when temp is below 17 degrees C "Heat Index" swaps with "Wind Chill"

Both items are on the to-do list.
Also, I will work on forecasts (most likely using yr.no xml), and work on daily/monthly/yearly/alltime records (clientrawextra fields).

Sietse

Offline runarbg

  • Posts: 610
  • Drammen, Norway
    • Konnerud weather
Re: Weather Display Live for the iPhone
« Reply #7 on: January 11, 2010, 05:53:21 PM »
Sietse,

I posted a couple of questions in the old thread before yoy switched to this. I'm not sure if you noticed it before you switched, therefore I post it again. Hope that's OK?

- You have started using the station name as a header to the screens. Mine seems to be to long. What is the maximum length? You can check it at www.runarweb.com/iwdl
- In the Setup-screen you use  "abbr" for one of the choises. Would it be possible for you to put that in the language file for a future version?

Offline vogon1

  • Posts: 178
  • Utrecht, NL
Re: Weather Display Live for the iPhone
« Reply #8 on: January 11, 2010, 05:58:15 PM »
- You have started using the station name as a header to the screens. Mine seems to be to long. What is the maximum length? You can check it at www.runarweb.com/iwdl
- In the Setup-screen you use  "abbr" for one of the choises. Would it be possible for you to put that in the language file for a future version?

I will make an override in the settings file for the station name; otherwise, just try a shorter name till it fits :).
For abbr, i'd like a language-independent designation. Ideas are welcome.

Sietse

Offline jwwd

  • WML testers
  • Posts: 3,692
  • Silkeborg, Denmark (56:10:58 N-09:30:26 E) - Elevation 75,35 meters
    • Weather at Silkeborg, Denmark
Re: Weather Display Live for the iPhone
« Reply #9 on: January 12, 2010, 06:11:32 AM »
Hi Sietse

Got the newest version working - its sooo cool. Great work!

I have made some changes to the Danish language file - attached here (renamed to .txt)

Thanks.

Best regards,

Henrik

Offline runarbg

  • Posts: 610
  • Drammen, Norway
    • Konnerud weather
Re: Weather Display Live for the iPhone
« Reply #10 on: January 13, 2010, 07:12:01 AM »
I will make an override in the settings file for the station name; otherwise, just try a shorter name till it fits :).

A possibility to override will be fine. I know that I can shorten the name, but I would like to keep it as it is for use on regular Internet pages.

For abbr, i'd like a language-independent designation. Ideas are welcome.

I have no suggestion there, but if you don't find one, I hope that you will include it in the language file.

Offline The PIT

  • Posts: 436
  • Sheffield South Yorks UK
    • Sheffieldweather
Re: Weather Display Live for the iPhone
« Reply #11 on: January 13, 2010, 01:56:56 PM »
Great app that i downloaded today.
However got a problem with the map as it shows the wrong location.

www.sheffieldweather.co.uk/eso2/index2

I'm in sheffield not Nottingham any ideas ??

Location Sunny Sheffield South Yorkshire UK.
Weather cam and Web page at Sheffield Weather Page
PDA Web Page at PDA Link only

Offline vogon1

  • Posts: 178
  • Utrecht, NL
Re: Weather Display Live for the iPhone
« Reply #12 on: January 13, 2010, 02:17:42 PM »
www.sheffieldweather.co.uk/eso2/index2

I'm in sheffield not Nottingham any ideas ??

That is wat Google tells me...
I am planning on making an override in the settings file.

Sietse

Offline mayo9999

  • Jerry
  • Posts: 101
  • Lake Mary, FL
    • Lake Mary Weather
Re: Weather Display Live for the iPhone
« Reply #13 on: January 13, 2010, 11:15:58 PM »
Sietse,

I too like the idea of a "Weather Station Location" override in settings....  We live in Lake Mary, FL; however Google shows it to be Sanford, FL.
http://www.lakemaryweather.com/iwdl

How's it going with automatic swap for "Wind Chill" to "Heat Index" (cr_fieldnames[112] with cr_fieldnames[ 44]), and fixing the "abbr" values on Wind Direction Graphs?
Both items are on the to-do list.
It's starting to finally warm up here in Florida and I might not be able to test for you if it gets above 17 degrees C  :lol:

Have you given any thought to adding a Radar screen? 
     I would recommend it be based on WU (WeatherUnderground) and an option in settings?
Jerry-
http://www.lakemaryweather.com
CWOP= DW3228
WU    = KFLLAKEM7

Davis 6153 Wireless VP2 / 6316 Wireless Weather Envoy
Windows Display*Windows Display Live*Weatherlink*VirtualIP*StartWatch

I also host my own CentOS (Linux) Apache WEB Server

Offline tstorm

  • Posts: 378
  • Harpers Ferry, WV
    • Meadowbrook Farm Weather
Re: Weather Display Live for the iPhone
« Reply #14 on: January 14, 2010, 02:42:34 AM »
Really nice!  Thanks for sharing.  Would love to be able to have local and regional radar and NWS forecast.