You are on page 1of 9

IOT-READY FIRE AND SMOKE

DETECTOR USER MANUAL


(SERVER)

TABLE OF CONTENTS

1. SETTING UP THE WEB-APP MONITORING SYSTEM


1.1. XAMPP INSTALLATION
1.2. LOCALHOST DATABASE
1.3. MONITORING SYSTEM
2. REGISTERING NEW DEVICE
2.1. THINGSPEAK
2.2. FIREBASE
2.3. ARDUINO
SETTING UP THE WEB-APP MONITORING SYSTEM
XAMPP INSTALLATION GUIDE
1. Open the folder” Web-app Monitoring System” and run “xampp.exe”. Follow the installation
instruction.

2. From the folder” Web-app Monitoring System”, copy the folder “System”.

3. Go to the installation path of the “xampp” then open the folder “htdocs”. Paste the copied
“System” folder.
LOCALHOST DATABASE

1. Run “xampp-control.exe” from the installed path.

2. Start “Apache” and “MySQL”.

3. Open Chrome browser. Input “localhost/dashboard/” on the search bar.

4. Click on “phpMyAdmin”.
5. Click “Import” then “Choose File”.

6. Go to the folder “Web-app Monitoring System” and select “logindata.sql” scroll bottom then
click go.

MONITORING SYSTEM
1. Open Chrome browser. Input “localhost/System/index.php” on the search bar.

2. Input the provided credentials


REGISTERING NEW DEVICE
THINGSPEAK
1. On the monitoring system page, click on the "View Record Data”.

2. Login with the provided account.

3. Click on “Channels” then “My Channels”. Click “New Channel”.

4. Enter channel name, then input “Fire” on “Field 1” and “Smoke” on Field 2”.

5. Go to API Keys and copy the Write API Key.


FIREBASE
1. Open Chrome browser. Input “firebase.google.com” on the search bar. Login with the given
account.

2. Click “Go to console”.

3. Add project.

4. Enter project name then continue.

5. Select “Default Account for Firebase”.


6. Go to “Project settings”.

7. Go to “Service accounts” then select “Database secrets”.

8. Click “show”.

9. “Copy secret”.

10. Go to “Database” then scroll to “Realtime Database” and click “Create database”.
11. Copy the link.

ARDUINO

1. Go to “arduino.cc/en/Main/Software” then click “Get”.

2. From the folder “Web-app Monitoring System”, open folder “Newdevice”.

3. Open “Newdevice.ino”.

4. Paste the copied API Key from Thingspeak unto the “apiKey”. (1)
5. Input “ssid” and “password” credentials of the establishment wifi connection. (2)
6. Paste the copied link from Firebase unto the “FIREBASE_HOST”. (3)
7. Paste the copied secret from Firebase unto the “FIREBASE_AUTH”. (4)
8. Connect the device unto the computer then click “Upload”. (5)

You might also like