No internet connection
  1. Home
  2. Technical Support

Rename the Capture Screenshot

By a7673 @a7673
    2024-04-06 03:40:46.486Zassigned to
    • @david

    This request would be first of its type.
    I want to the save the file to be Saved with just date and time. Example: "Screenshot_04012024_0825"
    and remove the appending of "TinyPilot" in the file name.

    Can you please point me to the code in the file where I can make changes?

    Thanks in Advance.

    Solved in post #2, click to view
    • 3 replies
    1. David @david2024-04-08 11:20:31.523Z2024-04-08 18:51:40.771Z

      Hi @a7673, thanks for your question!

      To edit the output filename of screenshots, SSH into your TinyPilot and edit line 393 of /opt/tinypilot/app/templates/custom-elements/menu-bar.html:

      "TinyPilot-" + new Date().toISOString() + ".jpg";
      

      You can edit this line to use whichever format you like.

      Updating your TinyPilot's software will overwrite this change, so you'll need to reapply the edit after every update.

      I hope that helps!

      Reply1 LikeSolution
      1. A
        In reply toa7673:
        a7673 @a7673
          2024-04-08 15:28:57.765Z2024-04-08 18:35:52.127Z

          Thank you.

          @david Which file are you referring to make the mentioned changes in?

          1. David @david2024-04-08 18:52:25.755Z

            I missed the actual filename, sorry about that! I've updated my original comment.