News for hackers. Stuff that matters.
Re:HTML-based weather app by nickpresta on Sunday December 30, 2012 @06:20PM (#4987523)
✓ Claims to be an HTML5 app

✓ Requires iOS for no apparent reason

✓ You must install to homescreen first, even if you are on iOS

What does this do and why did you make the above decisions?

EDIT: To get around this, open up your JS console, put a breakpoint on line 509 inside sunny.js and set `window.navigator.standalone = true;`. Things should be fine from that point on if you have "emulate touch events" turned on.

Re:HTML-based weather app by simurai on Sunday December 30, 2012 @07:31PM (#4987725)
If you would use Phonegap and put it up on the App Store, nobody would complain having to "install" it.

I can't talk for the creator, but I guess this app is meant to be stand-alone, launched straight from the homescreen (without address bar) and not as a regular website that you have bookmarked.

Re:HTML-based weather app by windsurfer on Sunday December 30, 2012 @08:05PM (#4987805)
I've been using phonegap for a while... and that is honestly so easy to do it's not even funny.
Re:HTML-based weather app by nilliams on Sunday December 30, 2012 @07:05PM (#4987653)
I don't think the snarky checklist is necessary and am pretty saddened you've got upvotes for merely stating the obvious in such a derisive way.

We don't know the context in which the creator made this, and who is to say that just because something is written in HTML you have a God-given right to be able to run it in your desktop browser.

I hope more apps like this do appear and push e.g. Android to sort out their home screen/web app integration. We should be able to have the experience this app provides on iOS everywhere by now, here's hoping Android get this sorted soon.

Re:HTML-based weather app by nickpresta on Sunday December 30, 2012 @07:14PM (#4987678)
Which homescreen integration would that be? With the exception of having the chrome (URL bar) hidden by default, Android can add webpages to the homescreen and treat the tile like a native app, already.

It isn't so much that we should be able to run it in our browser, it is that the author is intentionally looking for iOS, with the site added to your homescreen. Had the title been "HTML5 Homescreen App for iOS" I think people's expectations would be different.

Re:HTML-based weather app by nilliams on Monday December 31, 2012 @06:40AM (#4989070)
>> With the exception of having the chrome (URL bar) hidden by default...

Yeah that's one pretty major problem that shatters any illusion of feeling native on Android.

The other problem is that the ability to add to homescreen is not particularly obvious to users and most probably aren't aware it can be done:

>> Create a bookmark via the menu, find it in the bookmark list, long-press on it, and tap "Add to home screen". [1]

[1] https://developers.google.com/chrome/mobile/docs/faq

Re:HTML-based weather app by IheartApplesDix on Sunday December 30, 2012 @08:27PM (#4987882)
Am I wrong if I was hoping this was an HTML4.2 app?
Re:HTML-based weather app by sachleen on Sunday December 30, 2012 @05:56PM (#4987454)
It's HTML 5 but requires iOS? Why. I spoofed the user agent in Chrome and it wants me to add it to my iOS home screen before I can try it out. Why not just show me the app when I go to the page? And if I want to add it to my home screen, I will.
Re:HTML-based weather app by pan69 on Sunday December 30, 2012 @05:53PM (#4987449)
For the love of God, if this is HTML then why is it only working on iOS devices? Is the iPhone/iPad the new Internet Explorer?
Re:HTML-based weather app by elliottkember on Sunday December 30, 2012 @06:20PM (#4987524)
If this is HTML, then why not take the source and make a cross-browser version? I guess I don't see the harm in just making an HTML iPhone app.

Personally, for instance, I wouldn't be happy if I shipped something as "cross-browser" that looked just awful in most browsers no matter what I tried.

Re:HTML-based weather app by zevyoura on Sunday December 30, 2012 @07:00PM (#4987632)
>If this is HTML, then why not take the source and make a cross-browser version?

Given that there's no apparent license agreement, this would presumably be copyright infringement.

Re:HTML-based weather app by elliottkember on Sunday December 30, 2012 @08:10PM (#4987821)
True. Well, it just seems ungrateful. It's an iPhone app, built with HTML5. They've built something really nice, for free, and yet people feel entitled to more.
Re:HTML-based weather app by suhailpatel on Sunday December 30, 2012 @06:45PM (#4987586)
Great design but not sure why this needs to be iOS only and why it needs to be installed to the homescreen.

I still don't think it's better than a native app because it took 30 seconds to actually show anything from a black screen and then a minute or so to load the data on stable fast WiFi (bet it'd be worse over 3G).

A native app has UI code and fancy animations on board and if this was an initial impression of something I wasn't really interested in observing, i'd uninstall it straight away. Granted it does load faster on subsequent launches (caching maybe?) but it's the initial launch which matters to me.

Re:HTML-based weather app by nilliams on Sunday December 30, 2012 @07:08PM (#4987664)
Is the initial launch not simply comparable to downloading a native app from the app-store?
Re:HTML-based weather app by nilliams on Sunday December 30, 2012 @05:59PM (#4987460)
Beautiful and the nav is impressively slick. Shame the desktop landing page (though pretty) doesn't show off just how nice the rest of the UI is when visited from iOS. (There are a few pics on the author's Dribbble for the curious [1]).

Would love to read a good illustrated blog post on the making of this. It'd be interesting to know what frameworks (if any) were used.

[1] http://dribbble.com/jalifax

Re:HTML-based weather app by hayksaakian on Sunday December 30, 2012 @07:21PM (#4987695)
Not sure what I'm supposed to be looking at. I don't suppose that a nice picture of an iPhone == weather app.

http://www.imgur.com/djVjc.png

Re:HTML-based weather app by pan69 on Sunday December 30, 2012 @07:37PM (#4987736)
What app you use to make screenshots with?
Re:HTML-based weather app by roryokane on Sunday December 30, 2012 @08:00PM (#4987800)
Since that’s Android 4, he’s probably using the built-in screenshot function. Just hold down the Volume Down and Power buttons at the same time. You can then access the screenshot from the resulting notification or in the Gallery. More info: http://www.howtogeek.com/121133/how-to-take-screenshots-on-a...
Re:HTML-based weather app by nickpresta on Sunday December 30, 2012 @07:53PM (#4987779)
Android since version 4.0 has the ability to natively take a screenshot.

Hold the Volume Down + Power button and you should see a little camera flash and a notification about your screenshot.

Re:HTML-based weather app by hayksaakian on Sunday December 30, 2012 @09:00PM (#4988001)
Native screenshotting plus imgur app for sharing to a URL quickly.
Re:HTML-based weather app by fideloper on Sunday December 30, 2012 @07:57PM (#4987790)
The design is beautiful!

This would make a great native app - Which I only say because HTML5 on iOS seems a bit choppy for such nice animations.

It's unfortunate to find such snark for something which I'll bet took a lot of effort to do. It makes sense for an HTML app to be friendly to all devices, and probably that is something to aim for.

Obviously has room for improvement, but I think we (myself included) can all do better at delivering feedback.

Re:HTML-based weather app by cnp on Sunday December 30, 2012 @10:55PM (#4988313)
Yeah totally. I think he did a fantastic job. All of the transitions and functionality and design is gorgeous. Agreed, it was a little confusing with the home screen issue in the beginning, but I totally get why he did it, and after a few seconds everything was working like it should.

Really great work.

Re:HTML-based weather app by coley on Sunday December 30, 2012 @05:47PM (#4987433)
This is a nice example of how html5 has come a long way. Thanks for sharing.

I did come across one bug, however. After changing the color scheme, Sun reloads, flashes "changing colors...", and then hangs on the loading indicator.

Re:HTML-based weather app by timesachangin on Sunday December 30, 2012 @06:03PM (#4987470)
Looks lovely. Really swish animation. Brilliant showcase of HTML5 based apps. Shame it locked my entire phone up!?
Re:HTML-based weather app by ekryski on Sunday December 30, 2012 @06:23PM (#4987531)
Totally agree on all accounts. My phone locked as well.
Re:HTML-based weather app by cheeaun on Sunday December 30, 2012 @07:31PM (#4987726)
Oh wow, it locked my iPhone (4S) too just now. Home and Sleep/Wake buttons stopped working and I have to force reboot the whole thing. The first time I add it to the homescreen, the page sort of borks. Second time I launch it, everything works but that's when the phone locks itself :(
Re:HTML-based weather app by arms on Sunday December 30, 2012 @07:11PM (#4987674)
Slick presentation, but simply takes too long to display data and seems buggy - caused my phone to freeze.
Re:HTML-based weather app by Nux on Sunday December 30, 2012 @06:51PM (#4987603)
"Sun is a web app designed for the iPhone and iPad." - why bother make it a "web" app then? Waste of time.
Re:HTML-based weather app by ewang1 on Sunday December 30, 2012 @07:05PM (#4987650)
perhaps b/c it's much faster to make it in html5 than in Obj-C?
Re:HTML-based weather app by taf2 on Sunday December 30, 2012 @06:38PM (#4987565)
installed it on my phone, but i just see a spinning wheel and a pink background... the 3d effect when flipping to the other locations looks nice, but perhaps the location api times out or there's a service call that's timing out because it looks to be frozen, for my location.
Re:HTML-based weather app by chacha102 on Sunday December 30, 2012 @08:56PM (#4987983)
Ever since the iPhone weather app, I get really annoyed when weather apps display the weather to be 'sunny' at night.

Its not sunny.

PS: Yes, its not a huge deal. If there was a 'feature' list, it wouldn't be listed. But trying to tell me San Diego will be 'sunny' at midnight is just wrong. </rant>

Re:HTML-based weather app by sktrdie on Sunday December 30, 2012 @09:17PM (#4988040)
Wonderful! I love these beautiful minimalist UX experiments. Especially when using open technology such as HTML5. Any info on how you built all the really nifty animations? Used any tool to get it just right?
Re:HTML-based weather app by flixic on Sunday December 30, 2012 @09:09PM (#4988023)
The most amazing feature of this, that I have seen NONE other app do, is the changing icon.

Install the app, and change the colors. Then, close the app. Its icon's colors have changed to reflect the color theme change.

Re:HTML-based weather app by simurai on Sunday December 30, 2012 @07:44PM (#4987761)
Don't forget to pinch out (kinda hard to discover), once you're on a location and you get a details view like this http://drbl.in/glDK
Re:HTML-based weather app by hnriot on Sunday December 30, 2012 @07:11PM (#4987672)
I installed it and all I see is a pink screen with my location and temp. Completely boring "app" google weather is far superior (in HTML and works on more than just my iPad)
Re:HTML-based weather app by dangrossman on Sunday December 30, 2012 @07:18PM (#4987690)
Pinch and swipe, as it says.
Re:HTML-based weather app by mserdarsanli on Sunday December 30, 2012 @09:00PM (#4988003)
There is not a single good comment about this, yet it is on front-page. WhyHN?
Re:HTML-based weather app by yock on Sunday December 30, 2012 @08:57PM (#4987988)
An honest question. Is there any technical reason this is limited to iOS?
Re:HTML-based weather app by jakozaur on Sunday December 30, 2012 @06:11PM (#4987495)
Great design, but a few things could be improved:

- no preview on desktop

- landscape mode is broken

- no client-side caching

Re:HTML-based weather app by quasimo on Sunday December 30, 2012 @07:08PM (#4987662)
I shared this long time ago: http://blog.linz.im/2012/webapp-sun.html
Re:HTML-based weather app by benguild on Sunday December 30, 2012 @06:19PM (#4987518)
This is great!
Re:HTML-based weather app by artursapek on Sunday December 30, 2012 @06:30PM (#4987548)
Shit, it's 3° in Redmond? I better stay inside.
Re:HTML-based weather app by ewang1 on Sunday December 30, 2012 @07:09PM (#4987667)
It defaults to Celsius, so you'll have to change it to Fahrenheit.