Code Monkey home page Code Monkey logo

stopwatch2txt's Introduction

Stopwatch2Txt

Keywords:
stopwatch to text
stopwatch to txt
for streaming
stopwatch output text file

A simple stopwatch application that writes timestamp to txt file (usage example: OBS streaming).

  • It requires Python3
    (but, imo, it would be simple to make this work with Python2, if you can modify the script a tiny bit.
    e.g. print('Hello') -> print 'hello'
  • It works for macOS.
    I did not test for linux environment yet but I guess it would work. Please let me know through issue tracker.

preview This is an example of using Stopwatch2Txt. (OBS text capture : 'Read text from file' linked to '~/Stopwatch2Txt/stopwatch.txt')

How to use?

  1. Download the whole repository using git clone https://github.com/dqgthb/Stopwatch2Txt.git

  2. Go inside the directory. Find 'secs.txt'.

  3. Replace (manually) the first line of 'secs.txt' with your preferred starting seconds (in integer). To initialize the stopwatch, this should be '0'.
    However, if you want a very specific starting point such as '01:05:12', type '3912' (= 1 * 3600 + 5 * 60 + 12).

  4. Run the python code 'stopwatch.py' by typing the following command inside the terminal:

    python3 stopwatch.py
  5. If you want to pause the stopwatch, press "Ctrl c".

  6. If you want to resume the stopwatch, type python3 stopwatch.py again in the terminal.

  7. If you want to reset the stopwatch, press "Ctrl c" and replace the first line of 'secs.txt' to 0. (as already explained above).

  8. That's it! If you check the 'stopwatch.txt' file, you will see that the file is constantly being updated. You can use this wherever you want. e.g. OBS text source

stopwatch2txt's People

Contributors

dkslck avatar dqmcgll avatar

Stargazers

 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.