mirror of https://github.com/espruino/BangleApps
sixths: start importing suncalc.
parent
5c77834a6b
commit
68ae86361c
|
@ -182,6 +182,21 @@ let gps = {
|
|||
},
|
||||
};
|
||||
|
||||
/* sun version 0.0.1 */
|
||||
let sun = {
|
||||
SunCalc: null,
|
||||
init: function() {
|
||||
try {
|
||||
this.SunCalc = require("suncalc"); // from modules folder
|
||||
} catch (e) {
|
||||
print("Require error", e);
|
||||
}
|
||||
|
||||
print("Have suncalc: ", this.SunCalc);
|
||||
}
|
||||
};
|
||||
|
||||
sun.init();
|
||||
fmt.init();
|
||||
gps.init();
|
||||
|
||||
|
|
Loading…
Reference in New Issue