Giter Club home page Giter Club logo

vartoviy-server's Introduction

Vartoviy

📚 Read in Ukrainian 🇺🇦 📖 Read in Russian

Vartoviy (working title - "Вартовий") is an open-source platform specially designed for creating custom animal monitoring infrastructure on farms where they roam in open spaces. With Vartoviy, you can easily deploy a server in a Docker container or on your own computer, ensuring a high level of privacy and full control over your data. This project provides full transparency with open access to the server source code, device firmware, and detailed device schematics, allowing users to fully understand its operation.

Please note that "Vartoviy" is currently in development.

Screenshots

Главная Настройка барьера История перемещений Главная Добавить устройство Уведомления Таблицы О проекте

Features

  • Localization for Different Languages: Users can select the interface language from options including "🇬🇧 English," "🇺🇦 Ukrainian," and "🇷🇺 Russian." 🌐
  • Barrier Breach Notifications: The system provides notifications in case of a specified barrier breach, ensuring prompt alerts about events. 🚨
  • Low Battery Notifications (20%): Users receive notifications when the battery level on the device reaches 20%, providing timely warnings about the need for charging. 🔋
  • Theme Switching: Users can switch between "🌞 Light" and "🌚 Dark" interface themes, providing a comfortable user experience in various lighting conditions. 🎨
  • Device Connection via MQTT: MQTT protocol is used for stable and efficient device connections, ensuring reliable data transmission. 📡
  • Display of Latest Data in Dashboard: Users can visually track the latest device data through an intuitive and informative dashboard. 📊
  • Viewing Full Movement History: Provides the ability to view the full movement history of a specific device, allowing for deeper analysis of its activity. 🕰️
  • Graphical Display and Modal Windows: Graphical representation of data and the ability to analyze it in detail through modal windows provide a deeper understanding of information. 📈
  • Creating and Saving Barriers for Specific Devices: Users can define and save a barrier for a specific device, providing personalized and flexible control. 🛡️
  • Display of Device Location and Barrier on Map: Visual representation of the current device location and set barrier on the map. 🗺️
  • Ability to Download GeoJson of Configured Barrier: Users can easily download barrier geographic data in GeoJson format for further use or analysis. 📤
  • Use of external PostgreSQL database: Users can configure a connection to an external PostgreSQL database for data storage, which ensures scalability and reliability of the system's operation under large volumes of information. 🗃️

Installation Options

Quick Start with Docker 🐳

To launch a project in a Docker container, follow these steps:

  1. Build a Docker image:

    docker build -t vartoviy .
    
  2. Starting Docker container:

    docker run -p 8000:8000 -d vartoviy
    

    This command will start the container in the background, assign port 8000 on your host to port 8000 in the container, and use the image name you specified earlier.

  3. Access the project: You can now open the project in your browser at http://localhost:8000/.

Variant with External PostgreSQL Database

Before running the build, you need to change the database bindings in the settings.py file.

  1. Building Docker Image:

    docker-compose up -d
  2. Database Setup:

    To set up the database and create a superuser with authentication data, follow these steps:

    docker-compose exec web sh -c "python manage.py makemigrations && python manage.py migrate" &&
    docker-compose down &&
    docker-compose up --build -d &&
    docker-compose exec -e DJANGO_SUPERUSER_USERNAME=admin -e [email protected] -e DJANGO_SUPERUSER_PASSWORD=adminpassword web bash -c "python manage.py createsuperuser --noinput"

    These commands will update the database, restart Docker containers, and create a superuser with the username "admin," email "[email protected]," and password "adminpassword" (please use more secure passwords in real applications).

🚀 Done! Now you have a Docker image with a configured database and superuser for your Django application.

Alternative Installation 🚀

  1. Create a virtual environment:

    python -m venv venv
    
  2. Activating the virtual environment:

    .\venv\Scripts\Activate.ps1.
    
  3. Installing dependencies:

    pip install -r "requirements.txt"
    
  4. Migrations:

    python manage.py makemigrations
    
    python manage.py migrate
    
  5. Starting the server:

    python manage.py runserver
    

You can now open the project in your browser at http://localhost:8000/.

  1. Start the script for virtual sensors (optional):

    python mqtt_virtual_sensor.py
    

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.