Skip to content

tqbao98/digipaali-device

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Digipaali device and interface

Digipaali (2018-2020) is a public-funded project conducted by Häme University of Applied Sciences, and Natural Resources Institute Finland, in cooperation with Finnish innovative farms. The project aims to improve the efficiency of silage bale life-cycle management. This repository includes programs receiving and processing data from Arduino/Wemos board, and sending bales' data to IoT Hub. The code also hosts a local web application to control the device and display real-time measurements.

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.

Prerequisites

Installing

Clone the repo or download zip file and extract it, in your desire folder:

git clone https://github.com/tqbao98/digipaali-device.git

Install potentially required packages:

npm install

Editing files to fit your setup

  • In index.js, edit path to static files. By default, it is './public', which should work in most cases, but sometimes full path is required, e.g:
app.use(express.static('/home/pi/digipaali-device/public'));
  • In index.js, change url to your MQTT broker, e.g:
var client  = mqtt.connect('http://localhost:1883')
src="https://maps.googleapis.com/maps/api/js?key=YOUR-API-KEY&callback=initMap">

Running

To run the program, in repository folder:

node index.js

Optionally, you can run the project with nodemon or pm2 for better project management.

To run on nodemon, first install it:

npm install -g nodemon

then:

nodemon index.js

To run on pm2, first install it:

npm install pm2 -g

then:

pm2 index.js

License

This project is licensed under the MIT License - see the LICENSE file for details

About

Digipaali web app on device side

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors