Giter Site home page Giter Site logo

openipc / osd Goto Github PK

View Code? Open in Web Editor NEW
3.0 5.0 3.0 788 KB

An all-in-one daemon that exposes an HTTP frontend to adjust settings, manage OSD regions and stream AV content on supported IP cameras

Home Page: https://openipc.org

License: GNU General Public License v3.0

Makefile 0.02% C 99.94% Shell 0.04%
fpv openipc osd urllc

osd's Introduction

OpenIPC logo

OSD

An all-in-one daemon that exposes an HTTP frontend to

  • adjust settings ;
  • manage OSD regions ;
  • stream AV content on supported IP cameras

Installation

Example of a quick test setup for SigmaStar processors:

curl -s -L https://github.com/OpenIPC/osd/releases/download/latest/osd-star -O
chmod 755 osd-star

The Buildroot package is ready; the resulting file will be called "osd_server":

make BOARD=ssc338q_lite br-osd-openipc
make BOARD=gk7205v200_lite br-osd-openipc
make BOARD=hi3516ev300_lite br-osd-openipc

Examples

Parameters for each region can be passed in one or many calls:

curl "192.168.1.17:9000/api/osd/0?font=comic&size=32.0&text=Frontdoor"
curl 192.168.1.17:9000/api/osd/0?posy=72

N.B. Ampersands require the address to be enclosed with double quotes under Windows or to be escaped with a backslash under Unix OSes

Supported fonts (sourced from /usr/share/fonts/truetype/) can render Unicode characters:

curl 192.168.1.17:9000/api/osd/0?text=Entrée

Empty strings are used to clear the regions:

curl 192.168.1.17:9000/api/osd/1?text=

Specifiers starting with a dollar sign are used to represent real-time statistics:

curl 192.168.1.17:9000/api/osd/1?text=$B%20C:$C%20M:$M

N.B. Spaces have to be escaped with %20 in curl URL syntaxes

Showing the time and customizing the time format is done this way:

curl 192.168.1.17:9000/api/time?fmt=%25Y/%25m/%25d%20%25H:%25M:%25S
curl 192.168.1.17:9000/api/osd/2?text=$t&posy=120

N.B. Percent signs have to be escaped with %25 in curl URL syntaxes

UTC date and time can be set using Unix timestamps:

curl 192.168.1.17:9000/api/time?ts=1712320920

Bitmap files (.bmp) can be uploaded to a region using this command:

curl -F data=@.\Desktop\myimage.bmp 192.168.1.17:9000/api/osd/3

N.B. curl already implies "-X POST" when passing a file with "-F"

Technical support and donations

Please support our project with donations or orders for development or maintenance. Thank you!

osd's People

Contributors

wberube avatar flyrouter avatar viktorxda avatar

Stargazers

MarioFPV avatar  avatar Luis  avatar

Watchers

Dmitry Ilyin avatar Dmitry Ermakov avatar  avatar  avatar MarioFPV 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.