Duet3D Logo Duet3D
    • Tags
    • Documentation
    • Order
    • Register
    • Login

    Timelapses, are they possible?

    Scheduled Pinned Locked Moved
    Third-party software
    4
    44
    2.6k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • resamundefined
      resam
      last edited by

      try with sudo python3 ....

      python is the old version - python3 is the new one (which you need).

      A Former User? 1 Reply Last reply Reply Quote 0
      • A Former User?
        A Former User @resam
        last edited by A Former User

        This post is deleted!
        1 Reply Last reply Reply Quote 0
        • resamundefined
          resam
          last edited by

          go and run: python -V and then python3 -V

          You will probably see that the first one returns 2.7.something and the other one 3.something.else.
          We need 3.something for the timelapse script to work.

          You can also avoid this monkey dance by simply calling the timelapse script itself:
          sudo /home/pi/timelapse.py timelapses/ 192.168.1.7 http://192.1.168.13:8080/?action=snapshot

          A Former User? 2 Replies Last reply Reply Quote 0
          • A Former User?
            A Former User @resam
            last edited by

            @resam said in Timelapses, are they possible?:

            go and run: python -V and then python3 -V

            You will probably see that the first one returns 2.7.something and the other one 3.something.else.
            We need 3.something for the timelapse script to work.

            You can also avoid this monkey dance by simply calling the timelapse script itself:
            sudo /home/pi/timelapse.py timelapses/ 192.168.1.7 http://192.1.168.13:8080/?action=snapshot

            uh ok....I'm not a Linux expert....I've change from python to python3 and now no error appear logging into....I've started a trial print to see if all works...I'll let you know in few minutes!

            1 Reply Last reply Reply Quote 0
            • A Former User?
              A Former User @resam
              last edited by

              @resam said in Timelapses, are they possible?:

              go and run: python -V and then python3 -V

              You will probably see that the first one returns 2.7.something and the other one 3.something.else.
              We need 3.something for the timelapse script to work.

              You can also avoid this monkey dance by simply calling the timelapse script itself:
              sudo /home/pi/timelapse.py timelapses/ 192.168.1.7 http://192.1.168.13:8080/?action=snapshot

              it's printing but I don't see images going into the folder as long as layers changes

              1 Reply Last reply Reply Quote 0
              • resamundefined
                resam
                last edited by

                just start the script in the interactive console (putty) directly. It should print a few log lines so we can see what is happening.

                A Former User? 1 Reply Last reply Reply Quote 0
                • A Former User?
                  A Former User @resam
                  last edited by

                  @resam said in Timelapses, are they possible?:

                  just start the script in the interactive console (putty) directly. It should print a few log lines so we can see what is happening.

                  dde198c5-4298-45a4-ab05-5d539bdbc6db-image.png

                  1 Reply Last reply Reply Quote 0
                  • resamundefined
                    resam
                    last edited by

                    Did you enable Telnet in your printer config?

                    A Former User? 1 Reply Last reply Reply Quote 0
                    • A Former User?
                      A Former User @resam
                      last edited by A Former User

                      @resam said in Timelapses, are they possible?:

                      Did you enable Telnet in your printer config?

                      yes
                      a9c36ca6-4089-4013-ab98-eb107a8c3584-image.png

                      1 Reply Last reply Reply Quote 0
                      • resamundefined
                        resam
                        last edited by

                        ok - that looks right. However it is failing to send commands to the printer...
                        Does the error message repeat after 15-20 seconds?

                        A Former User? 1 Reply Last reply Reply Quote 0
                        • A Former User?
                          A Former User @resam
                          last edited by

                          @resam said in Timelapses, are they possible?:

                          ok - that looks right. However it is failing to send commands to the printer...
                          Does the error message repeat after 15-20 seconds?

                          yes it does

                          1 Reply Last reply Reply Quote 0
                          • resamundefined
                            resam
                            last edited by

                            do you have the timelapse python script running multiple times?
                            reboot the pi and make sure to not start it more than once.
                            it's probably easier for debugging to remove the autostart and enter the command into putty directly.

                            A Former User? 2 Replies Last reply Reply Quote 0
                            • A Former User?
                              A Former User @resam
                              last edited by

                              @resam said in Timelapses, are they possible?:

                              do you have the timelapse python script running multiple times?
                              reboot the pi and make sure to not start it more than once.
                              it's probably easier for debugging to remove the autostart and enter the command into putty directly.

                              yes you're right it's running twice I'm afraid, once for the autostart and maybe the second when I log in?

                              1 Reply Last reply Reply Quote 0
                              • resamundefined
                                resam
                                last edited by

                                if you used /etc/profile or .bashrc, then yes - this will likely cause multiple starts.

                                A Former User? 1 Reply Last reply Reply Quote 0
                                • A Former User?
                                  A Former User @resam
                                  last edited by A Former User

                                  @resam said in Timelapses, are they possible?:

                                  if you used /etc/profile or .bashrc, then yes - this will likely cause multiple starts.

                                  ok, I leaved from profile ad rebooted pi

                                  0a16fe2c-d1cd-4e3e-9a6b-c8c951cf6c8a-image.png

                                  as before

                                  Have you got an idea about the problem?

                                  1 Reply Last reply Reply Quote 0
                                  • A Former User?
                                    A Former User @resam
                                    last edited by

                                    @resam said in Timelapses, are they possible?:

                                    do you have the timelapse python script running multiple times?
                                    reboot the pi and make sure to not start it more than once.
                                    it's probably easier for debugging to remove the autostart and enter the command into putty directly.

                                    Good morning....I've tried to understand what could be the problem reading the script but Phyton is over my knowledge...could you help me? Thanks!

                                    1 Reply Last reply Reply Quote 0
                                    • A Former User?
                                      A Former User
                                      last edited by

                                      I've tried to use this as well: https://dr-b.io/post/Duet-3D-Printer-TimeLapse

                                      But it doesn't work for me because of a parsing error with the JSON given by the Duet webserver I suppose...I can't contact the author of the procedure (my questions haven't been moderated yet)....does anyone use this? In case not does anyone know if in the latest version of the Duet webserver somehing has been changed in the JSON mentioned in the above link?

                                      Thanks
                                      Andrea

                                      1 Reply Last reply Reply Quote 0
                                      • jay_s_ukundefined
                                        jay_s_uk
                                        last edited by

                                        have you tried Danal's version?
                                        https://github.com/DanalEstes/DuetLapse

                                        Owns various duet boards and is the main wiki maintainer for the Teamgloomy LPC/STM32 port of RRF. Assume I'm running whatever the latest beta/stable build is

                                        A Former User? 1 Reply Last reply Reply Quote 0
                                        • A Former User?
                                          A Former User @jay_s_uk
                                          last edited by

                                          @jay_s_uk said in Timelapses, are they possible?:

                                          have you tried Danal's version?
                                          https://github.com/DanalEstes/DuetLapse

                                          no, not yet

                                          1 Reply Last reply Reply Quote 0
                                          • jay_s_ukundefined
                                            jay_s_uk
                                            last edited by

                                            That handles both versions of responses from RRF

                                            Owns various duet boards and is the main wiki maintainer for the Teamgloomy LPC/STM32 port of RRF. Assume I'm running whatever the latest beta/stable build is

                                            A Former User? 2 Replies Last reply Reply Quote 0
                                            • First post
                                              Last post
                                            Unless otherwise noted, all forum content is licensed under CC-BY-SA