Compare commits

...

7 Commits

Author SHA1 Message Date
Matt Walsh
ccd4ffa48c 5.9.11 2023-08-14 21:32:08 -05:00
Matt Walsh
2c9e15bed0 fix full screen vertical and radar 2023-08-14 21:31:58 -05:00
Matt Walsh
2c31484e99 capture dist 2023-06-28 10:23:22 -05:00
Matt Walsh
0e457881c7 5.9.10 2023-06-28 10:21:30 -05:00
Matt Walsh
56d6a68e9a Merge pull request #27 from blackchip-org/time-refresh
Fix time flickering when frame is first displayed
2023-06-28 10:18:29 -05:00
Mike McGann
6b5ac04498 fix time flickering when frame is first displayed 2023-06-27 16:06:45 -04:00
Matt Walsh
465fa5a99b capture dist 2023-05-31 23:12:34 -05:00
12 changed files with 15 additions and 15 deletions

2
dist/index.html vendored

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

4
package-lock.json generated
View File

@@ -1,12 +1,12 @@
{
"name": "ws4kp",
"version": "5.9.9",
"version": "5.9.11",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "ws4kp",
"version": "5.9.9",
"version": "5.9.11",
"license": "MIT",
"devDependencies": {
"del": "^6.0.0",

View File

@@ -1,6 +1,6 @@
{
"name": "ws4kp",
"version": "5.9.9",
"version": "5.9.11",
"description": "Welcome to the WeatherStar 4000+ project page!",
"main": "index.js",
"scripts": {

View File

@@ -216,7 +216,7 @@ class Radar extends WeatherDisplay {
// get image offset calculation
// is slides slightly because of scaling so we have to take a measurement from the rendered page
const actualFrameHeight = this.elem.querySelector('.frame').getBoundingClientRect().height;
const actualFrameHeight = this.elem.querySelector('.frame').scrollHeight;
// scroll to image
this.elem.querySelector('.scroll-area').style.top = `${-this.screenIndex * actualFrameHeight}px`;

View File

@@ -151,6 +151,7 @@ class WeatherDisplay {
drawCanvas() {
// clean up the first-run flag in screen index
if (this.screenIndex < 0) this.screenIndex = 0;
if (this.okToDrawCurrentDateTime) this.drawCurrentDateTime();
}
finishDraw() {
@@ -159,14 +160,13 @@ class WeatherDisplay {
this.drawCurrentDateTime();
// auto clock refresh
if (!this.dateTimeInterval) {
setInterval(() => this.drawCurrentDateTime(), 100);
// only draw if canvas is active to conserve battery
setInterval(() => this.active && this.drawCurrentDateTime(), 100);
}
}
}
drawCurrentDateTime() {
// only draw if canvas is active to conserve battery
if (!this.active) return;
// Get the current date and time.
const now = DateTime.local().setZone(timeZone());

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -283,7 +283,7 @@ body {
position: relative;
width: 640px;
height: 480px;
overflow: hidden;
// overflow: hidden;
background-image: url(../images/BackGround1_1.png);
transform-origin: 0 0;

View File

@@ -115,7 +115,7 @@
<div id="radar-html" class="weather-display">
<%- include('partials/radar.ejs') %>
</div>
<div id="hazards-html" class="weather-display show">
<div id="hazards-html" class="weather-display">
<%- include('partials/hazards.ejs') %>
</div>
</div>