Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

evapotranspiration graph #73

Open
wants to merge 68 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
68 commits
Select commit Hold shift + click to select a range
ca1364b
Bump node-sass from 5.0.0 to 7.0.0 in /src
dependabot[bot] Feb 11, 2022
dcb7085
Bump hosted-git-info from 2.8.8 to 2.8.9 in /src
dependabot[bot] May 11, 2021
f9961e1
Bump path-parse from 1.0.6 to 1.0.7 in /src
dependabot[bot] Aug 13, 2021
fffeb2e
Bump tar from 6.1.0 to 6.1.11 in /src
dependabot[bot] Aug 31, 2021
168120f
Add history report from ngulden/niculskin
dependabot[bot] Mar 29, 2022
b7e3527
Added max-wind and avg-wind tables
seehase Jun 19, 2022
7274763
Change styles and colors
seehase Jun 23, 2022
7373ced
Fixed responsive layout problem in bigger screens (at least it does n…
seehase Jul 30, 2022
fe81da9
Merge pull request #1 from seehase/feature/history-report
seehase Jul 30, 2022
bdf74c4
Change min/max range to float
seehase Aug 21, 2022
bda3e57
Adds winDir scatter plot as per issue #57
Oct 21, 2022
7d0f232
Merge pull request #2 from seehase/feature/history-report
seehase Oct 23, 2022
5628924
Merge pull request #3 from W0CHP/master
seehase Oct 23, 2022
f34f152
Further refinement of Wind Direction Scatter Plot: set min/max range …
Nov 4, 2022
08ff959
Further refinement of Wind Direction Scatter Plot: set min/max range …
Nov 4, 2022
ecd48a3
Further refinement of Wind Direction Scatter Plot: set min/max range …
Nov 4, 2022
ec2a66f
Bug fix. Thanks @Pogs2004 !
Nov 4, 2022
7edf88e
Fix tickAmount for WindDir plots
Nov 5, 2022
1ae7013
Updated historygenerator.py to the newest version and fixed wrong max…
seehase Nov 5, 2022
c650f36
Merge branch 'feature/history-report'
seehase Nov 5, 2022
5f437eb
Merge pull request #4 from seehase/windir
seehase Nov 5, 2022
f5420ae
Merge branch 'feature/history-report'
seehase Nov 5, 2022
2d94a2e
Merge pull request #5 from W0CHP/master
seehase Nov 5, 2022
9a8bbac
Merge branch 'feature/history-report'
seehase Nov 5, 2022
9ef0d27
Add missing include for line charts in yesterday, week, month and year
seehase Nov 6, 2022
52aace8
Merge branch 'feature/history-report'
seehase Nov 6, 2022
98e88db
Fix typo in color code #05EF3D2 must be #5EF3D2
seehase Nov 6, 2022
702a182
changed docu as well
seehase Nov 6, 2022
4e339ec
Merge branch 'feature/history-report'
seehase Nov 6, 2022
1acd8af
Added icons
seehase Nov 6, 2022
5ccdf01
typo
seehase Nov 6, 2022
fc0b7f9
Added all time records
seehase Nov 6, 2022
b82d22a
Merge branch 'feature/history-report'
seehase Nov 6, 2022
1f229bb
History(stats) improvements
seehase Nov 7, 2022
0259f83
Merge branch 'feature/history-report'
seehase Nov 7, 2022
78bdc97
Add logic to yearly history report, to exlude month "cards" which con…
Nov 8, 2022
5b8a6a5
Merge pull request #6 from W0CHP/master
seehase Nov 9, 2022
b6028d3
Make history all time values more reliable
seehase Nov 12, 2022
b5edd37
Continue working to enhance the neowx skin
seehase Nov 12, 2022
0eca4df
Merge pull request #7 from seehase/feature/enhance_history
seehase Nov 12, 2022
d91dcac
Fixes an issue with dark modes, where observation "hi/Lo" color value…
Nov 12, 2022
c317448
Merge branch 'seehase:master' into master
W0CHP Nov 12, 2022
df364da
Merge pull request #9 from W0CHP/master
W0CHP Nov 16, 2022
6af179d
Fixed issue #11 wrong date in header
seehausen Nov 29, 2022
8be9d40
change comparator to == as standard
seehausen Nov 30, 2022
6bfb365
Merge pull request #13 from seehase/issue/wrong_date_in_header
seehase Nov 30, 2022
5693b76
Missing catalan translation of saturn, jupiter and telemetry causing …
edugovi Nov 30, 2022
8a0b75f
Change catalan translations
edugovi Nov 30, 2022
6c00f82
Merge pull request #14 from edugovi/hotfix-catalan-translation
seehase Nov 30, 2022
e2d13e2
:sparkles: Add Google Analytics
edugovi Dec 1, 2022
eeaedb3
Merge pull request #15 from edugovi/google-analytics
seehase Dec 2, 2022
a45c1c5
Show almanac also in archive pages if enabled
seehausen Dec 4, 2022
33ec7a1
Update skin.conf
c0by85 Dec 28, 2022
e3f0916
Merge pull request #18 from c0by85/patch-1
W0CHP Dec 28, 2022
307a0b4
Fix station uptime formats. Fixes #21.
Mar 31, 2023
3671357
Merge pull request #22 from W0CHP/master
W0CHP Mar 31, 2023
bda692b
For my custom WindDir charts, use ordinal direction names for labels …
May 14, 2023
9bfa6f3
Merge pull request #23 from W0CHP/master
seehase May 15, 2023
1622c79
Added the 'luminosity' key to the graphs
dmth May 9, 2024
193310b
Merge pull request #26 from dmth/dev-luminositygraph
seehase May 11, 2024
b5364e0
Added Swedish language (se) from https://github.com/naitkris/neowx-ma…
seehausen Jul 22, 2024
425dac7
Merge pull request #30 from seehase/naitkris-patch-1
seehase Jul 22, 2024
7ec252f
Added missing Swedish language (se) translations
seehausen Jul 22, 2024
5574831
Merge pull request #31 from seehase/feature/add_missing_SE_translations
seehausen Jul 22, 2024
7b1b024
integrated https://github.com/neoground/neowx-material/pull/90
seehausen Jul 23, 2024
807cae1
Merge pull request #32 from seehase/feature/add_se_conf
seehausen Jul 23, 2024
79ffb50
Added missing translations
seehausen Jul 23, 2024
c61273f
Merge pull request #33 from seehase/feature/add_se_conf
seehausen Jul 23, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
431 changes: 431 additions & 0 deletions bin/user/historygenerator.py

Large diffs are not rendered by default.

5 changes: 4 additions & 1 deletion dist/install.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ def loader():
class BasicInstaller(ExtensionInstaller):
def __init__(self):
super(BasicInstaller, self).__init__(
version="1.11",
version="1.12",
name='neowx-material',
description='The most versatile and modern weewx skin',
author="Neoground GmbH",
Expand Down Expand Up @@ -42,6 +42,7 @@ def __init__(self):
'skins/neowx-material/year-%Y.html.tmpl',
'skins/neowx-material/year.html.tmpl',
'skins/neowx-material/yesterday.html.tmpl',
'skins/neowx-material/history.html.tmpl',
'skins/neowx-material/archive/NOAA-%Y.txt.tmpl',
'skins/neowx-material/archive/NOAA-%Y-%m.txt.tmpl',
'skins/neowx-material/css/bootstrap.min.css',
Expand Down Expand Up @@ -140,5 +141,7 @@ def __init__(self):
'skins/neowx-material/weather-icons/font/weathericons-regular-webfont.ttf',
'skins/neowx-material/weather-icons/font/weathericons-regular-webfont.woff',
'skins/neowx-material/weather-icons/font/weathericons-regular-webfont.woff2']),
('bin/user',
['bin/user/historygenerator.py']),
]
)
5 changes: 4 additions & 1 deletion dist/readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,10 @@
| 1) copy files to the weeWX skins directory |
| > cp -rp skins/neowx-material /home/weewx/skins |
| |
| 2) in the weeWX configuration file, add / change a report and set |
| 3) copy /bin/user/historygenerator.py to |
| $WEEWX_ROOT/user. default: /usr/share/weewx/user |
| |
| 3) in the weeWX configuration file, add / change a report and set |
| neowx-material as its skin |
| [StdReport] |
| ... |
Expand Down
30 changes: 29 additions & 1 deletion src/almanac.html.tmpl
Original file line number Diff line number Diff line change
@@ -1,4 +1,27 @@
#encoding UTF-8
#set $now = $current.dateTime.raw
#set $yesterday = $now - 24*3600
#set $today_dayluminosity = $almanac.sun.set.raw - $almanac.sun.rise.raw
#set $yesterday_dayluminosity = $almanac($almanac_time=$yesterday).sun.set.raw - $almanac($almanac_time=$yesterday).sun.rise.raw
#set $difference_pre = $today_dayluminosity - $yesterday_dayluminosity
#set $difference = $difference_pre//60
#set $seconds = $almanac.sun.set.raw - $almanac.sun.rise.raw
#set $hours = $seconds //3600
#set $seconds %= 3600
#set $minutes = $seconds//60
#set $seconds %= 60
#set $dayluminosity_str = "%d hours, %d minutes, %d seconds" % ($hours, $minutes, $seconds)
#set $difference = $today_dayluminosity - $yesterday_dayluminosity
#if $difference
#set $delta = abs($difference)
#set $amt_str = "%s%d seconds" % (str(int($delta) // 60) + ' minutes, ' if ($delta // 60) > 0 else '', $delta % 60 if ($delta // 60) > 0 else $delta)
#if $difference > 0
#set $delta_str = "%s more than yesterday" % $amt_str
#else
#set $delta_str = "%s less than yesterday" % $amt_str
#end if
#set $dayluminosity_str = "%s" % ($dayluminosity_str)
#end if
## +-------------------------------------------------------------------------+
## | almanac.html.tmpl Template file for "almanac" page |
## +-------------------------------------------------------------------------+
Expand Down Expand Up @@ -51,7 +74,12 @@
title="End civil twilight">$almanac(horizon=-6).sun(use_center=1).set</span>
</div>
</div>

