Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Web and WebWorks Development

Posts: 669
Registered: ‎02-19-2011
My Device: BlackBerry PlayBook 32GB

Open Sourced The Last Weather App

The Last Weather App became the number #1 weather App on BlackBerry 10 in 3 days time. To celebrate this I decided to open source the app so others can learn from it. Consider it a gift to the BlackBerry community (which ROCKS).

The app uses BlackBerry WebWorks and has some interesting features:

  • BBM connectivity
  • Dynamic image generation through HTML5 Canvas
  • Saving files on the BlackBerry 10 filesystem
  • BlackBerry Invocation framework for social sharing
  • Geolocation
  • Usage of an external API

I hope this is useful for people learning to use BlackBerry WebWorks.

You can find the source here:


Some important remarks, also in the README that comes with it:

This app is based on a concept screenshot I saw online one day. It was attributed to Tobias van Schneider. I have contacted him by email to let him know about this app and subsequently agreed with him that I will keep the app free, credit him for the original concept and don't port the app to iOS because he will launch his version on that platform himself.

While I can't stop anyone from using this code to create an iOS app (free or paid) and/or paid apps on BlackBerry® 10 or other platforms I strongly suggest that you don't. Being nice really goes a long way. If anyone wants to make a FREE port for a platform other than iOS then I suppose that's acceptable. However please DO give credit where credit's due. Especially to Tobias van Schneider.

I've decided to make this code Open Source so other BlackBerry® WebWorks developers can take a look at it and maybe learn something for their own apps.

Staff UI Prototyper (read: full-time hacker)

My BB10 apps: Screamager | Scientific RPN Calculator | The Last Weather App

BlackBerry Development Advisor
Posts: 624
Registered: ‎10-01-2009
My Device: Z10

Re: Open Sourced The Last Weather App

Thanks for sharing Marco, this is definitely a must-see for those who are interested in learning how to make a well connected application.

Chad Tetreault | App Development Consultant | BlackBerry Developer Relations | developer.blackberry.com | @chadtatro
Posts: 817
Registered: ‎11-19-2009
My Device: Z10, Q10, 9900, 9790, PlayBook,

Re: Open Sourced The Last Weather App

Well done :smileyhappy:

Olivier - interfaSys ltd
Developing for BlackBerry 10 devices using the Sencha Touch framework.
Posts: 570
Registered: ‎10-17-2010
My Device: (BlackBerry Z10)-> Q10/Passport Dual Use

Re: Open Sourced The Last Weather App


BlackBerry Development Advisor
Posts: 203
Registered: ‎12-18-2012
My Device: Z10, Q10, Q5, Z30, Z3

Re: Open Sourced The Last Weather App

Hi Marco,


I'm loving this app! Thanks for posting :smileyhappy:

Bryan Higgins
BlackBerry WebWorks
New Contributor
Posts: 6
Registered: ‎03-31-2012
My Device: bb22

Re: Open Sourced The Last Weather App

[ Edited ]

terrific job!


could this be run in ripple simulator? when i run it in simulator, i'm stucked here:

         blackberry.ui.cover.setContent(blackberry.ui.cover.TYPE_IMAGE, {

the stacktrace as followed.


Uncaught TypeError: Cannot read property 'TYPE_IMAGE' of undefined tlwa.js:164

    1. $.getJSON.error.outtlwa.js:164
    2. st.Callbacks.fjquery.js:1
    3. st.Callbacks.p.fireWithjquery.js:1
    4. rjquery.js:3
    5. st.ajaxTransport.send.rjquery.js:3

I'm using mac,the exception do not happen under windows system.