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

    DuetLapse available for Alpha testing

    Scheduled Pinned Locked Moved
    Third-party software
    26
    239
    23.1k
    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.
    • arhiundefined
      arhi @Danal
      last edited by arhi

      @Danal hahahahahhaha

      I have to say, I learned to "take a walk" 🙂 .. it is the most effective one, 3d printers help big time here as I stop go fiddle with printer, return fresh :), kids arrived few years ago, they help even more 😄 ..

      print("here") is my favorite debugging tool in "embedded" systems that I do as a hobby, on my day job it's rather useless 😞 so I never do it. On the other hand my daily job debugging in 90% cases the best I can do is crash a server and then go trough core, or follow the JAM log and go trough core. In the rare 10% of cases gdb connect to live server helps (my daily job is a verification and fixing of bugs in mysql server, I don't work on new features). TBH I'd love to use some good IDE for this but it's not that simple, I for e.g. need to debug a problem on 20+ cpu machine with a terabyte of RAM, big O will supply that machine in our lab in Norway for the duration of the work, or our lab in murica or ... but no way I will have that box at home :(. It might be possible that VS these days knows how to go through 2 layers of VPN and connect to a remote box trough access box and do this, but I have to say I have no clue how to set that up and since gdb works, even over shady network from screen I bite the bullet and do it that way. It's not too bad when you get used to it, not as easy as gui but works.

      1 Reply Last reply Reply Quote 0
      • zaptaundefined
        zapta @arhi
        last edited by

        @arhi said in DuetLapse available for Alpha testing:

        u talking about +++ situation?

        Not related to +++. It's a trick question. Here is a hint: how the semantic of ' x(y) ' can be different than the semantic of ' x (y) ' ?

        (the single quotes are not part of the code).

        arhiundefined 1 Reply Last reply Reply Quote 0
        • arhiundefined
          arhi @zapta
          last edited by

          @zapta does sound vaguely familiar but no clue really. I assume it is most likely something obvious but my brain don't do tricks today 😞 and I don't think it's fair I go duckgogo-ing now to find a solution 😄

          zaptaundefined 1 Reply Last reply Reply Quote 0
          • luckyflyerundefined
            luckyflyer
            last edited by luckyflyer

            @Danal I've got the numpy required error on my Duet pi, you said in a previous post that "I've updated the script to show the required commands, if numpy is not found." I'm on your Duetlapse github wiki, usage section. I don't see any commands for if numpy not found. Where do I find them?

            Also I've loaded everything onto a standalone pi and everything works except there is no video. I'm using a microsoft usb camera that works with motion eyes, I have the script set for usb camera. I read where someone else had this problem but was unable to follow what they did to correct, cuz I'm a noob with linux, would you please walk me through what I need to do to get video?
            I'm not going to use the stand alone pi if I can get the Duet pi working but ask because I figure if its not working on the stand alone pi then it won't work on the Duet pi.
            Tia

            arhiundefined Danalundefined 2 Replies Last reply Reply Quote 0
            • arhiundefined
              arhi @luckyflyer
              last edited by arhi

              @luckyflyer this worked for me

              apt-get install ffmpeg fswebcam wget
              apt-get install libatlas-base-dev
              apt-get install python3-numpy python-numpy
              
              1 Reply Last reply Reply Quote 0
              • Danalundefined
                Danal @luckyflyer
                last edited by

                @luckyflyer said in DuetLapse available for Alpha testing:

                @Danal I've got the numpy required error on my Duet pi, you said in a previous post that "I've updated the script to show the required commands, if numpy is not found." I'm on your Duetlapse github wiki, usage section. I don't see any commands for if numpy not found. Where do I find them?

                Also I've loaded everything onto a standalone pi and everything works except there is no video. I'm using a microsoft usb camera that works with motion eyes, I have the script set for usb camera. I read where someone else had this problem but was unable to follow what they did to correct, cuz I'm a noob with linux, would you please walk me through what I need to do to get video?
                I'm not going to use the stand alone pi if I can get the Duet pi working but ask because I figure if its not working on the stand alone pi then it won't work on the Duet pi.
                Tia

                ahri's commands should work.

                I was referring to having the script tell you that, instead of half a page of stack trace and a "numpy not found". I'll check and see if I did that or not...

                Delta / Kossel printer fanatic

                1 Reply Last reply Reply Quote 0
                • zaptaundefined
                  zapta @arhi
                  last edited by zapta

                  @arhi,

                  #define x(y)    y
                  #define x (y)   y
                  

                  One is a macro with an argument and the other is a macro with zero arguments. It's a trick question. 😉

                  1 Reply Last reply Reply Quote 2
                  • luckyflyerundefined
                    luckyflyer
                    last edited by luckyflyer

                    I was referring to having the script tell you that, instead of half a page of stack trace and a "numpy not found". I'll check and see if I did that or not...

                    Sorry for taking so long, duty called.
                    So what I'm getting now is this on all 3 of arhi's commands.
                    I cd to DuetLapse and tried again but got the same error.

                    E: Could not open lock file /var/lib/dpkg/lock-frontend - open (13: Permission denied)
                    E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), are you root?
                    
                    1 Reply Last reply Reply Quote 0
                    • luckyflyerundefined
                      luckyflyer
                      last edited by

                      I think I fixed it by putting sudo in front of all 3 commands, testing now.

                      1 Reply Last reply Reply Quote 0
                      • luckyflyerundefined
                        luckyflyer
                        last edited by

                        I ran a small 30 layer print, played the file with vlc player and its just a blank screen. Of the three files only "sudo apt-get install libatlas-base-dev" was not present on the pi but I still get a blank screen. Are any of the 4 usb ports ok to use or just a specific one?

                        1 Reply Last reply Reply Quote 0
                        • Danalundefined
                          Danal
                          last edited by

                          Any port. If you haven't run DuetLapse again, and have not rebooted, all the stills are in the /tmp directory. You can look at them individually, and/or re-assemble them into a video.

                          Delta / Kossel printer fanatic

                          1 Reply Last reply Reply Quote 0
                          • luckyflyerundefined
                            luckyflyer
                            last edited by luckyflyer

                            All of the stills are in the temp directory and look good on my standalone pi. How does one reassemble the stills into a video?

                            Also on my Duet pi I'm still getting this,

                            Python Library Module 'numpy' is required.
                            Obtain via 'sudo python3 -m pip install numpy'
                            Obtain pip via 'sudo apt install python-pip'
                            

                            When I run #2 I get,

                            /usr/bin/python3: No module named pip
                            

                            When I run #3 I get

                            python-pip is already the newest version (18.1-5+rpt1).
                            

                            Seems like I'm very close to it working but not there yet.

                            arhiundefined 1 Reply Last reply Reply Quote 0
                            • arhiundefined
                              arhi @luckyflyer
                              last edited by

                              @luckyflyer said in DuetLapse available for Alpha testing:

                              . How does one reassemble the stills into a video

                              use ffmpeg

                              ffmpeg -r 12 -i /tmp/DuetLapse/IMG%08d.jpeg -vcodec libx264 -y -v 8 finalvideo.mp4

                              1 Reply Last reply Reply Quote 0
                              • luckyflyerundefined
                                luckyflyer
                                last edited by

                                Thanks, just enter as you posted on the command line?

                                1 Reply Last reply Reply Quote 0
                                • luckyflyerundefined
                                  luckyflyer
                                  last edited by luckyflyer

                                  I c&p "ffmpeg -r 12 -i /tmp/DuetLapse/IMG%08d.jpeg -vcodec libx264 -y -v 8 finalvideo.mp4"
                                  into terminal, Now I have finalvideo.mp4 in /home/pi. But it's still the same, when I play it on the pi with vlc the video is blank.
                                  Is it possible to export the video to windows and try it there?

                                  arhiundefined 1 Reply Last reply Reply Quote 0
                                  • arhiundefined
                                    arhi @luckyflyer
                                    last edited by

                                    @luckyflyer did you look at the images in /tmp/DuetLapse ? you can copy those to windows and check if the images are ok

                                    1 Reply Last reply Reply Quote 0
                                    • luckyflyerundefined
                                      luckyflyer
                                      last edited by

                                      I looked at them on the pi and they look good.

                                      1 Reply Last reply Reply Quote 0
                                      • luckyflyerundefined
                                        luckyflyer
                                        last edited by luckyflyer

                                        I started over from scratch with the latest Duet image, burnt it to a sd card, did all of the updates, reinstalled all of my .g files and macros. I then reinstalled Duet lapse only this time I installed all of the corequisite items first and then all of the other files. It had an error at first, rebooted and now it seems to be working as it should. The jpg's are in temp, when the print is finished I'll try vlc for a movie. Wheew!

                                        1 Reply Last reply Reply Quote 0
                                        • luckyflyerundefined
                                          luckyflyer
                                          last edited by luckyflyer

                                          Downloaded vlc to Duet pi but when I playback the video is blank, the vlc hazard cone stays on the screen. Is there a setting in ffmpeg that needs to be changed?
                                          Is there a better/simpler way to transfer files from pi to pc than samba?

                                          1 Reply Last reply Reply Quote 0
                                          • arhiundefined
                                            arhi
                                            last edited by

                                            samba is simplest way IMHO

                                            winscp works great too, especially if you want to access temp directory directly

                                            those ffmpeg parameters normally work, did you check if the images are ok? If the images are not ok then ffmpeg can't create the video. Copy the images to the PC and check them out if they are ok.

                                            luckyflyerundefined 1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post
                                            Unless otherwise noted, all forum content is licensed under CC-BY-SA