Solar Clock - filled out README file
|
|
@ -298,7 +298,9 @@
|
||||||
{"name":"solar_location.js","url":"solar_location.js"},
|
{"name":"solar_location.js","url":"solar_location.js"},
|
||||||
{"name":"solar_math_utils.js","url":"solar_math_utils.js"},
|
{"name":"solar_math_utils.js","url":"solar_math_utils.js"},
|
||||||
{"name":"solar_loc.Reykjavik.json","url":"solar_loc.Reykjavik.json"},
|
{"name":"solar_loc.Reykjavik.json","url":"solar_loc.Reykjavik.json"},
|
||||||
|
{"name":"solar_loc.HongKong.json","url":"solar_loc.HongKong.json"},
|
||||||
{"name":"solar_loc.Honolulu.json","url":"solar_loc.Honolulu.json"},
|
{"name":"solar_loc.Honolulu.json","url":"solar_loc.Honolulu.json"},
|
||||||
|
{"name":"solar_loc.Rio.json","url":"solar_loc.Rio.json"},
|
||||||
{"name":"solar_loc.Tokyo.json","url":"solar_loc.Tokyo.json"}
|
{"name":"solar_loc.Tokyo.json","url":"solar_loc.Tokyo.json"}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
After Width: | Height: | Size: 15 KiB |
|
After Width: | Height: | Size: 94 KiB |
|
After Width: | Height: | Size: 24 KiB |
|
After Width: | Height: | Size: 24 KiB |
|
After Width: | Height: | Size: 22 KiB |
|
After Width: | Height: | Size: 25 KiB |
|
After Width: | Height: | Size: 31 KiB |
|
|
@ -2,26 +2,76 @@
|
||||||
|
|
||||||
## Introduction
|
## Introduction
|
||||||
|
|
||||||
Ever wondered when Sunset really is, what time will it hit? When the Sun will be highest in the sky? When you phone your friend in another country, you can easily find the time, but is it light where they are? The solar clock gives you a pictoral view of the day. It also gives you the opportunity to get the same view on another city in another timezone.
|
Using your current or chosen location the solar watch face shows the Sun's sky position, time and date. Also allows you to wind backwards and forwards in time to see the sun's position
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
|
||||||
|
## Choosing the locations from the upload page
|
||||||
|
|
||||||
|
Please use the webpage to choose the locations you wish to use:
|
||||||
|
|
||||||
### Uploading the clock
|
- GPS location will use watches GPS to find your location
|
||||||
|
- All other entries on the list are popular preset locations
|
||||||
|
|
||||||
|
### First use of the clock
|
||||||
|
|
||||||
|
After the initial upload the clock will look as follows, if you have chosen the GPS location. Please wait (and go outside) so that the GPS can fix your position
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
Once the GPS has located your position all the fields will fill out as shown in the next section
|
||||||
|
|
||||||
### Reading the clock through the day
|
### Reading the clock through the day
|
||||||
|
|
||||||
|
#### General Layout
|
||||||
|
|
||||||
|
The clock face's layout is as follows:
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
- Whilst using you current local GPS location the location name is left blank. Whilst using a named location this field will be filled in
|
||||||
|
|
||||||
|
#### Sun Views through the day
|
||||||
|
|
||||||
|
##### Night
|
||||||
|
|
||||||
|
During the night the sun will be show as a black circle
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
##### Dawn
|
||||||
|
|
||||||
|
Around dawn the black sun will turn into the dawn sun with a blue sky background
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
##### Midday
|
||||||
|
|
||||||
|
Around midday the corona will surround the sun
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
##### Sunset
|
||||||
|
|
||||||
|
At sunset the sun will go sunset red and the surrounding sky with a sunset sky
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
### Button 3
|
### Button 3
|
||||||
Change Location
|
|
||||||
|
Location Change: The clock will change to the appropriate timezone and GPS of the next location by pressing button 3. After all the locations have been selected the first item will be returned to.
|
||||||
|
|
||||||
### Button 4 and 5
|
### Button 4 and 5
|
||||||
Move Time backwards and forwards
|
Button 4 (left side of screen) will move the sun backwards in time and button 5 will move the sun forwards in time
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
### Button 1
|
### Button 1
|
||||||
Rest to now
|
Pressing Button 1 by itself will change the offset time back to now
|
||||||
|
|
||||||
## Further Details
|
## Further Details
|
||||||
For further details of design and working please visit [The Project Page]( https://adrianwkirk.notion.site/Solar-Clock-a2b6268075a6481686b86ecc2094dc14)
|
For further details of design and working please visit [The Project Page]( https://adrianwkirk.notion.site/Solar-Clock-a2b6268075a6481686b86ecc2094dc14)
|
||||||
|
|
|
||||||
|
|
@ -21,8 +21,10 @@
|
||||||
|
|
||||||
var locations=[
|
var locations=[
|
||||||
{name:"GPS Location", shortname:"local"},
|
{name:"GPS Location", shortname:"local"},
|
||||||
|
{name:"Hong Kong", shortname:"HongKong"},
|
||||||
{name:"Honolulu", shortname:"Honolulu"},
|
{name:"Honolulu", shortname:"Honolulu"},
|
||||||
{name: "Reykjavik", shortname:"Reykjavik"},
|
{name: "Reykjavik", shortname:"Reykjavik"},
|
||||||
|
{name: "Rio", shortname:"Rio"},
|
||||||
{name:"Tokyo", shortname:"Tokyo"},
|
{name:"Tokyo", shortname:"Tokyo"},
|
||||||
];
|
];
|
||||||
var selected_locations = ["local"];
|
var selected_locations = ["local"];
|
||||||
|
|
|
||||||
|
|
@ -113,12 +113,14 @@ function draw_sun(now, day_info) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function clear_sun(){
|
function clear_sun(){
|
||||||
g.setColor(screen_info.screen_bg_color[0],screen_info.screen_bg_color[1],screen_info.screen_bg_color[2]);
|
if(img_info.x != null && img_info.y != null) {
|
||||||
g.fillRect(img_info.x,img_info.y,img_info.x+img_width,img_info.y + img_width);
|
g.setColor(screen_info.screen_bg_color[0], screen_info.screen_bg_color[1], screen_info.screen_bg_color[2]);
|
||||||
|
g.fillRect(img_info.x, img_info.y, img_info.x + img_width, img_info.y + img_width);
|
||||||
GraphicUtils.draw_cosine(img_info.x - 4,
|
GraphicUtils.draw_cosine(img_info.x - 4,
|
||||||
img_info.x + img_width + 4,
|
img_info.x + img_width + 4,
|
||||||
COSINE_COLOUR,
|
COSINE_COLOUR,
|
||||||
screen_info);
|
screen_info);
|
||||||
|
}
|
||||||
GraphicUtils.draw_sunrise_line(HORIZON_COLOUR, day_info, screen_info);
|
GraphicUtils.draw_sunrise_line(HORIZON_COLOUR, day_info, screen_info);
|
||||||
screen_info.sun_x = null;
|
screen_info.sun_x = null;
|
||||||
screen_info.sun_y = null;
|
screen_info.sun_y = null;
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,4 @@
|
||||||
|
{
|
||||||
|
"coordinates": [114.16111345264378,22.287282159272756],
|
||||||
|
"utc_offset": 8
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,4 @@
|
||||||
|
{
|
||||||
|
"coordinates": [-43.21054084734106,-22.95169863661847],
|
||||||
|
"utc_offset": -3
|
||||||
|
}
|
||||||
|
|
@ -1 +1 @@
|
||||||
["local","Tokyo","Reykjavik","Honolulu"]
|
["local","HongKong","Tokyo","Reykjavik","Rio","Honolulu"]
|
||||||