1
0
Fork 0

Merge pull request #3045 from jabituyaben/master

Astral clock update
master
Gordon Williams 2023-10-16 10:23:16 +01:00 committed by GitHub
commit 16a09d5928
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 9 deletions

View File

@ -3,3 +3,4 @@
0.03: Update to use Bangle.setUI instead of setWatch
0.04: Tell clock widgets to hide.
0.05: Added adjustment for Bangle.js magnetometer heading fix
0.06: optimized to update much faster

View File

@ -534,14 +534,7 @@ function mean_sidereal_time(lon) {
var mst = 280.46061837 + 360.98564736629 * jd
+ 0.000387933 * jt * jt - jt * jt * jt / 38710000 + lon;
if (mst > 0.0) {
while (mst > 360.0)
mst = mst - 360.0;
}
else {
while (mst < 0.0)
mst = mst + 360.0;
}
mst %=360;
return mst;
}

View File

@ -1,7 +1,7 @@
{
"id": "astral",
"name": "Astral Clock",
"version": "0.05",
"version": "0.06",
"description": "Clock that calculates and displays Alt Az positions of all planets, Sun as well as several other astronomy targets (customizable) and current Moon phase. Coordinates are calculated by GPS & time and onscreen compass assists orienting. See Readme before using.",
"icon": "app-icon.png",
"type": "clock",