Git Product home page Git Product logo

koic's Introduction

Koic

Desciption

Koic is a connected scarecrow which is equipped with cameras that film the terrain in real time.
The filmed images are then analysed. Depending on the animal that is hit, the scarecrow will choose a suitable way to repel it in a natural way.

Summary

Install

πŸš€ Clone repository

You have to clone the repo on the Raspberry Pi and your computer.

git clone [email protected]:PoCInnovation/Koic.git

⚠️ Requirement

πŸ“± The Expo Client App

The Expo App will load the build bundle of the Expo CLI and allow you to test our app without deploying it or building with Android Studio.

Download links:

πŸ“ Raspi installation

Enabling the Camera

Using the desktop

If you are new to raspberry I advise you to follow this tutorial:

Using the command line

Open the raspi-config tool from the terminal:

sudo raspi-config

Select Interfacing Options then Camera and press Enter. Choose Yes then Ok. Go to Finish and you’ll be prompted to reboot.

Controlling the pi remotely

Your raspberry pi and your computer must be on the same network.

Get your ip address like this:

hostname -I | cut -d' ' -f1

Once you have the address, establish the ssh connection with your raspberry pi:

ssh pi@<ip_address_raspberry_pi>

Quick Start

  1. Run launch programm ./launch.sh
  2. Create Kafka Cluster on http://localhost:9000/addCluster
  3. Run Kafka Producer (raspberry pi or on your computer)
  4. Run Mobile-App

Detailed launch

Back-End / Consumer Kafka

⚠️ Change variable REPLACE_BY_YOUR_IP by your computer address ip in:

  • koic-app/.env
  • RPIProducer/manager.py
./launch.sh

Create kafka cluster on your http://localhost:9000/addCluster

Like this:

And save.

Producer Kafka

Check that the above steps have been carried out.
If you would test without pi run his command:

./RPIProducer/tests/fake_producer.py

Run the kafka producer on raspberry pi:
Put the script on raspberry pi with this command:

./rpi.sh {ip_of_your_raspi}

The programm was copied in Dowloads folder

# Kafka Producer / on rasberry pi
python3 run.py

Front-End / Mobile App

In koic-app/.env change ip by your ip address.

cd koic-app/
npm install --global expo-cli
yarn install
yarn start

Scan the QR code displayed in your terminal with your phone

Features

Application

The application is divided by a tab that allows you to navigate between the different features like :

  • Be able to view the activity on the field in real time thanks to the cameras placed on it.

  • View and graph the data collected and analyse the behaviour of the pests.

  • Make adjustments to the entire application and the cameras.

  • Report a problem and able to contact support.

Scarecrow connected

  • Cameras that can film the field in real time and send information that is processed by an API and sent to the application

Explain

  1. Architecture Scheme
  2. Back End custom

Authors


Thomas Michel

Inès Maaroufi

Coline Seguret

Organization


πŸš€ Don't hesitate to follow us on our different networks, and put a star 🌟 on PoC's repositories.

koic's People

Contributors

0xpanoramix avatar cleopha avatar happinesseuh avatar pr0m3th3usex avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  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.