Skip to content

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
lemnet committed Oct 13, 2020
1 parent e5db5e1 commit cd89043
Show file tree
Hide file tree
Showing 49 changed files with 2,406 additions and 0 deletions.
52 changes: 52 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
### WINDOWS

# Windows image file caches
Thumbs.db
ehthumbs.db

# Folder config file
Desktop.ini

# Recycle Bin used on file shares
$RECYCLE.BIN/

# Windows Installer files
*.cab
*.msi
*.msm
*.msp

# Windows shortcuts
*.lnk


### OSX

.DS_Store
.AppleDouble
.LSOverride

# Icon must end with two \r
Icon


# Thumbnails
._*

# Files that might appear in the root of a volume
.DocumentRevisions-V100
.fseventsd
.Spotlight-V100
.TemporaryItems
.Trashes
.VolumeIcon.icns

# Directories potentially created on remote AFP share
.AppleDB
.AppleDesktop
Network Trash Folder
Temporary Items
.apdisk

# OpenWeather api key
openweather_api.key
8 changes: 8 additions & 0 deletions README.MD
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
This watchface is an adaptation of Simple Weather for Pebble by Evandro Muller.
It uses OpenWeather as weather service and the icon are from the Oxygen project (https://techbase.kde.org/Projects/Oxygen) under LGPLv3 licence.
Weather is updated every half hour.
Tap to switch form steps to heart rate, calories and floors.

No configuration. It uses your system settings.

Feel free to contribute or open an issue on github : https://github.com/lemnet/SimpleWeather/
8 changes: 8 additions & 0 deletions README_FR.MD
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
Cette watchface est une adaptation de Simple Weather pour Pebble par Evandro Muller.
Elle utilise OpenWeather pour la météo and les icônes viennent du projet Oxygen (https://techbase.kde.org/Projects/Oxygen) sous licence LGPLv3.
La météo est mise à jour toutes les demies heures.
Taper to passer des pas au rythme cardiaque, aux calories, et aux étages.

Pas de configuration. Elle utilise vos paramètres systèmes.

N'hésitez pas à contribuer ou ouvrir un ticket sur github : https://github.com/lemnet/SimpleWeather/
32 changes: 32 additions & 0 deletions app/date.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
import { locale } from "user-settings";
import { gettext } from "i18n";

export function getDate(date) {
const monthNum = date.getMonth();
const monthName = gettext(`month_short_${monthNum}`);
const weekdayNum = date.getDay();
const dayName = gettext(`day_short_${weekdayNum}`);
const dayMonthSeparator = gettext("day_month_separator");

switch (locale.language) {
case "zh-cn":
// 2月7日周二 = Month_Date_Weekday
return `${monthName}${dayMonthSeparator}${date.getDate()}${dayName}`;
case "ja-jp":
// 8月3日(木)= Month_Date (Weekday)
return `${monthName}${dayMonthSeparator}${date.getDate()} (${dayName})`;
case "ko-kr":
// 2/7 (목) = Month/date (day)
return `${date.getMonth()+1}${dayMonthSeparator}${date.getDate()} (${dayName})`;
case "en-us":
case "en-ca":
case "es-pa":
case "es-pr":
case "en-se":
// Thu, Feb 7
return `${dayName}${dayMonthSeparator} ${monthName} ${date.getDate()}`;
default:
// Thu, 7 Feb
return `${dayName}${dayMonthSeparator} ${date.getDate()} ${monthName}`;
}
}
162 changes: 162 additions & 0 deletions app/i18n/de-DE.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,162 @@
msgid "Active Minutes"
msgstr "Aktive Minuten"

msgid "Activity"
msgstr "Aktivität"

msgid "calorie"
msgstr "KCAL"

msgid "Calorie count"
msgstr "Kalorienverbrauch"

msgid "Calories burned"
msgstr "Verbrannte Kalorien"

msgid "challenge"
msgstr "Wettkampf"

msgid "Clock + Display"
msgstr "Uhr + Display"

msgid "clock face"
msgstr "Uhranzeige"

msgid "daily goal"
msgstr "Tagesziel"

msgid "daily stats"
msgstr "Tagesstatistiken"

msgid "daily target"
msgstr "Tagesziel"

msgid "Distance"
msgstr "Strecke"

msgid "exercise mode"
msgstr "Aktivitätsmodus"

msgid "exercise tracking"
msgstr "Tracken deines Trainings"

msgid "Floors"
msgstr "Stockwerke"

msgid "Floors climbed"
msgstr "Etagen"

msgid "Get more steps!"
msgstr "Sammle mehr Schritte!"

msgid "Goal"
msgstr "Ziel"

msgid "Heart rate"
msgstr "Herzfrequenz"

msgid "Resting Heart Rate"
msgstr "Ruheherzfrequenz"

msgid "stats"
msgstr "Statistiken"

msgid "Steps"
msgstr "Schritte"

msgid "day_month_separator"
msgstr ""

msgid "month_short_0"
msgstr "Jan"

msgid "month_short_1"
msgstr "Feb"

msgid "month_short_2"
msgstr "Mrz"

msgid "month_short_3"
msgstr "Apr"

msgid "month_short_4"
msgstr "Mai"

msgid "month_short_5"
msgstr "Jun"

msgid "month_short_6"
msgstr "Jul"

msgid "month_short_7"
msgstr "Aug"

msgid "month_short_8"
msgstr "Sep"

msgid "month_short_9"
msgstr "Okt"

msgid "month_short_10"
msgstr "Nov"

msgid "month_short_11"
msgstr "Dez"

msgid "month_long_0"
msgstr "Januar"

msgid "month_long_1"
msgstr "Februar"

msgid "month_long_2"
msgstr "März"

msgid "month_long_3"
msgstr "April"

msgid "month_long_4"
msgstr "Mai"

msgid "month_long_5"
msgstr "Juni"

msgid "month_long_6"
msgstr "Juli"

msgid "month_long_7"
msgstr "August"

msgid "month_long_8"
msgstr "September"

msgid "month_long_9"
msgstr "Oktober"

msgid "month_long_10"
msgstr "November"

msgid "month_long_11"
msgstr "December"

msgid "day_short_0"
msgstr "So"

msgid "day_short_1"
msgstr "Mo"

msgid "day_short_2"
msgstr "Di"

msgid "day_short_3"
msgstr "Mi"

msgid "day_short_4"
msgstr "Do"

msgid "day_short_5"
msgstr "Fr"

msgid "day_short_6"
msgstr "Sa"

Loading

0 comments on commit cd89043

Please sign in to comment.