An open API service indexing awesome lists of open source software.

https://github.com/rozek/banglejs-2-calendar-week-complication

draws the current calendar week as a complication for an analog clock on a Bangle.js 2
https://github.com/rozek/banglejs-2-calendar-week-complication

banglejs

Last synced: about 1 year ago
JSON representation

draws the current calendar week as a complication for an analog clock on a Bangle.js 2

Awesome Lists containing this project

README

          

# banglejs-2-calendar-week-complication #

draws the current calendar week as a complication for an analog clock on a Bangle.js 2

This module displays the current calendar week as a complication for an analog clock on a [Bangle.js 2](https://www.espruino.com/Bangle.js2).



small calendar week complication

large calendar week complication

## Usage ##

Within a clock implementation, the module may be used as follows:

```javascript
let Clockwork = require(...);
Clockwork.windUp({
complications: {
t:require('https://raw.githubusercontent.com/rozek/banglejs-2-calendar-week-complication/main/Complication.js'),
}
...
});
```

It supports both small and large complication areas and adjusts its output automatically: in small areas only the actual calendar week number is shown, in large areas the number is prefixed with the text "Wk"

## 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: {
t:require('https://raw.githubusercontent.com/rozek/banglejs-2-calendar-week-complication/main/Complication.js'),
}
},{
Foreground:'#000000', Background:'#FFFFFF', Seconds:'#FF0000',
withDots:true
});
```

## License ##

[MIT License](LICENSE.md)