Giter VIP home page Giter VIP logo

smarthome_server's Introduction

Simple Smart Home Server

Overview

This project is a C++23 implementation that manages Bluetooth Low Energy (BLE) devices, storing their data in an SQLite database and providing access to the data via a RESTful API. It utilizes modern C++ features such as unique and shared pointers, new range algorithms, and optionals.

Features

  • Asynchronous Device Management: The Bluetooth manager asynchronously handles connections to BLE devices, subscribing to characteristics and receiving data through notifications.
  • Data Storage: Received data is converted and stored in an SQLite database, organized by device, service, characteristic, timestamp, and value.
  • REST API: A lightweight HTTP server built with the CrowCpp framework provides a REST API, allowing retrieval of the latest or all measurements in JSON format.
  • Easy Configuration: Device configurations are handled through a simple YAML file, enabling seamless connection to multiple BLE devices.
  • Companion App: A companion app, implemented with Flutter, can visualize the data in charts and show real-time updates.

Getting Started

To use this codebase, ensure you have a C++23 compatible compiler and the necessary dependencies installed. As everything is downloaded and configured on compile time, only SQLite3 is needed. The YAML configuration file allows you to specify the BLE devices to connect to. Once set up, the server will automatically manage these devices, store data, and make it accessible over the local network.

smarthome_server's People

Contributors

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