Skip to content

Commit

Permalink
improve directory structure
Browse files Browse the repository at this point in the history
  • Loading branch information
adnanwahab committed Sep 20, 2024
1 parent 069d9a9 commit 5e620af
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion services/homelab-status-page/src/handlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -1235,7 +1235,7 @@ func SaveBase6FromClientSendServer(c echo.Context) error {
//
//
timestamp := time.Now().Format("20060102_150405") // e.g., 20240919_134500
imageFileName := fmt.Sprintf("webcam_%s.jpg", timestamp)
imageFileName := fmt.Sprintf("%s.jpg", timestamp)

imageFilePath := filepath.Join(outputPath, imageFileName)
err = ioutil.WriteFile(imageFilePath, imgBytes, 0644)
Expand Down
Binary file modified services/homelab-status-page/tmp/main
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,11 @@
function refreshImage() {
const imageElement = document.getElementById("liveImage");
const timestamp = new Date().getTime(); // Current timestamp to prevent caching
imageElement.src = `https://hashirama.blog/sensor_data/latest-webcam?t=${timestamp}`;
imageElement.src = `http://hashirama.blog/sensor_data/latest-webcam?t=${timestamp}`;

const imageMutateElement = document.getElementById("jupyter-webcam-image");

imageMutateElement.src = `https://hashrama.blog/sensor_data/latest-mutated-webcam${timestamp}`;
imageMutateElement.src = `http://hashrama.blog/sensor_data/latest-mutated-webcam${timestamp}`;
}

// Refresh the image every 50 milliseconds (20 frames per second)
Expand Down

0 comments on commit 5e620af

Please sign in to comment.