You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
Haris Razis 0fbd837515
Add axios
4 years ago
.github/workflows Create codeql-analysis.yml 4 years ago
client Remove uuid 4 years ago
database Add docker 4 years ago
server Add /devices route API 4 years ago
web Add axios 4 years ago
.gitignore Add .env.template 4 years ago
README.md 📜 Update README.md 4 years ago

README.md

Anchiale

About

Anchiale was the Titan goddess of the warming heat of fire.

Anchiale is an internet of things solution for temperature sampling with raspberry pi. It is designed around a scalable architecture, so it is capable of handling a big sample rate.

Installation

Clone the project:

git clone git@github.com:xrazis/Anchiale-pi.git

Run Locally

The server connects to an influx-db instance. Make sure you first start the database and correctly set the .env file on the server.

Start Install npm packages:

npm install --prefix ./server
npm install --prefix ./client

Running the server:

npm start --prefix ./server

Set the server URL in the /client/.env to http://localhost:3000/

Running the client:

npm start --prefix ./client

Development mode

Running the server:

npm run dev prefix ./server

Running the client:

npm run dev prefix ./client

Run in Docker

Start the database:

bash ./database/database.sh

Configure the database on localhost:8086. Be sure to set and export the token, org and bucket in the .env file.

Start the server

cd server
bash server.sh

Set the server URL in the .env file.

Start the client

cd client
bash client.sh

Connecting to the anchiale server running on swarmlab.io

A server with a database is running over at swarmlab. You can connect your local client running on your pi!

  1. Set the URL in the client .env file to XXXXXXXXXX.
  2. Start up the client with one of the ways described above.
  3. Done 😄 !