A remote monitoring system
UBC Sustaingineering is working in partnership with ENICALSA (Renewable solutions company in Nicaragua) to design and develop a 3G-network monitoring system for solar water pumps.
Horus an electron based desktop application (MacOS, Windows, Linux) aims to facilitate the monitoring and data collection for the 30 currently installed solar panels in Nicargua.
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
We will install some essential Command Line Interfaces (CLI) to enable a connection between your local machine and required web services.
(These are the general steps. This is still missing formating, content, but will serve as backbone for the whole file).
-
Installing Git in your shell.
-
Open up Terminal by typing "Terminal" on the Spotlight Search
-
Once open, type the following in the command line
git
The git command will prompt a wizard if you don't have git installed in your computer. Open the wizard and follow the instructions.
You can retype git in the command line once installation is completed, which will open up a series of new options available to the git command. This ensures that the CLI was installed successfuly.
-
-
Intalling Node Package Manager (npm) and Node Js
-
Go to this site https://www.npmjs.com/get-npm. Choose the Mac option, then click download.
-
Open the downloaded file, which will prompt a wizard. Follow the instructions provided.
-
Once installed, you can type the following command to check your current node version/ensure sucessful installation.
node -v
-
-
Clone the repository on your local machine
-
Open up Terminal, and copy the following line
git clone https://github.com/Sustaingineeringubc/Monitoring-System.git
This will bind your local computer with the online repository, and download all the files, folders and information belonging to the project to a folder on your current directory.
If you want to customize the location of the clone, you can traverse your directories at will with the use of the "Cd" + "folder name" command. More information about traversing your directories here.
-
-
Navigate to
Monitoring-System
directory-
In the command line, type the following command
cd Monitoring-System
You can always check your current directory by typing the following command
pwd
This will dispaly your current path, which should end with .../Monitoring-System
-
-
Install project dependencies
-
Inside the Monitoring-System folder, type the following command
npm install
This will search for files inside the project that need to be downloaded for the project to run properly. A scrollbar will appear while your dependencies are being downloaded.
-
-
Start the app
-
Once download finishes, type the following command
npm start
This will open up the Horus application, taking you to the landing screen.
-
Explain how to run the automated tests for this system
Building an electron project will generate an platfrom based native binary. This binary can then be used to install a Horus app distribution into Windows, MacOS and Linux.
-
Bulding the distribution
npm run build
- Felipe Ballesteros - Team lead - FEBG
- Adrian Viquez - Team Member - aviquez96
- Juan Luis Flores - Team Member - jluisfgarza
See also the list of contributors who participated in this project.
This project is licensed under the MIT License - see the LICENSE.md file for details