Niculskin is a skin for the weewx project. It is based on two other skins:
The cannonical source of Niculskin is hosted on GitLab.com.
The skins have been testet with weewx 3.5.0 and sqlite database.
- Clone this repository to your machine, where weewx is installed.
- Create an extension archive:
$ git archive master --prefix=niculskin/ | gzip > ../niculskin.tar.gz
Install it using the Weewx extension installer.
- If you have installed weewx yourself:
$ cd /home/weewx # or where your base install is /home/weewx
$ bin/wee_extension --install=[wherever you have put the .tar.gz archive]
- If you used the Debian installer:
$ sudo wee_extension --install=[wherever you have put the .tar.gz archive]
In order to install this skin into your weewx installation follow these steps:
- Clone this repository to your machine, where weewx is installed.
- Stop the weewx service.
- Copy the files in
bin/user
to$WEEWX_ROOT/user
. default: /usr/share/weewx/user - Copy the directories
skins/languages
andskins/niculskin
to$WEEWX_ROOT/skins
.
No matter how you installed the skin, you should configure it afterwards to you needs. Here's how:
- Edit your
$WEEWX_ROOT/weewx.conf
and setskin
in the sectionStdReport
so it will look something like this:
[StdReport]
# Where the skins reside, relative to WEEWX_ROOT
SKIN_ROOT = skins
# Where the generated reports should go, relative to WEEWX_ROOT
HTML_ROOT = public_html
# The database binding indicates which data should be used in reports.
data_binding = wx_binding
# Each of the following subsections defines a report that will be run.
[[StandardReport]]
# See the customizing guide to change the units, plot types and line
# colors, modify the fonts, display additional sensor data, and other
# customizations. Many of those changes can be made here by overriding
# parameters, or by modifying templates within the skin itself.
# The StandardReport uses the 'Standard' skin, which contains the
# images, templates and plots for the report.
# skin = Standard
skin = niculskin
- Edit
$WEEWX_ROOT/skins/niculskin/skin.conf
and setLanguage
to your language. It should look like this:
[Language]
#
# Set a language below and labels will be overridden with any that are specified in
# skins/languages/[language].conf
#
# Choices are: dutch, espanol, finnish, francais, italian, german
language = german
- Set the page title and page footer through the
[niculskinLabels]
section inskins/niculskin/skin.conf
.
[niculskinLabels]
title = "The weather, [where you are]"
location_href = ["#" for nothing, or a hyperlink to some more information on your location]
footer = "© [who you are]"
- You may customize the labels in your language for your needs. The language labels can be found in the appropriate language file in the language skin, e.g.
$WEEWX_ROOT/skins/language/german.conf
for the German language. - If your language is not available, simply copy one of the present language configuration files, change to labels appropriately and refer to it in the Niculskin skin.conf at
WEEWX_ROOT/skins/niculskin/skin.conf
. If you would like to contribute your language file, please open a merge request according to the Contribution Guideline. Your contribution is welcome.
Please see the Contribution Guideline for more details.
See LICENSE file.
Thanks to Sven Reifschneider, the creator of Sofaskin. I liked his skin most as I was looking for something different in the look and feel of weewx.
And thanks to Nick Dajda. He had the history for the weather data. I'm glad I found his code.