Welcome to mirror list, hosted at ThFree Co, Russian Federation.

README.md - github.com/ClusterM/pebble-my-data.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 93a5e337c8c4a7a16d519172149a52878c21add5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
# Pebble My Data App

Pebble watches application to show only your own data, prepared on your own server.
Sources available on [github](https://github.com/bahbka/pebble-my-data).
Inspired by [Pebble Cards](http://keanulee.com/pebblecards).

[My Data at Pebble App Store](https://apps.getpebble.com/applications/53b0607c94943f8e710001e2)

[Discussion at Pebble forums](http://forums.getpebble.com/discussion/13590/watch-app-sdk2-pebble-my-data-shows-your-data-json-prepared-on-your-own-server)

## Features

* Fetch JSON from custom URL, specified in settings
* No companion app required, using PebbleKit JS
* Force update with select button
* Append select=1/select=2 GET param on short/long select button update
* Ability to change up/down buttons behavior from JSON (scrolling or up=1|2,down=1|2 params)
* Append coordinates to URL (configurable)
* Append HTTP request header Pebble-Token (unique to device/app pair), can be used for server-side device identification
* Scrollable data area
* Custom update interval, specified in JSON
* Vibrate on update if specified in JSON
* Change text font from JSON
* Black/white theme switched from JSON
* Turn on light from JSON
* Blink content from JSON
* Scroll-up content after update from JSON
* Vibrate on bluetooth connection loss (configurable)
* Watches battery charge status
* Digital clock (12h/24h support), seconds dots blinking (configurable)

## Changelog

### 2.1.2
- Ability to change up/down buttons behavior from JSON (scrolling or up=1|2,down=1|2 params)
- Added HTTP request header Pebble-Token (unique to device/app pair), can be used for server-side device identification
- **WARNING:** Changed short=1/long=1 params to select=1/select=2 (sorry for this)

### 2.0.3

- Append coordinates to URL (configurable)
- Digital clock font, AM/PM support
- Seconds dots blinking (configurable)
- Configurable vibration on bluetooth loss
- Turn on light (value in JSON)
- Blink content (value in JSON)
- Scroll-up content after update (value in JSON)
- Improved configuration page
- Some minor fixes

### 1.1.0

- Append short=1 or long=1 GET param to URL on short/long select button update (changed to select=1/select=2 in 2.1.2)

### 1.0.0

- Initial release

## Screenshots
![pebble screenshot 1](https://raw.githubusercontent.com/bahbka/pebble-my-data/master/stuff/screenshots/pebble-screenshot_2014-07-06_18-18-15.png)
![pebble screenshot 2](https://raw.githubusercontent.com/bahbka/pebble-my-data/master/stuff/screenshots/pebble-screenshot_2014-07-06_18-19-33.png)
![pebble screenshot 3](https://raw.githubusercontent.com/bahbka/pebble-my-data/master/stuff/screenshots/pebble-screenshot_2014-07-06_18-23-00.png)
![pebble screenshot 4](https://raw.githubusercontent.com/bahbka/pebble-my-data/master/stuff/screenshots/pebble-screenshot_2014-07-06_18-26-22.png)
![pebble screenshot 5](https://raw.githubusercontent.com/bahbka/pebble-my-data/master/stuff/screenshots/pebble-screenshot_2014-07-06_18-27-09.png)
[![android screenshot 1](https://raw.githubusercontent.com/bahbka/pebble-my-data/master/stuff/screenshots/Screenshot_2014-07-06-18-31-03_small.png)](https://raw.githubusercontent.com/bahbka/pebble-my-data/master/stuff/screenshots/Screenshot_2014-07-06-18-31-03.png)

## JSON

JSON output example (some fields are optional):

    {
      "content": "Hello\nWorld!",
      "refresh": 300,
      "vibrate": 0,
      "font": 4,
      "theme": 0,
      "scroll": 1,
      "light": 1,
      "blink": 3,
      "updown": 1
    }

GET param short=1 or long=1 added to URL on short or long select button update

### content
Your content to display. Use "\n" as CR.

### refresh
Next update delay in seconds.

### vibrate

- 0 - Don't vibrate
- 1 - Short vibrate
- 2 - Double vibrate
- 3 - Long vibrate

### font

- 1 - GOTHIC_14
- 2 - GOTHIC_14_BOLD
- 3 - GOTHIC_18
- 4 - GOTHIC_18_BOLD
- 5 - GOTHIC_24
- 6 - GOTHIC_24_BOLD
- 7 - GOTHIC_28
- 8 - GOTHIC_28_BOLD

### theme

- 0 - Black
- 1 - White

### scroll

- 0 - Keep position
- 1 - Scroll up

### light

- 0 - Do nothing
- 1 - Turn pebble light on for short time

### blink

- 1..10 - Blink content count (blinks with black/white for "count" times)

### updown
- 0 use up/down buttons for scrolling
- 1 use up/down buttons for update, appending up=1|2/down=1|2 params (1=short/2=long)

## Bugs

Sometime after install JS app fails to start, issue related Pebble App. Force stop Pebble App and start it again.