Weather Extension v5

Over the past 5 years, Weather Extension has gone through many changes. The first version was pretty basic. It showed the hourly and daily forecast. Over time I’ve added the ability to add multiple locations, weather alerts, translated the extension to 32 languages, support for multiple different metrics, interactive radar, inspirational quotes, and more!

Version 5 brings a bold new design to Weather Extension.  The first thing you will notice is the background image that will change depending on the weather conditions. I also made sure to keep all the same weather data points so many users have come to appreciate and use on a daily basis. So far the reviews have been wonderful. What do you think Weather Extension will look like in the next 5 years?

2020 Weather Extension v5

Read More

Apple Buys DarkSky

All good things must come to an end and this appears to be the case for Dark Sky. On March 31, 2020, Dark Sky announced on their blog that they have a new home at Apple.

iOS App

There will be no changes to Dark Sky for iOS at this time. It will continue to be available for purchase in the App Store.

Android and Wear OS App

The app will no longer be available for download. Service to existing users and subscribers will continue until July 1, 2020, at which point the app will be shut down. Subscribers who are still active at that time will receive a refund.

Website

Weather forecasts, maps, and embeds will continue until July 1, 2020. The website will remain active beyond that time in support of API and iOS App customers.

API

Our API service for existing customers is not changing today, but we will no longer accept new signups. The API will continue to function through the end of 2021.

Read More

Compress and Upload Images using NativeScript

Over the past couple of weeks, I have been working on a new iOS and Android app using NativeScript. One of the requirements is to compress and upload images. I figured this would be pretty straightforward but couldn’t find any examples of how to accomplish image compression. After some trial and error, I came up with a simple solution that has worked well. Hopefully, this example will save you some time!

The key piece of code is imageSource.saveToFile which takes a third argument that is compressionValue. This allows you to compress the image to a value from 1-100. Check out the playground example below and feel free to ask any questions in the comments below.

var saved = imageSource.saveToFile(path, "jpg", compressionValue);

Demo

Playground Example

GitHub Repo