cloudy

Author Topic: Dynamic updating WAP site with CSS  (Read 30640 times)

0 Members and 1 Guest are viewing this topic.

Offline daveq

  • Posts: 3,098
  • Hollywood, MD
    • Hollywood - St. Mary's County, Maryland
Re: Dynamic updating WAP site with CSS
« Reply #15 on: October 07, 2007, 09:03:19 PM »
My son just showed up and it really looks good on an iPhone.  (Good job, Jim.)  The graphics are just as clear as on it as on a web browser.  You do have to scroll on the lightning graphic but it is crystal clear.  The moon icon does show.

I have an Envoy and console so I'm not really sure what voltage is being read.  I'm using batteries only for the console but batteries and AC adapter for the Envoy.

--Dave

Offline Breitling

  • Luis
  • Posts: 1,162
  • NW Spain
    • Meteo Aerolugo
Re: Dynamic updating WAP site with CSS
« Reply #16 on: October 08, 2007, 06:09:51 AM »
Some time ago I made my own phone pages: http://aerolugo.com/estmeteo/wd/wx2.html They worked fine for a while, showing big pictures on the three last links even with two level zoom options (Nokia 6230i, 208x208 pix res.). But now all I see is images in a very very low resolution, absolutely useless. Can anyone out there check it please?

Jim, nice dynamic pages, I'll try to adapt your code to mine. Btw, your images appear very small on my phone, just as thumbnails.

Offline jmcmurry

  • Jim McMurry
  • Posts: 2,213
  • Mauston, WI, USA
    • Juneau County Weather
Re: Dynamic updating WAP site with CSS
« Reply #17 on: October 08, 2007, 09:53:12 AM »
after  looking again this morning I noticed a problem, both on the web browser page and on my cell phone WAP page.The problem is this...everything that shows a "°F" symbol after it..for example "Temp"...for some strange reason has 2 "F" 'S and looks like this  57.3 °F F

Chris,

There's a setting in WD to turn units on/off and I'm sure that's why you had the double entries.  I have mine off so that I have more control over what is displayed.

As for images, I have mine created at 200 wide because that's the limit of my phone.  I imagine there are more capable phones out there that can handle much larger ones.

I'm glad folks are having fun with this.  - Jim

 Home of NSLog NexStorm Lightning Data Manager

warwickpaweather

  • Guest
Re: Dynamic updating WAP site with CSS
« Reply #18 on: October 08, 2007, 10:16:08 AM »
Nice work...everything displayed perfectly on my Motorola V365 with ATT as the provider!

Offline jwwd

  • Posts: 3,545
  • Silkeborg, Denmark (56:10:58 N-09:30:26 E) - Elevation 75,35 meters
    • Weather at Silkeborg, Denmark
Re: Dynamic updating WAP site with CSS
« Reply #19 on: October 10, 2007, 03:38:41 PM »
Hi

I just had a play with your great script - but

im using the testtags.txt (testtags.php) solution from Ken (saratoga-weather)

would it be possible to modify the script to use testtags.php ?

Best regards,

Henrik

Offline jmcmurry

  • Jim McMurry
  • Posts: 2,213
  • Mauston, WI, USA
    • Juneau County Weather
Re: Dynamic updating WAP site with CSS
« Reply #20 on: October 10, 2007, 03:49:56 PM »
Henrik,

You should be able to do that, but you'll be limited to displaying the data that is contained in that file (or add to it).  You'd have to have wddata.php read in testtags.txt rather than wddata.txt then edit to get the right data in the right place in wapindex.php.  I chose to generate a separate file so the various routines that I use on my web site wouldn't collide when trying to access the data.

- Jim

 Home of NSLog NexStorm Lightning Data Manager

Offline jwwd

  • Posts: 3,545
  • Silkeborg, Denmark (56:10:58 N-09:30:26 E) - Elevation 75,35 meters
    • Weather at Silkeborg, Denmark
Re: Dynamic updating WAP site with CSS
« Reply #21 on: October 10, 2007, 07:45:35 PM »
Hi Jim

Thanks for your reply.

