https://github.com/rozek/banglejs-2-date-complication
draws the current date as a simple complication for an analog clock on a Bangle.js 2
https://github.com/rozek/banglejs-2-date-complication
banglejs
Last synced: about 1 year ago
JSON representation
draws the current date as a simple complication for an analog clock on a Bangle.js 2
- Host: GitHub
- URL: https://github.com/rozek/banglejs-2-date-complication
- Owner: rozek
- License: mit
- Created: 2022-01-09T10:52:09.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2022-03-01T05:55:00.000Z (over 4 years ago)
- Last Synced: 2025-01-29T20:30:24.189Z (over 1 year ago)
- Topics: banglejs
- Language: JavaScript
- Homepage:
- Size: 24.4 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# banglejs-2-date-complication #
draws the current date as a simple complication for an analog clock on a Bangle.js 2
This module displays the current date as a complication for an analog clock on a [Bangle.js 2](https://www.espruino.com/Bangle.js2).

small date complication

large date complication
## Usage ##
Within a clock implementation, the module may be used as follows:
```javascript
let Clockwork = require(...);
Clockwork.windUp({
complications: {
b:require('https://raw.githubusercontent.com/rozek/banglejs-2-date-complication/main/Complication.js'),
}
...
});
```
It supports both small and large complication areas and adjusts its output automatically: in large areas, both the current month and the current day of the month are shown, in small areas just the day.
## Example ##
The following code shows a complete example for a (still simple) analog clock using this complication:
```javascript
let Clockwork = require('https://raw.githubusercontent.com/rozek/banglejs-2-simple-clockwork/main/Clockwork.js');
Clockwork.windUp({
face: require('https://raw.githubusercontent.com/rozek/banglejs-2-twelve-numbered-clock-face/main/ClockFace.js'),
hands:require('https://raw.githubusercontent.com/rozek/banglejs-2-hollow-clock-hands/main/ClockHands.js'),
complications: {
b:require('https://raw.githubusercontent.com/rozek/banglejs-2-date-complication/main/Complication.js'),
}
},{
Foreground:'#000000', Background:'#FFFFFF', Seconds:'#FF0000',
withDots:true
});
```
## License ##
[MIT License](LICENSE.md)