GithubHelp home page GithubHelp logo

column01 / ptzcamsync Goto Github PK

View Code? Open in Web Editor NEW
3.0 1.0 0.0 78 KB

PTZ Optics Camera Controller and scene switcher for OBS Studio

License: GNU General Public License v3.0

Python 100.00%
ptz-optics-camera obs-studio obs-websocket obs-websocket-py ptzoptics ptz ptz-control

ptzcamsync's Introduction

Hello, My name is Colin.

I'm a software developer who specializes in Python development. Below you will see a few pinned repositories, these are my favourite projects I've worked on and are good examples of the code I am capable of writing.

Projects I am working on/maintain

  • mark2 (maintainer) - Minecraft server wrapper written in Python 3 using Twisted

Favourite Project

My favourite project is my discord moderation bot that uses class loading to allow a user to make the bot their own. Simply adding scripts to a folder with some command or event handler classes allows the user to add to the bot without even restarting the program!

The event handlers are added to the main script using Python "reflection" and some clever techniques that enable my code to be an order of magnitude smaller compared to implementing each event function. It takes some info provided by the handler class and creates a function in the bot using a template renamed on_<event>. Effectively ~40 lines of code can handle what could have been upwards of thousands of lines and is completely future-proof. When new events are added, I don't even need to write any new code to handle their addition.

ptzcamsync's People

Contributors

column01 avatar dependabot[bot] avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

ptzcamsync's Issues

Camera stops responding after long idle period

I believe the sockets close after sitting idle for too long without sending data

Potential fixes:

  • Add logic to reconnect before sending messages to the camera
  • Add a keep-alive thread to send query commands periodically to ensure it stays connected

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.