<h6 class="h6-responsive $Extras.color-text"> Today's Total Luminosity</h6>
<div class="row">
<div class="col">
$dayluminosity_str ($delta_str)
</div>
</div>
</div>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/css/style.min.css

Large diffs are not rendered by default.

8 changes: 8 additions & 0 deletions src/footer.inc
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,18 @@
<tr>
<td>$Extras.Translations[$Extras.language].hardware:</td>
<td>$station.hardware</td>
<td>&nbsp</td>
<td>&nbsp</td>
<td>$Extras.Translations[$Extras.language].station_uptime:</td>
<td>$station.uptime.long_form</td>
</tr>
<tr>
<td>$Extras.Translations[$Extras.language].altitude:</td>
<td>$station.altitude</td>
<td>&nbsp</td>
<td>&nbsp</td>
<td>$Extras.Translations[$Extras.language].server_uptime:</td>
<td>$station.os_uptime.long_form</td>
</tr>
#if $Extras.Footer.show_telemetry == "yes"
<tr>
Expand Down
80 changes: 80 additions & 0 deletions src/graph_line_archive_config.inc
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
#encoding UTF-8
## +-----------------------------------------------------------------------------------+
## | graph_line_archive_config.inc JS config for default line charts |
## +-----------------------------------------------------------------------------------+

