TyroneTime is a Next.js application designed to display a real-time millisecond-precision clock and a simulated RTSP client connection count. It's intended for use as an offline, local network tool for testing and monitoring systems. All configuration is handled locally via a config.json file.
- Real-time Clock Display: Shows the current time with millisecond precision.
- Connection Count: Displays a simulated number of currently connected RTSP clients.
- Local Configuration: All settings are managed via a
config.jsonfile in the project root. - Offline First: Designed to run entirely on a local network without requiring internet access for its core features.
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
- Node.js: You'll need Node.js installed on your system. Version 18.x or later is recommended. You can download it from nodejs.org. npm (Node Package Manager) is included with Node.js.
- Git: Required to clone the repository. You can download it from git-scm.com.
-
Clone the Repository: Open your terminal or command prompt and clone the repository from GitHub:
git clone https://github.com/tyronechrisharris/studio.git
-
Navigate to the Project Directory: Change into the newly cloned project folder:
cd studio(Or whatever you named the repository folder.)
-
Install Dependencies: Install all the necessary project dependencies using npm:
npm install
(Alternatively, if you prefer Yarn:
yarn install)
You have two main ways to run TyroneTime:
This mode is suitable for making changes to the code and seeing them live.
- Run the development server:
(Alternatively, if you prefer Yarn:
npm run dev
yarn dev) - Open your web browser and navigate to: http://localhost:9002
This mode runs the optimized, built version of the application. Launch scripts are provided for convenience.
For macOS and Linux:
- Make the launch script executable (you only need to do this once):
chmod +x launch.sh
- Run the launch script:
./launch.sh
For Windows:
- Run the launch batch file:
(Or double-click
.\launch.batlaunch.batin File Explorer)
The launch scripts will:
- Install necessary production dependencies.
- Build the application (if not already built).
- Start the production server on http://localhost:9002.
Press Ctrl+C in the terminal to stop the server.
TyroneTime stores its server configuration settings in a config.json file located in the root of the project. You can modify this file directly to change settings, or use the "Configure" page within the application UI, which will then update config.json.
The default config.json includes settings for:
- Viewer Username & Password
- Server IP Address & Port
- Video Codec & Resolution
- Frames Per Second (FPS)
- H.264 I-Frame Interval (if H.264 is selected)
- Dashboard (
/): Displays the real-time clock and connection counter. - Configure (
/configure): Allows you to modify the server settings which are saved toconfig.json.