Skip to content

limelight-recorder#6

Open
emmr253 wants to merge 6 commits intomasterfrom
gb-limelight-recorder
Open

limelight-recorder#6
emmr253 wants to merge 6 commits intomasterfrom
gb-limelight-recorder

Conversation

@emmr253
Copy link
Copy Markdown
Contributor

@emmr253 emmr253 commented Dec 10, 2025

No description provided.

Comment thread apps/gb-limelight-recorder/frontend/App.tsx Outdated
Comment thread apps/gb-limelight-recorder/frontend/App.tsx Outdated

useEffect(() => {
fetch("http://localhost:5000/")
.then((res) => res.text())

Check failure

Code scanning / ESLint

Require any function or method that returns a Promise to be marked async Error

Functions that return promises must be async.
fetch("http://localhost:5000/")
.then((res) => res.text())
.then(setMessage)
.catch((e) => {

Check failure

Code scanning / ESLint

Enforce typing arguments in Promise rejection callbacks as `unknown` Error

Prefer the safe : unknown for a catch callback variable.
Comment on lines +21 to +30
const interval = setInterval(async () => {
try {
const res = await fetch("http://localhost:4590/");
const text = await res.text();
setMessage(text);
setRobotOnline(text.includes("Welcome"));
} catch {
setRobotOnline(false);
}
}, 2000);

Check failure

Code scanning / ESLint

Disallow Promises in places not designed to handle them Error

Promise returned in function argument where a void return was expected.
Comment thread apps/gb-limelight-recorder/backend/RecordingProcess.ts Dismissed

const app = express();
const port = 5000;
app.use(cors());

Check warning

Code scanning / ESLint

Disallow calling a value with type `any` Warning

Unsafe call of a(n) error type typed value.
import "./App.css";
import LimelightTable from "./LimelightTable";

function App() {

Check warning

Code scanning / ESLint

Require explicit return and argument types on exported functions' and classes' public class methods Warning

Missing return type on function.
import './index.css'
import App from './App'

createRoot(document.getElementById('root')!).render(

Check warning

Code scanning / ESLint

Disallow non-null assertions using the `!` postfix operator Warning

Forbidden non-null assertion.
import './index.css'
import App from './App'

createRoot(document.getElementById('root')!).render(

Check warning

Code scanning / ESLint

Disallow non-null assertions using the `!` postfix operator Warning

Forbidden non-null assertion.
@Kovler10 Kovler10 changed the title doesn't run but good enough for now limelight-recorder Dec 14, 2025
Copy link
Copy Markdown
Contributor

@YoniKiriaty YoniKiriaty left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice

Comment thread apps/gb-limelight-recorder/backend/server.ts Outdated
Comment on lines +18 to +28
function createSessionFolder(): string {
if (!fs.existsSync(USB_ROOT)) {
throw new Error("USB drive not connected");
}

const timestamp = new Date().toISOString().replace(/[:.]/g, "-");
const sessionDir = path.join(USB_ROOT, `recording-${timestamp}`);

fs.mkdirSync(sessionDir, { recursive: true });
return sessionDir;
}
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

consider moving this too

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

that goes with the whole finding where to save videos thing

Comment thread apps/gb-limelight-recorder/backend/server.ts Outdated
Comment thread apps/gb-limelight-recorder/backend/server.ts Outdated
Comment thread apps/gb-limelight-recorder/backend/server.ts Outdated
Comment thread apps/gb-limelight-recorder/frontend/src/LimelightTable.tsx Outdated
Comment thread apps/gb-limelight-recorder/frontend/src/LimelightTable.tsx
Comment thread apps/gb-limelight-recorder/frontend/src/LimelightTable.tsx
Comment thread apps/gb-limelight-recorder/frontend/src/LimelightTable.tsx
Comment thread apps/gb-limelight-recorder/frontend/src/LimelightTable.tsx Outdated
@YoniKiriaty YoniKiriaty added the project-init A PR to start off a project label Dec 24, 2025
Comment thread apps/gb-limelight-recorder/backend/RecordingProcess.ts
Comment thread apps/gb-limelight-recorder/backend/RecordingProcess.ts
Comment thread apps/gb-limelight-recorder/backend/PingRobot.ts Outdated
Comment thread apps/gb-limelight-recorder/backend/RecordingProcess.ts Outdated
Comment thread apps/gb-limelight-recorder/backend/RecordingProcess.ts
Comment thread apps/gb-limelight-recorder/backend/server.ts Outdated
Comment thread apps/gb-limelight-recorder/backend/server.ts Outdated
Comment thread apps/gb-limelight-recorder/frontend/src/LimelightTable.tsx
Comment thread apps/gb-limelight-recorder/frontend/src/LimelightTable.tsx Outdated
Comment thread apps/gb-limelight-recorder/frontend/src/LimelightTable.tsx Outdated
Comment thread apps/gb-limelight-recorder/frontend/src/LimelightTable.tsx Outdated
Comment thread apps/gb-limelight-recorder/backend/RecordingProcess.ts Outdated
Comment thread apps/gb-limelight-recorder/backend/PingRobot.ts Outdated
Comment on lines +7 to +21
class RecordingProcess {
public ffmpegProcess: ChildProcess | null = null;
public cameraUrl: string;
public outputFile: string;

// --- CONSTRUCTOR ---
public constructor(cameraUrl: string, outputFile: string) {
const time: Date = new Date();
this.outputFile = outputFile
+ "/timestamp_"
+ time.getHours()
+ ":"
+ time.getMinutes()
+ ".mp4";

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

don't use classes if u can (backed by yoni)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can't

Comment thread apps/gb-limelight-recorder/backend/RecordingProcess.ts
Comment thread apps/gb-limelight-recorder/backend/RecordingProcess.ts
Comment thread apps/gb-limelight-recorder/backend/build.ts
Comment thread apps/gb-limelight-recorder/backend/server.ts
Comment thread apps/gb-limelight-recorder/frontend/src/App.tsx Outdated
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

project-init A PR to start off a project

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants