# Rasberry Pi

## Table of contents
1. [Introduction](##introduction)
2. [Rasberry Pi](##Rasberry-Pi)
3. [Dev-Page](###Dev-Page)
4. [Database](##Database)
5. [Database software](###Database-software)
6. [Esp to database](###Esp-to-database)

## Introduction

In the backend of this project, there is a Raspberry Pi 3 for handling the dev page (more on this later) and the database. The ESP nodes are going to send an API request to the dev page, which is going to make a POST request to the database. 

## Rasberry Pi

The Raspberry 3 can be descriped as a "little" computer running a quad-code 64-bit prossesor, the previus Raspberry witch is the pi 2 and is 50% slower. The operaiting system is linux, it is a open source os system, we are using it for database and website hosting purposes, but it can do a wide range of things. The GPIO pins make it usefull for even more things, like home automation with sensors.

### Dev Page

For monitoring porpoises we are going to implement a dev page, this means that there basicey is a debug page. On this page we will be displaying the current readings that are comming in in to graphs and also the data form the last 10 redings from all the nodes, the readings are sorted in there respective graphs like temp, humidity and noice redings for example. This is handy for quick access to the data ouwr nodes are sending out. So it will be easy to see if one is malvuntion and monetoring the state off the battery to check if its nessesery to replace it.

### Database

## Database

The database is set up on the raspberry so that we dont always have to have a computewr

### Database software

### Esp to database