-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.php
109 lines (98 loc) · 5.11 KB
/
setup.php
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
<?php include_once('./header.php'); ?>
<div id="sub_nav">
<button id="sidebarbutton" onclick="setup_showCreate();">
Create a Station
</button>
<button id="sidebarbutton" onclick="setup_showSource();">
View Source Code
</button>
<button id="sidebarbutton" onclick="setup_showInfo();">
Product Info
</button>
</div>
<div id="basic" class="content" >
<h1>
Learn How to Setup A Weather Station
</h1>
<p>
So you want to create your own weather station? Well then you've found the right page! Making a Personal Pi in the Sky is rather simple.<br><br>
Visit the tabs on the left to view instructions to set up your own Personal Pi in the Sky!
</p>
</div>
<div id="create" style="display:none;" class="content">
<h1>
Create a Weather Station
</h1>
<p>
First, you'll need all of the supplies in the list below:<br>
Materials Needed:<br>
<ul>
<li>RaspberryPi:</li>
<ol>
<li>We used Raspberry Pi B+, but others should also work.</li>
<li>Wires, resistors, and other materials to connect the sensors to the Raspberry Pi</li>
</ol>
<li>Sensors:</li>
We purchased our sensors from Adafruit
<ol>
<li>Temperature/Humidity Sensor - <a href = "http://www.adafruit.com/products/393"> http://www.adafruit.com/products/393</a></li>
<li>Pressure Sensor - <a href = "http://www.adafruit.com/products/1603">http://www.adafruit.com/products/1603</a></li>
<li>Light Sensor - <a href = "http://www.adafruit.com/products/161">http://www.adafruit.com/products/161</a></li>
</ol>
</ul>
</p>
<p>
After you have all of the materials, you're ready to start creating your own weather station.<br><br>
First, download our software to your Raspberry Pi by visiting our GitHub source code for the weatherStation <a href="https://github.com/KABAM-307/WeatherStation.git">here</a>.
<br><br>
You also need to make sure your Raspberry Pi has the <a href ="http://wiringpi.com/download-and-install/">wiringPi</a> library available on it.
Just follow the directions in the provided link while using the terminal on your Pi.<br>
If you need a Raspberry Pi tutorial visit our Product Info page.<br><br>
Next, you're ready to start building. To connect your sensors, go to our Product Info page and check out the links!<br><br>
After the sensors are connected to the Pi and you have downloaded our weatherStation code to your Pi, the next step is to run the code.
To run our code navigate to the "Weather\ Station/src/weatherStation" directory on your Pi that contains our WeatherStation code.<br><br>
From there type "make" in your terminal to compile the Makefile we have provided.<br><br>
If you setup everything correctly this Makefile should take care of all of the necessary code compilation for you.<br><br>
Lastly run the Main program by typing "java Main"<br><br>
This program will ask you a series of questions to define the settings for your weatherStation.<br><br>
After you have completed answering all of the questions you should get a message that says "You've successfully setup your weather station!".<br><br>
If at anytime you would like to reconfigure the settings of your weatherStation just rerun the Main program with the flag --reconfig.<br><br>
Eg: java Main --reconfig
<br><br>
You're done! You now have your very own Personal Pi in the Sky! Enjoy!
</p>
</div>
<div id="source" style="display:none;" class="content">
<h1>
View Source Code
</h1>
<p>
Our source code is publicly available on GitHub.
Click <a href="https://github.com/KABAM-307">here</a> to view our source code.<br><br>
The WeatherStation repository contains all of the code that the Raspberry Pi weather station uses to run.
<br><br>
The WebApp repository contains the code for the setup and running of the web application to view weather data.
</p>
</div>
<div id="info" style="display:none;" class="content">
<h1>
Product Info
</h1>
<p>
The Personal Pi in the Sky can be created by anyone. Follow the instructions on this page to learn how to create your own Personal Pi in the Sky.
<br><br>
If you are new to the Raspberry Pi click <a href="https://www.youtube.com/watch?v=Jj4pjfU_-jo">here</a> for a quick tutorial.
Specifics of the Raspberry Pi can be found <a href = "https://www.raspberrypi.org/products/model-b-plus/">at this link</a>. <br><br>
The sensors we used were all purchased from Adafruit. <br>
For more information on each sensor and how to connect them to the Pi, visit the links below.<br><br>
The Description section gives an overview of the sensor and how to connect it to the Pi.<br>
The Technical Details section provides the technical specs of the sensors.<br>
The Learn section has additional videos that are great resources to learn about the sensors.<br>
<ol>
<li>Temperature/Humidity Sensor - <a href = "http://www.adafruit.com/products/393"> http://www.adafruit.com/products/393</a></li>
<li>Pressure Sensor - <a href = "http://www.adafruit.com/products/1603">http://www.adafruit.com/products/1603</a></li>
<li>Light Sensor - <a href = "http://www.adafruit.com/products/161">http://www.adafruit.com/products/161</a></li>
</ol>
</p>
</div>
<?php include_once('./footer.php'); ?>