chart: {
type: 'line',
zoom: {
enabled: false,
type: 'x',
autoScaleYaxis: false,
},
},

dataLabels: {
enabled: false
},

stroke: {
width: 0,
},

plotOptions: {
line: {
borderRadius: 2,
}
},

fill: {
opacity: 0.7
},

markers: {
size: 4,
strokeWidth: 1,
strokeOpacity: 0.5,
strokeDashArray: 0,
fillOpacity: 0.7,
shape: "circle",
radius: 1,
},

xaxis: {
type: 'datetime',
tickAmount: 8,
trim: true,
labels: {
hideOverlappingLabels: true,
tickAmount: 8,
rotateAlways: false,
hideOverlappingLabels: true,
showDuplicates: false,
trim: true,
formatter: function(val, timestamp) {
return moment.unix(timestamp).format("$Extras.Formatting.datetime_graph_archive");
}
}
},

grid: {
show: true,
strokeDashArray: 0,
position: 'back',
xaxis: {
lines: {
show: false
}
},
yaxis: {
lines: {
show: true
}
},
},

tooltip: {
x: {
format: "$Extras.Formatting.datetime_graph_tooltip"
}
},
80 changes: 80 additions & 0 deletions src/graph_line_config.inc
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
#encoding UTF-8
## +---------------------------------------------------------------------------+
## | graph_line_config.inc JS config for default line charts |
## +---------------------------------------------------------------------------+

