Skip to content

rozek/banglejs-2-moon-phase-complication

main
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 

banglejs-2-moon-phase-complication

draws the current moon phase (for the northern hemisphere) as a complication for an analog clock on a Bangle.js 2

This module displays a small graphics symbolizing the current moon phase (for the northern hemisphere) as a complication for an analog clock on a Bangle.js 2. It is based on an idea of forum user HilmarSt (see this discussion)

Usage

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

let Clockwork = require(...);
Clockwork.windUp({
  complications: {
    r:require('https://raw.githubusercontent.com/rozek/banglejs-2-moon-phase-complication/main/Complication.js'),
  }
  ...
});

Example

The following code shows a complete example for a (still simple) analog clock using this complication:

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

License

MIT License

About

draws the current moon phase (for the northern hemisphere) as a complication for an analog clock on a Bangle.js 2

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published