iPhone?

192 views
Skip to first unread message

Jeff

unread,
Nov 19, 2011, 9:24:22 AM11/19/11
to wview
Howdy all, I've been away for some time. New Google groups? Where
are the files?

Also, anyone done anything recently with some iPhone templates? I
searched and saw some good stuff from 2008, and a little updating in
2010, but nothing recent. But I cannot find the sample template
downloads from those older posts (hence my first quest of where are
the files)?

Later, Jeff

Mark F

unread,
Nov 19, 2011, 8:56:32 PM11/19/11
to wv...@googlegroups.com
I've got this one, which is a work in progress, and I posted on another thread:


Once I clean up the main site, I'm happy to post it.  I'll mention I'm no developer or designer - I just hack around until I get what I like.  So the code won't be elegant.

KT. Pedersen

unread,
Nov 20, 2011, 5:07:18 AM11/20/11
to wv...@googlegroups.com

I'm using something like this http://frozenpenguin.dyndns.org/weather/status.htm  ..

--
You received this message because you are subscribed to the Google Groups "wview" group.
To view this discussion on the web visit https://groups.google.com/d/msg/wview/-/Q0hBb1ZzZ0gJ.

To post to this group, send email to wv...@googlegroups.com.
To unsubscribe from this group, send email to wview+un...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/wview?hl=en.



--
Best Regards,

Kjell Thomas Pedersen



Jeff

unread,
Nov 21, 2011, 1:49:46 PM11/21/11
to wview
Mark - Where can I get a copy of your iphone.css? I'm new to web
for the iphone, so I'm not sure if there is a standard file or you
wrote one for your app.

Jeff

Jeff

unread,
Nov 22, 2011, 6:26:40 AM11/22/11
to wview
Nevermind, I just got it from your website. http://www.flocco.com/weather/iPhone.css

I'm down the road to making a close cousin to your site
http://www.jrgator.com/wview/iphone.htm

Jeff

Mark F

