Git Product home page Git Product logo

futura-weather's Introduction

Futura Weather 2

Modification of "Roboto Weather" by Martin Rosinski. http://www.mypebblefaces.com/apps/3601/3408/

Download here:

Celsius [QR]

Celsius (no vibration alert) [QR] *

Celsius (no phone link monitor) [QR] **

Fahrenheit [QR]

Fahrenheit (no vibration alert) [QR] *

Fahrenheit (no phone link monitor) [QR] **

* Does not vibrate upon phone disconnections, and pings the phone less frequently.

** Does not monitor the link between watch and phone (i.e. does not ping the phone at all).

Features

  • Location-based weather information from Yahoo! Weather (updates every 15 minutes)
  • Phone disconnection alert
  • Stale weather information indicator
  • 12h/24h support

Installation Notes

For the weather notifications to work you need to have an httpebble app installed on your phone.

Android users

Download and install Pebble Connect from Google Play: https://play.google.com/store/apps/details?id=com.lukekorth.httpebble

iOS users

Download and install httpebble from App Store: https://itunes.apple.com/app/httpebble/id650174711?l=en&mt=8

Error Feedback

Stale Weather Information

The degree symbol will disappear if no successful weather request has been made during the previous 60 minutes, to indicate that the weather information is stale. Most often, this would also indicate that your Internet connection is offline.

The watch will try to reconnect during the subsequent 3 hours following the initial error, and thereafter become passive. At this point you will have to reload the watch face manually in order for it to send weather requests again.

Phone/httpebble App Disconnections

The watch regularly pings the phone to check whether it is still connected or not. Upon noticing that the phone is disconnected from the watch, the phone disconnection icon above will be displayed. 30 minutes after the disconnection, the temperature field will be blanked out. The same feedback will be displayed if the httpebble app is disconnected from the watch, or if loading the watch face while being disconnected from the phone or the httpebble app.

As when noticing HTTP errors, the watch will try to reconnect during the subsequent 3 hours following phone disconnections. Likewise, it will become passive thereafter and the watch face has to be manually reloaded in order to be able to check for connected phones again.

No Internet Connection

If loading the watch face while your phone's Internet connection is offline, the above icon will be displayed. The same icon will be displayed if recovering from a phone disconnection while having no Internet connection.

Loading Animation

Upon loading the watch face, the watch will instantly try to fetch updated weather. However, if experiencing delays of some sort, the watch will wait until the next consecutive minute to try again. To indicate that the watch face is still loading, a loading animation will appear 4 seconds after loading the watch face, if no successful weather request has been made until then.

Weather Condition Icons

All icons (except "Hot" and "Cold") courtesy of Onlyoly (http://drbl.in/hozN). Used with permission.

"Hot" and "Cold" icons courtesy of Dmitry Baranovskiy (http://thenounproject.com/DmitryBaranovskiy) and used under a Creative Commons Attribution license (CC BY 3.0).

Localization Notes

Follow these steps to translate the displayed weekdays into another language.

Nerd summary: Compile your own version of this GitHub project. Localization code is found in main.c, within the handle_tick() function. Uncomment and edit your own labels. Note that only ISO Basic Latin characters are supported.

  1. Log in to http://cloudpebble.net

  2. Click "Import Project"

  3. Click the tab "Import from GitHub"

  4. Enter the project name of your choice and paste the following URL in the "GitHub Project" field: https://github.com/Niknam/futura-weather

  5. Click "Import"

  6. When the import is done, you should see a menu on the left-hand side. Click on "main.c" under "Source Files".

  7. Scroll down until you see the text "LOCALIZATION CODE BEGIN". Remove this line. Also remove the line further down where you can see the text "LOCALIZATION CODE END". Once you have done this the localization code is activated and you can start editing it.

  8. Replace XXX for each weekday with the label of your choice. Make sure to leave the quotation marks and to make the label no more and no less than 3 characters long. Supported characters are A-Z, a-z and 0-9.

  9. If your labels consist of 2 characters and 1 space, e.g. "Mo ", make sure to uncomment this line of code (i.e. remove the 2 initial slash symbols), just below the code for your 'Sunday' label: memmove(&date_text[3], &date_text[4], sizeof(date_text) - 1);

  10. When you are done editing, click "Save" in the lower right corner

  11. Click "Compilation" in the left-hand side menu, and then "Run build"

  12. CloudPebble will thereafter generate a QR code. Either scan this with a code scanner on your mobile device, or click the "pbw" link to download the watch face file to your computer. Move this file to your Dropbox folder, or similar, to be able to access it from your mobile device and thereafter install it on your Pebble watch.

Version History

2.0.2 (November 27, 2013)

  • Fixes the issue of the temperature text not being displayed at temperatures of -10° and below
  • Size of weather icon and temperature text slightly decreased to make weather layer less crowded

2.0.1 (November 2, 2013)

  • Small fix to make temperature more readable at subzero temperatures (adds a space between minus sign and temperature value)

2.0 (October 8, 2013)

  • New weather icons, courtesy of Onlyoly (http://drbl.in/hozN)
  • New weather information provider: Yahoo! Weather (thanks to Luke Korth and orviwan for the great assistance!)
  • More accurate error handling and feedback: Now differentiates between HTTP errors and phone disconnections, and also indicates stale weather by removing degree symbol (see "Error Feedback")
  • Loading animation will be displayed if no weather information is displayed within 4 seconds of loading the watch face
  • Update interval changed back to 15 minutes
  • Added possibility to localize weekdays into another language (Manual compilation needed. See "Localization Notes" for further instructions.)

1.73 (August 14, 2013)

  • Update interval changed from 15 to 30 minutes to lower the monthly cost of weather requests
  • Fix to reduce the amount of simultaneous weather requests

1.72 (June 18, 2013)

  • 3-character temperature support (100° and above, and -10° and below)

1.71 (June 17, 2013)

  • New endpoint location, provided by Luke Korth

1.7 (June 1, 2013)

  • Initial '0' removed from day of month
  • Internet connection issues not considered as phone connection loss, i.e. no vibration alert (fix by ZoneMR)

futura-weather's People

Contributors

niknam avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.