Giter Site home page Giter Site logo

demo_opt_battery's Introduction

Egeo meter Iot Application

This application is created to simplify communication between the user and the Onion omega, this application must be run within Onion omega, with it the user will have a server with a platform that allows him to connect to Wi-Fi, restart the device, etc

Contents:


This project contains two folders:

  • scripts: Contains Onion omega configuration files, pass files and database configuration.
  • web-server: Contains the files and folders of the server.

How to clone:


step to step, to be concluded

Requirements:


  • Onion Omega with SDcard memory expansion of at least 4GB.
  • Onion Omega ready to use (ask Cycle System for formatting instructions).
  • build folder supplied by Cycle System.

Installation:


The Onion Omega must already be configured with SD card, you can consult with Cycle System the step by step for the preparation of the Omega Onion.

  1. You must be connected to the Onion Omega through the local Wifi network with the Onion Omega credentials.

  2. Add or replace the build folder (provided by Cycle System ), to the app folder, inside the project's web-server folder.

  3. Inside web-server open the file config_template.py, there secure the path of DATABASE_URI in production mode as "/root/egeo.sqlite", save and change the name of this file to config.py.

  4. In your console go to the folder * scripts / copy_files_template / *, here you must give execution permission to "copy_files.sh" with:

chmod +x copy_files.sh
  1. Run the file:
./copy_files.sh <Ip address of your Onion Omega>
# Example
# ./copy_files.sh 192.168.3.1 
  1. Write the password (usually is "onioneer").
  2. Enter the "Onion" run on your console:
ssh root@<Ip address of your Onion Omega>
  1. Write the password.
  2. Python3 must be installed inside the Onion Omega, inside the Onion Omega, Go to the folder "/root/egeo_iot/scripts/onionConfiguration/", and run script 4_install.sh, to install python and its dependencies:
sh 4_install.sh
  1. Go to the folder "/root/egeo_iot/scripts/" and copy the file rc.local to the path "/etc", with:
cp rc.local /etc
  1. Reboot the Onion Omega, with:
reboot 

If you can, turn the Onion Omega off and on

demo_opt_battery's People

Contributors

nicosquare avatar danterocket avatar karina96062213 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.