forked from brewster76/fuzzy-archer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathINSTALL
159 lines (113 loc) · 6.06 KB
/
INSTALL
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
Installation
============
Before we begin...
1) This release (v2.26) has been tested on Weewx version 4.0.0 on Ubuntu linux 16.04 LTS and Python 3.6.
Versions of Weewx before v3 will not work. The earlier release v2.01 is on github and works with Weewx 2.4 - 2.7.
2) This has been tested on sqlite databases. Mysql and any other Weewx supported databases should work too.
Installation - The easy way
===========================
1) Get hold of the release archive from github: https://github.com/brewster76/fuzzy-archer/releases
2) Install it using the Weewx extension installer.
a) If you used the Debian installer:
sudo wee_extension --install=[wherever you've put the .tar.gz archive]
b) If you have installed weewx yourself:
cd /home/weewx [or where your base install is]
bin/wee_extension --install=[wherever you've put the .tar.gz archive]
The installer will ask if you want to switch the themes to another language. You can change this later on
via the [Language] section in skins/Bootstrap/skin.conf and skins/Images/skin.conf.
Web content is stored in public_html/Bootstrap.
3) Set the page title and page footer through the [BootstrapLabels] section in skins/Bootstrap/skin.conf.
[BootstrapLabels]
# Labels specific to the Bootstrap template
title = "The weather, [where you are]"
location_href = ["#" for nothing, or a hyperlink to some more information on your location]
footer = "© [who you are]"
4) Enjoy.... And let us know how you get on!
Just drop us an email at general@dajda.net and we'll add you to the list of happy sites at dajda.net/about.html.
Frequently Asked Questions
==========================
1) I've installed the new skin but I only see the original Weewx pages.
This template does not overwrite any existing templates which are generated in weewx.conf. For a new Weewwx
installation, both the standard Weewx and the Bootstrap reports will be generated:
Standard template: http://[wherever your site is]
Bootstrap template: http://[wherever your site is]/Bootstrap
If you no longer want to generate the standard weewx template, comment out this section in weewx.conf:
[StdReport]
# [[StandardReport]]
# skin = Standard
Remember to leave in the [[SmallImages]], [[BigImages]] and [[HTMLPages]] sections which generate the
Bootstrap template content.
2) I've changed the units in skin.conf, but the original units persist on the webpage. [Pre weewx 4.0.0]
The skin has two skin.conf files:
skins/Bootstrap/skin.conf - This creates the gauges and the html files.
skins/Images/skin.conf - This creates the (daily, weekly, ...) history graphs.
Make sure you've changed the units in both files.
The reason for splitting the config files out is Images/skin.conf is run twice. Once to create the images for the
webpage, and a second time for the expanded images which are shown when clicking on the webpage history graph.
3) Text in graphs looks very small
Make sure you have fonts installed that support truetype scaling:
apt-get install ttf-freefont
Installation - The involved way
===============================
Step 1 - Download from github:
------------------------------
To get the latest development code:
git clone git://github.com/brewster76/fuzzy-archer
To get the latest stable(ish) release, point your browser here:
https://github.com/brewster76/fuzzy-archer/releases
Move gaugeengine.py, gauges.py, historyengine,py and translateengine.py into the bin/user directory.
Move the Bootstrap and Images directory into the skins directory.
Move any language specific files you want into skins/languages.
Step 2 - Add the skins to weewx.conf
------------------------------------
The [StdReport] section will need to look something like this:
[StdReport]
# This section specifies what reports, using which skins, to generate.
# 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
[[SmallImages]]
# These are the images used on the front page of the website.
# Dimensions are set in the Images/skin.conf file
#
skin = Images
HTML_ROOT = public_html/Bootstrap
[[BigImages]]
# These images are used when a small web page image is clicked on.
# So the skin.conf image_width and image_height are overridden here.
#
skin = Images
HTML_ROOT = public_html/Bootstrap/big_images/
[[[ImageGenerator]]]
image_width = 800
image_height = 500
[[HTMLPages]]
# This generates the webpages themselves.
#
skin = Bootstrap
HTML_ROOT = public_html/Bootstrap
[[FTP]]
skin = Ftp
[[RSYNC]]
skin = Rsync
Step 3 - Add Bootstrap support files to your website
----------------------------------------------------
Add these files to weewx/public_html/js:
bootstrap.min.js
ekko-lightbox.min.js
and this one to weewx/public_html/css:
css/bootstrap.min.css
You can use the wget command to download these:
wget https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css
wget https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js
wget https://cdnjs.cloudflare.com/ajax/libs/ekko-lightbox/4.0.1/ekko-lightbox.min.js
Step 4 - (Optional) Display skins in another language
-----------------------------------------------------
Just choose your language using the "language" setting in the [Languages] section of skin.conf.
Remember to make changes to both skins/Bootstrap/skin.conf (for the html text) and skins/Images/skin.conf (for
the graphs).
Step 5 - Get in touch!
----------------------
If you enjoy using this Weewx customisation then we'd love to hear from you.
Just drop us an email at general@dajda.net and we'll add you to the list of happy sites on http://dajda.net/about.html.