forked from juanantoniomosquera-zz/fuzzy-archer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
INSTALL
106 lines (71 loc) · 3.16 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
How to install
==============
Before we begin...
1) This has been tested on weewx versions 2.4.0 - 2.6.2, on Ubuntu linux 12.04, and on a Raspberry Pi running wheezy.
2) Only sqlite databases currently supported, not mysql.
The easy way
============
Get hold of v2.0.tar.gz.
Use the WeeWx extension installer:
cd /home/weewx
setup.py --extension --install [wherever you've put v2.0.tar.gz]
Web content is stored in public_html/Bootstrap.
Enjoy.
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 and historyengine,py into the bin/user directory.
Move the Bootstrap and Images directory into the skins directory.
Step 2 - Add the skins to weewx.conf
------------------------------------
So 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/
[[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/big_images/
[[[ImageGenerator]]]
image_width = 800
image_height = 500
[[HTMLPages]]
# This generates the webpages themselves.
#
skin = Bootstrap
HTML_ROOT = public_html/
[[FTP]]
skin = Ftp
[[RSYNC]]
skin = Rsync
Step 3 - Add Bootstrap support files to your website
----------------------------------------------------
Add these files to weewx/public_html/assets
assets/css:
bootstrap.css bootstrap.min.css bootstrap-responsive.css bootstrap-responsive.min.css lightbox.css
assets/img:
close.png glyphicons-halflings.png glyphicons-halflings-white.png loading.gif next.png prev.png
assets/js:
bootstrap-affix.js bootstrap-carousel.js bootstrap.js bootstrap-popover.js bootstrap-tooltip.js jquery-1.7.2.min.js
bootstrap-alert.js bootstrap-collapse.js bootstrap.min.js bootstrap-scrollspy.js bootstrap-transition.js jquery.js
bootstrap-button.js bootstrap-dropdown.js bootstrap-modal.js bootstrap-tab.js bootstrap-typeahead.js lightbox.js
You can download these from dajda.net/assets
Step 4 - (Optional) Translate skins to Spanish Language
------------------------------------------------------
Rename directories Bootstrap_es and Images_es to Bootstrap and Images.