chart: {
type: 'line',
zoom: {
enabled: false,
type: 'x',
autoScaleYaxis: false,
},
},

dataLabels: {
enabled: false
},

stroke: {
width: 0,
},

plotOptions: {
line: {
borderRadius: 2,
}
},

fill: {
opacity: 0.7
},

markers: {
size: 4,
strokeWidth: 1,
strokeOpacity: 0.5,
strokeDashArray: 0,
fillOpacity: 0.7,
shape: "circle",
radius: 1,
},

xaxis: {
type: 'datetime',
tickAmount: 8,
trim: true,
labels: {
hideOverlappingLabels: true,
tickAmount: 8,
rotateAlways: false,
hideOverlappingLabels: true,
showDuplicates: false,
trim: true,
formatter: function(val, timestamp) {
return moment.unix(timestamp).format("$Extras.Formatting.datetime_graph_label");
}
}
},

grid: {
show: true,
strokeDashArray: 0,
position: 'back',
xaxis: {
lines: {
show: false
}
},
yaxis: {
lines: {
show: true
}
},
},

tooltip: {
x: {
format: "$Extras.Formatting.datetime_graph_tooltip"
}
},
13 changes: 13 additions & 0 deletions src/head.inc
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,19 @@
## Tap highlighting
<meta name="msapplication-tap-highlight" content="no">

## Google Analytics
#if $Extras.Header.google_analytics_enable == "yes"
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=$Extras.Header.google_analytics_id"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());

gtag('config', '$Extras.Header.google_analytics_id');
</script>
#end if

## Favicons / mobile icons
<link href="img/icon-16.ico" rel="shortcut icon" type="image/x-icon">
<link href="img/icon-16.png" rel="icon" type="image/png" sizes="16x16">
Expand Down
16 changes: 14 additions & 2 deletions src/header.inc
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,11 @@
#end if
<span>
<strong>$station.location</strong><br>
#if $active_nav == 'archive'
<span class="font-small"></span>
#else
<span class="font-small">$current.dateTime</span>
#end if
</span>
</span>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent"
Expand Down Expand Up @@ -98,7 +102,15 @@
</li>
#end if
#end if

#if $active_nav == 'history'
<li class="nav-item active mr-3">
<a class="nav-link" href="history.html">$Extras.Translations[$Extras.language].history</a>
</li>
#else
<li class="nav-item mr-3">
<a class="nav-link" href="history.html">$Extras.Translations[$Extras.language].history</a>
</li>
#end if
#if $Extras.Header.almanac_nav_link == "yes"
#if $active_nav == 'almanac'
<li class="nav-item active mr-3">
Expand Down Expand Up @@ -126,7 +138,7 @@
</ul>
</div>

#if $active_nav != 'archive' and $Extras.Header.show_almanac == "yes"
#if $Extras.Header.show_almanac == "yes"
#if $almanac.hasExtras
<ul class="navbar-nav nav-flex-icons" style="line-height: 1.75; padding-top: .5rem">
<li class="nav-item mr-4 text-white">
Expand Down
Loading