Skip to content

Commit

Permalink
Fixes [GH-29]. Bump version to v1.3.2.
Browse files Browse the repository at this point in the history
  • Loading branch information
Daveiano committed Jul 13, 2022
1 parent 685b070 commit 314210d
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 10 deletions.
4 changes: 4 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,4 +107,8 @@
- Bugfix: Month navigation only visible for current year when inside a month archive page [GH-24]
- Bugfix: Encoding issues in Data tables [GH-26]

# 1.3.2

- Bugfix: No module named 'user.forecast' [GH-29]

# Next
2 changes: 1 addition & 1 deletion install.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ def loader():
class BasicInstaller(ExtensionInstaller):
def __init__(self):
super(BasicInstaller, self).__init__(
version="1.3.1",
version="1.3.2",
name="weewx-wdc",
description="Weather Data Center skin for weewx.",
author="David Baetge",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "weewx-wdc",
"version": "1.3.1",
"version": "1.3.2",
"description": "Weather Data Center skin for weewx.",
"author": "David Baetge <[email protected]>",
"license": "MIT",
Expand Down
8 changes: 4 additions & 4 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ If you like the look and feel of the skin please consider having a look into the

**Requires weewx >= 4.5**

**Please note:** For installation, please use the generated zip archive from a release, eg. https://github.com/Daveiano/weewx-wdc/releases/download/v1.3.1/weewx-wdc-v1.3.1.zip.
**Please note:** For installation, please use the generated zip archive from a release, eg. https://github.com/Daveiano/weewx-wdc/releases/download/v1.3.2/weewx-wdc-v1.3.2.zip.
Don't download the repository directly and don't use the GitHub generated zip and tar.gz archives that come alongside the release. Always use the zip archive named **weewx-wdc-vX.X.X.zip**

Background: The files in the src/ directory are the source files (TypeScript, SCSS). When creating a release, these source files get transformed and optimized, and the output location of these transformed files is the location which matches the location in the install.py script. The weewx-wdc-vX.X.X.zip should contain all these transformed files (like service-worker.js), but if you download the current state of the repo, these files are not included and this will throw multiple `FileNotFoundError` errors while installing.
Expand All @@ -112,7 +112,7 @@ The default skin.conf looks like this:
```
# configuration file for the weewx-wdc skin
SKIN_NAME = Weather Data Center
SKIN_VERSION = 1.3.1
SKIN_VERSION = 1.3.2
[Extras]
# Show a link to the GitHub respository of this skin. Set to False to hide.
Expand Down Expand Up @@ -171,7 +171,7 @@ SKIN_VERSION = 1.3.1
[CheetahGenerator]
encoding = html_entities
search_list_extensions = user.general_util.GeneralUtil, user.stats_util.StatsUtil, user.diagram_util.DiagramUtil, user.celestial_util.CelestialUtil, user.archive_util.ArchiveUtil, user.table_util.TableUtil, user.forecast_util.ForecastUtil
search_list_extensions = user.general_util.GeneralUtil, user.stats_util.StatsUtil, user.diagram_util.DiagramUtil, user.celestial_util.CelestialUtil, user.archive_util.ArchiveUtil, user.table_util.TableUtil
[[SummaryByMonth]]
# Reports that summarize "by month"
Expand Down Expand Up @@ -284,7 +284,7 @@ This will generate the year.html page only once a hour. `stale_age` is in second

### Support for weewx-forecast

Add `user.forecast.ForecastVariables` to `[CheetahGenerator].search_list_extensions` in weewx-wdc skin.conf.
Install the forecast extension and add `user.forecast.ForecastVariables` and `user.forecast_util.ForecastUtil` to `[CheetahGenerator].search_list_extensions` in weewx-wdc skin.conf.

It should look like this

Expand Down
4 changes: 2 additions & 2 deletions skins/weewx-wdc/skin.conf
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# configuration file for the weewx-wdc skin
SKIN_NAME = Weather Data Center
SKIN_VERSION = 1.3.1
SKIN_VERSION = 1.3.2

[Extras]
# Show a link to the GitHub respository of this skin. Set to False to hide.
Expand Down Expand Up @@ -59,7 +59,7 @@ SKIN_VERSION = 1.3.1

[CheetahGenerator]
encoding = html_entities
search_list_extensions = user.general_util.GeneralUtil, user.stats_util.StatsUtil, user.diagram_util.DiagramUtil, user.celestial_util.CelestialUtil, user.archive_util.ArchiveUtil, user.table_util.TableUtil, user.forecast_util.ForecastUtil
search_list_extensions = user.general_util.GeneralUtil, user.stats_util.StatsUtil, user.diagram_util.DiagramUtil, user.celestial_util.CelestialUtil, user.archive_util.ArchiveUtil, user.table_util.TableUtil

[[SummaryByMonth]]
# Reports that summarize "by month"
Expand Down
4 changes: 2 additions & 2 deletions test/test_install_report/src/skin.conf
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# configuration file for the weewx-wdc skin
SKIN_NAME = Weather Data Center
SKIN_VERSION = 1.3.1
SKIN_VERSION = 1.3.2

[Extras]
# Show a link to the GitHub respository of this skin. Set to False to hide.
Expand Down Expand Up @@ -59,7 +59,7 @@ SKIN_VERSION = 1.3.1

[CheetahGenerator]
encoding = html_entities
search_list_extensions = user.general_util.GeneralUtil, user.stats_util.StatsUtil, user.diagram_util.DiagramUtil, user.celestial_util.CelestialUtil, user.archive_util.ArchiveUtil, user.table_util.TableUtil, user.forecast_util.ForecastUtil
search_list_extensions = user.general_util.GeneralUtil, user.stats_util.StatsUtil, user.diagram_util.DiagramUtil, user.celestial_util.CelestialUtil, user.archive_util.ArchiveUtil, user.table_util.TableUtil

[[SummaryByMonth]]
# Reports that summarize "by month"
Expand Down

0 comments on commit 314210d

Please sign in to comment.