The best for me would add the missing tags to testtags.txt (testtags.php on my website)

So I have to make the changes in wapdata.php - right?

Best regards,

Henrik

Offline jmcmurry

  • Jim McMurry
  • Posts: 2,213
  • Mauston, WI, USA
    • Juneau County Weather
Re: Dynamic updating WAP site with CSS
« Reply #22 on: October 11, 2007, 09:51:05 AM »
Henrik,

Yes, wapdata.php would be changed to read in your testtags.txt.  Then in the other files you'll have to change each item to the correct tag number.

- Jim

 Home of NSLog NexStorm Lightning Data Manager

Offline jwwd

  • Posts: 3,545
  • Silkeborg, Denmark (56:10:58 N-09:30:26 E) - Elevation 75,35 meters
    • Weather at Silkeborg, Denmark
Re: Dynamic updating WAP site with CSS
« Reply #23 on: October 11, 2007, 12:15:21 PM »
Hi Jim

Thanks - I will have a look at it the coming week.

Best regards,

Henrik

Offline jmcmurry

  • Jim McMurry
  • Posts: 2,213
  • Mauston, WI, USA
    • Juneau County Weather
Re: Dynamic updating WAP site with CSS
« Reply #24 on: October 11, 2007, 07:49:55 PM »
A post by Krelvinaz in a discussion about WAP got me thinking.  Various pieces of code that I've picked up from him, ktrue, carterlake and anole made it possible to take a shot at it.  What I have are PHP scripts that create XHTML MP files to be viewed on mobile phones.  In addition to supporting css, you can view these file on your web browser without a plugin while debugging your code.  Mine can be seen at wap.jcweather.us and the code and support files can be downloaded at wap.jcweather.us/dynamicwap.zip.

I'd be interested in hearing how this works on various phones because I've really only seen it on mine.  Questions, comments and suggestions are more than welcome.

Enjoy.  - Jim

This has been updated to add a forecast page (thanks again Ken True) and some sparkline charts thanks to Pinto's post.  - Jim

 Home of NSLog NexStorm Lightning Data Manager

Offline niko

  • syzygy
  • Global Moderator
  • Posts: 21,998
  • Crystal Ball broken! Please post the URL.
  • Northern California, U.S.A.
    • http://www.realweatherstation.com
Re: Dynamic updating WAP site with CSS
« Reply #25 on: October 11, 2007, 07:58:18 PM »
I have an Envoy and console so I'm not really sure what voltage is being read.  I'm using batteries only for the console but batteries and AC adapter for the Envoy.

--Dave

It will be the voltage of the batteries in whatever is connected to the PC via weatherlink.

Offline daveq

  • Posts: 3,098
  • Hollywood, MD
    • Hollywood - St. Mary's County, Maryland
Re: Dynamic updating WAP site with CSS
« Reply #26 on: October 11, 2007, 08:28:06 PM »
Just wondering if it is reading the actual batteries or the output of the AC adapter.

--Dave

Offline niko

  • syzygy
  • Global Moderator
  • Posts: 21,998
  • Crystal Ball broken! Please post the URL.
  • Northern California, U.S.A.
    • http://www.realweatherstation.com
Re: Dynamic updating WAP site with CSS
« Reply #27 on: October 11, 2007, 08:35:12 PM »
I hoped I could use it to be sure that the AC adaptor is connected/working, but saw it doesn't change when the adaptor is connected/disconnected. I contacted Davis tech and have an email stating that it's always the actual battery voltage, unaffected by the ac supply.

Offline daveq

  • Posts: 3,098
  • Hollywood, MD
    • Hollywood - St. Mary's County, Maryland
Re: Dynamic updating WAP site with CSS
« Reply #28 on: October 11, 2007, 08:37:12 PM »
Thank you sir.  Good to know.

--Dave

Offline gateway2capecod

  • Posts: 1,764
  • West Wareham, Ma. USA
    • West Wareham, Ma. Weather
Re: Dynamic updating WAP site with CSS
« Reply #29 on: October 11, 2007, 08:52:26 PM »
Hello Niko and Dave...so does the 4.3 reading...mean his batteries are low?