hr-monitor-ble-server

command module
v0.0.0-...-c0b2335 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 26, 2024 License: MIT Imports: 6 Imported by: 0

README

hr-monitor-ble-server

A Go project to retrieve data from Bluetooth Low Energy (BLE) heart rate monitors and make it available to message brokers or databases.

Project Logo

Table of Contents

Overview

hr-monitor-ble-server is a server application designed to connect to BLE heart rate monitors, collect heart rate data, and make it available for further processing or integration with other systems. The application uses Go and is containerized using Docker for easy deployment.

Features

  • Connects to specified BLE heart rate monitors.
  • Retrieves heart rate data and logs it.
  • Easy configuration via JSON file.
  • Dockerized for consistent deployment across environments.

Prerequisites

  • Docker and Docker Compose
  • Go 1.22 or later
  • A BLE heart rate monitor (e.g., Polar H10)

Installation

Docker
  1. Clone the repository:

    git clone https://github.com/yourusername/hr-monitor-ble-server.git
    cd hr-monitor-ble-server
    
  2. Build and run the Docker container:

    docker-compose up --build
    
Local Setup (Without Docker)
  1. Clone the repository:

    git clone https://github.com/yourusername/hr-monitor-ble-server.git
    cd hr-monitor-ble-server
    
  2. Install dependencies:

    go mod tidy
    
  3. Build and run the application:

    go build -o hr-monitor-ble-server
    ./hr-monitor-ble-server
    

Configuration

Configuration is managed through the config.json file. Here is an example configuration:

{
    "TargetDeviceName": "Polar H10",
    "TargetDeviceMAC": "XX:XX:XX:XX:XX:XX",
    "ScanTimeout": 60
}

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
pkg

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL