Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

SDL MobileWeather Example App

This example app uses the DarkSky API to present a basic connected weather app with SDL UI.

Configuration

Install Dependencies

Use Cocoapods to install the dependencies:

  1. Install Cocoapods if necessary.
  2. Navigate to the root directory in terminal.
  3. Run pod install.

DarkSky

  1. Sign up and get your own DarkSky API key.
  2. Set the API key into Settings.h to use.

SDL

You will need to customize the configuration of the app depending on whether you are connecting it to a module over IAP (USB or Bluetooth) or TCP (Manticore or an emulator).

To check what type of connection is currently set up, go to SmartDeviceLinkService.m and go to the -(void)start method. There you will see a call to SDLLifecycleConfiguration defaultConfigurationWithAppName and one to SDLLifecycleConfiguration debugConfigurationWithAppName where one is active and the other is commented out. For more information on these calls, see the network connection type guide. Depending on if you are connecting over IAP or TCP you may need to configure and alter these calls.

Connecting

Once you've configured the app with your own DarkSky API key and based on the device you are connecting to, you only have to run the app on your device (IAP or TCP) or a Simulator (TCP-only) and connect!

You can’t perform that action at this time.