Skip to content

Commit

Permalink
improved text for camera view #1
Browse files Browse the repository at this point in the history
  • Loading branch information
hcwinsemius committed Jan 15, 2025
1 parent b4f34bc commit 0e2ecdc
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions dashboard/src/views/cameraAim.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@ const CameraAim = () => {
}
} catch (error) {
console.error("Error or disabling PiCamera:", error);
setError('Failed to enable/disable PiCamera.');
setIsToggledOn(false);
setError('Failed to enable/disable PiCamera. Try to refresh this page to try again.');
} finally {
console.log("Setting load status to false")
setIsLoading(false);
Expand Down Expand Up @@ -96,7 +97,10 @@ const CameraAim = () => {

return (
<>
<h1>NodeORC configuration</h1>
<h1>Aim your camera</h1>
While you are in the field, you need to carefully aim your camera to as much water as closeby as possible.
Use this view to either load the IP-camera stream, which usually reports on a rtsp or http location and port,
or (if used) switch on the Raspberrypi camera.
{isLoading && <p>Loading video feed...</p>}
{error ? (
<p className="text-danger">{error}</p>
Expand Down

0 comments on commit 0e2ecdc

Please sign in to comment.