unread,
Nov 23, 2011, 9:47:27 PM11/23/11
to wv...@googlegroups.com
Great, Jeff.  Looking good (though I'm biased). 

Sorry it's such a mess, I wouldn't have posted it in that shape... but it looks like you got the idea.  I like some of your ideas and will probably edit mine with things like the timestamp.  Funny what things are important, depending on your location.  We get so little rain, it didn't deserve a front seat - but I'm sure in Florida you get plenty and it's a highlight of your view.  

I will seriously try to post an update after I get a few moments to work on it, and I promise I'll clean up the code when I do.  Until then, I'm glad someone could get a little use out of my nonsense.

-Mark

Mark F

unread,
Dec 3, 2011, 1:43:52 PM12/3/11
to wv...@googlegroups.com
Attached are the iPhone files.

You'll just need to put iphone.css in your wview img directory, and iPhone.htx in your html directory.  You'll also need to add iPhone.htx to your html-templates.conf file.

I added a few comments on how I worked things, to make it a little more clear.

The only thing you may have a problem with is at the bottom of the iPhone.htx file, I have the forecast linked to my own locally generated forecast: 

<a href="forecast.htm">

If you want to use the configured forecast, change that to <a href=<!--localForecastURL-->>

LMK if there are any questions.
iphone.css
iPhone.htx

Graham Eddy

unread,
Dec 4, 2011, 6:24:47 AM12/4/11
to wv...@googlegroups.com
thanks for that. i've adapted it to firefighter parameters on my station: see http://users.tpg.com.au/gjeddy/weather/mobile.htm

(the last two values, forest and grass fire danger indexes, i calculate in custom code inserted into wview)
___________
Graham Eddy

> --
> You received this message because you are subscribed to the Google Groups "wview" group.

> To view this discussion on the web visit https://groups.google.com/d/msg/wview/-/_Q_vNRnBBsMJ.


> To post to this group, send email to wv...@googlegroups.com.
> To unsubscribe from this group, send email to wview+un...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/wview?hl=en.

> <iphone.css><iPhone.htx>

Daniel Rich

unread,
Dec 24, 2011, 3:37:50 PM12/24/11
to wv...@googlegroups.com
I haven't been following the group all that closely lately (work is killing me), but I have an iPhone template that I have been working on on and off for ages: http://www.lapseofthought.com/Weather/iPhone.htm

It uses jqTouch and there are a few bugs that I just haven't had the time to work around. That is what has kept me from posting it. One of these days I'll have some time to get back to work on it again...

> --
> You received this message because you are subscribed to the Google Groups "wview" group.

> To post to this group, send email to wv...@googlegroups.com.
> To unsubscribe from this group, send email to wview+un...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/wview?hl=en.

Dan Rich <dr...@employees.org> | http://www.employees.org/~drich/
| "Step up to red alert!" "Are you sure, sir?
| It means changing the bulb in the sign..."
| - Red Dwarf (BBC)


Doug Otto

unread,
Dec 24, 2011, 4:58:04 PM12/24/11
to wview
There are some cool ideas here. I use the following code at the very
top of the index page to automatically route me to my mobile page if
I'm on my phone:

<script language=javascript>
if((navigator.userAgent.match(/iPhone/i)) ||
(navigator.userAgent.match(/iPod/i)))
{
location.replace("index_m.htm");
}
</script>


I just recently switched to wview from WeatherSnoop so their is very
little customized yet but it's a start. If you've even seen
WeatherSnoop's mobile page, mine is amazingly similar. :)

Doug Otto
weather.hopdog.com

bgrattan

unread,
Dec 31, 2011, 11:18:37 AM12/31/11
to wview
Hi Mark F.,

Thanks for posting your iphone templates. I have added them to my
wview station (VP2+ on ubuntu 11.04) and I have a question about the
display of iphone.htm. I don't have an iPhone to test so this may be
my problem...

Using my iPad, I get the display correctly except for the heading
where the station and location are listed (should say Ashland,
Virginia Weather). The display starts with "Now" and is correct from
that point down. Looking at the source of the generated iphone.htm,
it contains the code for "Ashland, Virginia Weather" but it isn't
showing on the screen. I get the same thing when I view your station
(http://weather.flocco.com/iphone.htm )--no station location at the
top. Is this something that is actuall ok on an iPhone but just not
showing on my iPad or computer monitor display? see:
http://www.grattans.org/wx/iPhone

Thanks for your help.

bg



On Nov 19, 8:56 pm, Mark F <mflo...@gmail.com> wrote:

Mark F

unread,
Jan 2, 2012, 8:40:02 AM1/2/12
to wv...@googlegroups.com
Hey bg.

I do not have a heading for the page built into this template.  In order to conserve room, I have made the page title the station location.  In other words, when I view your site on my phone, I see the top of the page being "Now" and the high and low on the right.  But if I scroll to the top of the page, I see that Safari shows the page title as "Ashland, Virginia Weather".  If you want to add a header in the page, you can do that but you'll need to mess with some of the heights and font sizes to make it all fit.

I have updated the skin a little and will upload it soon.  Mostly I didn't like how the times would skew the location of the highs and lows relative to the other elements on the page.  So to get everything more in center, I moved those off and rotated them.  I'm still working on fixing some weirdness when you go landscape on the page.


bgrattan

unread,
Jan 2, 2012, 10:10:39 AM1/2/12
to wview

Mark,

I see what you are doing now--the title comes up in the tab or
shortcut to save space. Good idea.

Please continue to post what you are doing as it is a great help to
some of us who aren't fluent in html code.

Thanks and much appreciated for the help.

Bob

rlmalisz

unread,
Jan 25, 2012, 9:08:08 PM1/25/12
to wview
I must be dumb as a post. I put the iphone.css in .../var/img, and it
immediately shows up in the output html directory. I put iPhone.htx
in the etc/wview/html directory, added it to html-templates.conf,
kickstarted wview (several times), and iPhone.htm never makes it in
there. I will have to try turning on verbose logging (not easy, since
this is all running on an SElinux-enabled platform, and it's a
screaming b*tch to get wviewmgmt to have write access to anything
through Apache.

--Richard
>  iphone.css
> 1KViewDownload
>
>  iPhone.htx
> 3KViewDownload

lloyda

unread,
Jan 26, 2012, 1:52:16 PM1/26/12
to wview
Check you are editing the correct html-templates.conf - I have two on
my installation,
one in etc/wview and one in etc/wview/html. I think it is the former
you need to edit.

Lloyd
> > 3KViewDownload- Hide quoted text -
>
> - Show quoted text -

Mark F

unread,
Apr 2, 2012, 8:51:18 PM4/2/12
to wv...@googlegroups.com
I have a new version of this which fixes some weirdness.  It also cleans up the timestamp, which was really bugging me.  There is a problem with mobile Safari where after pulling up the page, if you go forward (say to the forecast), then navigate back with the back button, the links will not match with what is painted on your screen.  That is, if you tap forecast again, you might get one of your charts instead.  I have confirmed this is not unique to my code, but welcome any feedback on how to fix it since it drives me nuts.

I'm attaching the files for this update.

Additionally, I have created a wunderground forecast page that matches this skin.  It's a Ruby script that needs to be run with cron, and it just dumps a forecast html file in the directory of your choice.  You can find the script on GitHub at: https://github.com/markf/wu-wv

To view my live samples, check out http://weather.flocco.com/iphone.htm.  Tap FORECAST to see the forecast.  

NOTE that this is not intended to be viewed with your desktop browser.  It'll look jacked up if you try.

Feedback is welcome.
iphone.css
iPhone.htx

Ron Gibson

unread,
May 7, 2012, 12:18:47 PM5/7/12
to wview
Hi Mark,
I love the work you have done on the iPhone templates but for the life
of me I cannot figure out what to change on the wu-wv.rb script. Can
you assist?
Thanks,
Ron

On Apr 2, 8:51 pm, Mark F <mflo...@gmail.com> wrote:
> I have a new version of this which fixes some weirdness.  It also cleans up
> the timestamp, which was really bugging me.  There is a problem with mobile
> Safari where after pulling up the page, if you go forward (say to the
> forecast), then navigate back with the back button, the links will not
> match with what is painted on your screen.  That is, if you tap forecast
> again, you might get one of your charts instead.  I have confirmed this is
> not unique to my code, but welcome any feedback on how to fix it since it
> drives me nuts.
>
> I'm attaching the files for this update.
>
> Additionally, I have created a wunderground forecast page that matches this
> skin.  It's a Ruby script that needs to be run with cron, and it just dumps
> a forecast html file in the directory of your choice.  You can find the
> script on GitHub at:https://github.com/markf/wu-wv
>
> To view my live samples, check outhttp://weather.flocco.com/iphone.htm.
>  Tap FORECAST to see the forecast.
>
> NOTE that this is not intended to be viewed with your desktop browser.
>  It'll look jacked up if you try.
>
> Feedback is welcome.
>
>
>
>
>
>
>
> On Saturday, November 19, 2011 7:56:32 PM UTC-6, Mark F wrote:
>
> > I've got this one, which is a work in progress, and I posted on another
> > thread:
>
> >http://weather.flocco.com/iphone.htm
>
> > Once I clean up the main site, I'm happy to post it.  I'll mention I'm no
> > developer or designer - I just hack around until I get what I like.  So the
> > code won't be elegant.
>
>
>
>  iphone.css
> 1KViewDownload
>
>  iPhone.htx
> 3KViewDownload

Mark F

unread,
May 7, 2012, 1:01:22 PM5/7/12
to wv...@googlegroups.com
Hi Ron.  

Sure.  The important things to change are the first few lines.  They are commented and are all variables starting with $. You'll want to change your $defaultlocation, I have 78701.  You have to put your wunderground API key in $wundergroundkey - I have left it blank.  You need to set the $weblocation to the outside URL for where your weather site is, and where it can reference the CSS, the iPhone.htm generated page, etc.  $filepath is the local upload location that corresponds to the public outside URL referenced previously.  $radarurl is self explanatory. 

The most important thing is to get a wunderground API key from their site. There is (slightly) more information in the README on GitHub.

Let me know what problems you're having and I'm happy to help.  The important section from the script below for your reference... 

# US Zip or other API location, e.g. 'Australia/Syndey' or '<latitude>, <longitude>', etc. See documentation.
$defaultlocation = '78701'
# Put your personal wunderground API key here
$wundergroundkey = ''
# Change this if desired
$tempunit = 'fahrenheit'
# Show probability of precipitation only if greater than or equal to this
$showpop = 10
# Public file location (css/icon images)
$weblocation = 'http://weather.mysite.com'
# Upload location for generated page
$filepath = '/usr/local/var/wview/img/forecast.htm'
# Radar image link


Ron Gibson

unread,
May 7, 2012, 1:33:23 PM5/7/12
to wv...@googlegroups.com
Hi Mark,
Sorry to have bothered you. Instead of clicking on the link for the script I right clicked and 'saved as'. :(
Unique and yet useless output resulted. ;)
Ron


On 5/7/2012 1:01 PM, Mark F wrote:
Hi Ron.  

Sure.  The important things to change are the first few lines.  They are commented and are all variables starting with $. You'll want to change your $defaultlocation, I have 78701.  You have to put your wunderground API key in $wundergroundkey - I have left it blank.  You need to set the $weblocation to the outside URL for where your weather site is, and where it can reference the CSS, the iPhone.htm generated page, etc.  $filepath is the local upload location that corresponds to the public outside URL referenced previously.  $radarurl is self explanatory. 

The most important thing is to get a wunderground API key from their site. There is (slightly) more information in the README on GitHub.

Let me know what problems you're having and I'm happy to help.  The important section from the script below for your reference... 

# US Zip or other API location, e.g. 'Australia/Syndey' or '<latitude>, <longitude>', etc. See documentation.
$defaultlocation = '78701'< /div>
--
You received this message because you are subscribed to the Google Groups "wview" group.
To view this discussion on the web visit https://groups.google.com/d/msg/wview/-/Lz_KJaDLsZMJ.

Ron Gibson

unread,
May 7, 2012, 3:21:54 PM5/7/12
to wview
It's up and running.
http://ve3cgr.dyndns.org/weather/iPhone
Thanks again Mark!
Ron

On May 7, 1:33 pm, Ron Gibson <ve3...@sympatico.ca> wrote:
> Hi Mark,
> Sorry to have bothered you. Instead of clicking on the link for the
> script I right clicked and 'saved as'. :(
> Unique and yet useless output resulted. ;)
> Ron
>
> On 5/7/2012 1:01 PM, Mark F wrote:
>
>
>
>
>
>
>
> > Hi Ron.
>
> > Sure.  The important things to change are the first few lines.  They
> > are commented and are all variables starting with $. You'll want to
> > change your $defaultlocation, I have 78701.  You have to put your
> > wunderground API key in $wundergroundkey - I have left it blank.  You
> > need to set the $weblocation to the outside URL for where your weather
> > site is, and where it can reference the CSS, the iPhone.htm generated
> > page, etc.  $filepath is the local upload location that corresponds to
> > the public outside URL referenced previously.  $radarurl is self
> > explanatory.
>
> > The most important thing is to get a wunderground API key from their
> > site. There is (slightly) more information in the README on GitHub.
>
> > Let me know what problems you're having and I'm happy to help.  The
> > important section from the script below for your reference...
>
> > # US Zip or other API location, e.g. 'Australia/Syndey' or
> > '<latitude>, <longitude>', etc. See documentation.
> > $defaultlocation = '78701'
> >     <http://weather.flocco.com/iphone.htm>.

Mark F

unread,
May 8, 2012, 2:02:19 PM5/8/12
to wv...@googlegroups.com
Looks good, though it doesn't appear to be updating.  You'll want to cron that script to run every so often.  I run it hourly. 



Reply all
Reply to author
Forward
0 new messages