Giter Club home page Giter Club logo

devices's Introduction

Remote device management tools

A local network device management system built using FastAPI, React, and Rust.

Currently only sends Wake-on-LAN packets, though I'd love to add more features in the future.

My personal use case is to wake up my home server when I'm away from home (or even just in another room). I run the web frontend on a Raspberry Pi and the listener on my server. Both are connected to the same Tailscale network, so I can access the web frontend from anywhere.

Overview

This system is composed of four main components:

  • FastAPI server: Serves the API for serving device information and sending Wake-on-LAN requests.
  • React frontend: A user interface for displaying the list of devices and triggering Wake-on-LAN requests.
  • Rust listener: Listens for multicast messages and updates the SQLite database with device information.
  • Rust sender: Sends multicast messages with device information (IP, MAC, and hostname) at a regular interval.
sequenceDiagram
    box Browser
    participant UI as User interface
    end
    box Raspberry Pi
    participant API as FastAPI server
    participant DB as SQLite database
    participant Listener as Rust listener
    end
    box Remote device
    participant Sender as Rust sender
    end

    UI->>UI: Periodic refresh (1 minute)
    UI->>API: GET /devices
    API->>DB: SELECT * FROM devices
    DB-->>API: List of devices
    API-->>UI: JSON devices list

    UI->>UI: Click "Wake On LAN" button
    UI->>API: POST /wake-on-lan (MAC address)
    API->>API: Send Wake-on-LAN packet
    API-->>UI: Wake-on-LAN status

    Sender->>Listener: Multicast message (IP, MAC, Hostname)
    Listener->>DB: Update device info in database
    DB-->>Listener: Update confirmation
Loading

devices's People

Contributors

t-ob 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.