My imgcomp motion triggered timelapses program

Sdílet
Vložit
  • čas přidán 23. 06. 2020
  • A program for Raspberrry Pi that takes pictures every second and keeps only those images with interesting changes. But what makes it fun is the part for browsing through the captured images.
    woodgears.ca/imgcomp
    github.com/Matthias-Wandel/im...
  • Jak na to + styl

Komentáře • 208

  • @jameskelly1680
    @jameskelly1680 Před 4 lety +41

    "We had a problem with a Matthias in the workshop. He'd wander around and eat all of our snacks. We set up a timelapse camera to see what he was doing. So now we want to set up a Matthias trap. How close can we put the tablesaw to the workbench, and he can still fit through the crack?"

  • @jum5238
    @jum5238 Před 4 lety +9

    I know someone who did this a few decades ago, and used it as the basis for logging his airplane construction. The FAA accepted it as documentation that he built 51+% of it. I believe he used perl as the basis for running his camera/recording feature. His cat was a frequent late-night "star" in his videos. Well done sir! Well done!

  • @jachymwiaczka4271
    @jachymwiaczka4271 Před 4 lety +2

    As someone who has little knowledge about programming and such... I have to say Im very impressed by the efficiency of the program. Everything that you would need in an everyday scenario is in view and reach. Big Fan.

  • @willierants5880
    @willierants5880 Před 4 lety +4

    Thanks Matthias! Loved the vid. I know these types of video's aren't popular with your entire viewer based, but I find it fascinating and instructional. I also think your articles are very well written.

  • @toothrobber8076
    @toothrobber8076 Před 4 lety +1

    I installed your software on my Pi and have been using it to track my work in the shop. It is very handy as a reference. Thank you very much

  • @abdallahmanasrah2317
    @abdallahmanasrah2317 Před 4 lety +6

    That is a solid piece of software, better than my DVR software for sure, thumbs up all the way

  • @TheBigBigBlues
    @TheBigBigBlues Před 4 lety +1

    Thank you for making this video and for making the software available to us. I’ve been waiting for you to talk more about the software, now I’ll try get it running myself 🤞

  • @MetalMario137
    @MetalMario137 Před 3 lety

    Wow, this is awesome Matthias! Might copy this awesome setup! Thanks for sharing it with everyone else!

  • @meridious3
    @meridious3 Před 4 lety +1

    I'm a huge fan of your woodworking videos, but I think I am an even bigger fan of the technical stuff! Great job!

  • @zweg1321
    @zweg1321 Před 4 lety

    Great application I can see where it could be useful
    As always I enjoy your videos thanks for making them

  • @donmitchinson3611
    @donmitchinson3611 Před 4 lety

    What a fantastic find! Thanks for publishing and for your patience in listening to all those suggesting better ways to have done things.
    I'm going to clone it and give it a try on my pi64bit image on a bootable ssd drive.
    Keep posting when you get a chance. You have an even wider fan base now!

  • @user-cq8kc5es9b
    @user-cq8kc5es9b Před 4 lety

    I am so happy with this because I see that you are barefoot in your shop, this seems to me, that your shop is the safest shop that can be! Greetings from Greece

  • @ObesityandLag
    @ObesityandLag Před 4 lety

    Congratulations on a very successful program. Very inspiring👏

  • @ryanavery7980
    @ryanavery7980 Před 4 lety +1

    Thanks man, this is fantastic. I just put motioneyeos on a 3b+ in the garage but I think I will change over to yours this weekend.

  • @BenMitro
    @BenMitro Před 4 lety +1

    I see your skills with code match your skills with wood. Very impressive Matthias.

  • @MichaelNatrin
    @MichaelNatrin Před 4 lety

    Awesome stuff, thanks for sharing it publicly!

  • @CedricRBR
    @CedricRBR Před 4 lety +1

    Really cool piece of software! Sadly don't have a use for it yet but will keep it in mind if I ever end up needing it.

  • @JoseSilveira-newhandleforYT

    That's a very interesting program, either for surveillance or simply for activity monitoring.

    • @willierants5880
      @willierants5880 Před 4 lety +1

      These would make great surveillance monitors. In fact Matthias does just that. :)

    • @daylen577
      @daylen577 Před 4 lety +4

      For monitoring it would be fine, but for actual security you wouldn't want to use a raspberry pi, they're just not stable enough (and I say that, having had multiple raspberry pi camera setups that ran continuously for months or even years without any issues).
      Just get a cheap camera, avoid dome cameras (domes fog up over time and make the camera useless), avoid PTZ cameras (they give you a false sense of security because you theoretically can rotate to blind spots, but you rarely will), avoid 4K cameras for dark places (their night vision is still terrible compared to normal HD sensors, much more easily defeated by a laser pointer or flashlight), avoid wifi cameras (if you need to run power anyway, just run ethernet and use a PoE injector, even the best wifi fails).
      If you can't afford a physical NVR, there are open source tools like Shinobi CCTV to replace that. Also plop a ~128GB micro SD into your camera directly to store up to a week or so of continuous recordings so you have a second layer.

    • @jum5238
      @jum5238 Před 4 lety +1

      @@willierants5880 I'm REALLY glad he's wearing uh, boxer shorts with his PJ's for his late-night tinkering.

    • @larry400
      @larry400 Před 4 lety

      Daylen is there a specific camera you would recommend?

    • @wobblysauce
      @wobblysauce Před 4 lety +1

      Old phones work well for it, and don't really look out of place.

  • @gotyaa8527
    @gotyaa8527 Před 4 lety

    Brilliant thanks for the video and software.

  • @ochsblogger
    @ochsblogger Před 4 lety

    Thanks for the github link. You are one creative genius.

  • @LeightonGill
    @LeightonGill Před 4 lety

    I have this installed on three Raspberry PI computers at home so far. One is capturing from an rtsp camera. It's awesome software, I use it all of the time for security and to monitor my workshop project timescales, and time-lapses of course. Thank you for developing and sharing it.

    • @matthiasrandomstuff2221
      @matthiasrandomstuff2221  Před 4 lety +2

      Cool, you used my brother's hack? How is the RTSP thing working for you? I haven't tried that myself. Partly because the image quality of a pi camera is so much better.

    • @si4651
      @si4651 Před 4 lety

      Do you have it configured to alert you when movement is detected, and if so any hints as to how that works? Thanks

    • @LeightonGill
      @LeightonGill Před 4 lety

      @@matthiasrandomstuff2221 It works pretty well with a few picture glitches now and again, but I'm sure that's down to the camera. I used your provided example config file with a couple of tweaks for my particular camera. I also prefer the RPI cameras but I already had the rtsp camera mounted outside with IR night vision. Please pass on my thanks to your brother for adding that feature!

    • @LeightonGill
      @LeightonGill Před 4 lety

      @@si4651 I don't I'm afraid. I just check the cool actagram every day to see what's been going on!

  • @TheCaphits
    @TheCaphits Před 4 lety

    Incredible. Thanks for sharing.
    Often a tool made yourself if better for exactly what you want it to do. True with wood and computers!

  • @nkorth
    @nkorth Před 4 lety +4

    Looks like quality software: built by someone who's actually using it, and no more complicated than it needs to be.

  • @FrankGraffagnino
    @FrankGraffagnino Před 4 lety +1

    love this. thanks for sharing it with the world. Will be great to see others port this to other boards and things, and also have some skins or tweaks to the front end. Really cool. I like how it easy it is to go and scrub for images. I wish more video surveillance software understood the need for this. I don't want to play tons of clips to figure out when that pot in the backyard got tipped over... i want to binary search!!! :)

  • @TheAmpair
    @TheAmpair Před 4 lety

    Brilliant & elegant . . . .

  • @nikola19951995
    @nikola19951995 Před 4 lety +4

    I'm always amazed by the breadth of your interest, your expertise and how it overlaps with many interests of mine. Whatever you publish turns out to be useful to me in a short time period. We need more quality channels like yours, or more of you :) Have you ever done any automation projects in small scale gardening or farming? I would really like to hear your view on that. PS: Sorry for my butchered English, it's not my native language.

    • @matthiasrandomstuff2221
      @matthiasrandomstuff2221  Před 4 lety +5

      The idea of automating gardening is appealing, but every hobby project of that sort I have ever seen is useless and impractical. The most practical gardening automation is 20 meter wide machines towed behind a tractor, with no computer. But some research projects look promising. It would be cool to be able to counter weed evolution with software updates instead of new chemicals.

    • @zacprunty
      @zacprunty Před 4 lety

      Matthias random stuff go check out Blue River Technology. Very interesting stuff.

  • @Vsor
    @Vsor Před 4 lety +2

    Ahh yes, Matthias the programmer; I still use your gear program that a bought I decade ago. Only one I know of that makes good pin rack gears.

    • @Gotie06
      @Gotie06 Před 4 lety +1

      Try the BigPrint program too !

  • @EeekiE
    @EeekiE Před 4 lety

    Very neat program

  • @honeyforce996
    @honeyforce996 Před 4 lety +1

    those ceilings looks pretty tall. I'm happy for you

  • @Pracedru
    @Pracedru Před 4 lety

    Pretty cool piece of software Matthias.

  • @jenkinseric2
    @jenkinseric2 Před 4 lety

    Love your safety boots for the shop. ;-)

  • @36736fps
    @36736fps Před 4 lety

    High tech screwed to a chunk of scrap wood. Love it!

  • @Likeaudio
    @Likeaudio Před 4 lety

    very nice. with ten of these... one for every dust collector... you could automate you build animations... I see what you're up to!

  • @electronic7979
    @electronic7979 Před 4 lety +1

    Very good

  • @TheOfficialCzex
    @TheOfficialCzex Před 4 lety +1

    All of the ASCII UI sends me back to the DOS days...

  • @MazeFrame
    @MazeFrame Před 4 lety

    That could come in handy at some point. Nice clean GUI

  • @MrCardeso
    @MrCardeso Před 4 lety

    Very nice!

  • @Factory051
    @Factory051 Před 4 lety

    If the world was to deteriorate to a worse place than this. This is the channel I'd miss the most.

    • @matthiasrandomstuff2221
      @matthiasrandomstuff2221  Před 4 lety +2

      I believe there are activists actively working on that!

    • @spacewolfjr
      @spacewolfjr Před 4 lety

      @@matthiasrandomstuff2221 are you going to disband your band saw?

  • @MCsCreations
    @MCsCreations Před 4 lety

    Pretty interesting!!!

  • @matambale
    @matambale Před 4 lety +11

    Very handy if you ever forget where you left a tool....

  • @mckenziekeith7434
    @mckenziekeith7434 Před 4 lety

    Very interesting!

  • @robertperly6104
    @robertperly6104 Před 4 lety

    Nice job 👍🏻

  • @stinmw4621
    @stinmw4621 Před 4 lety

    Great stuff

  •  Před 4 lety

    I already like it - it is in C!

  • @someguynj
    @someguynj Před 3 lety

    This is awesome. Woodworking AND technology - you're becoming a one-stop shop for my favorite youtube topics. Do you do any music?

  • @ermnet2
    @ermnet2 Před 4 lety

    Awesome... Thanks ...

  • @ianjefferson9518
    @ianjefferson9518 Před 4 lety

    Reading through your imgcomp manual I see you may have licked the issues I ran into with zoneminder. I played with ZM for a while but found that it captured a lot of useless low quality video when clouds or other exposure changes occurred. ZM or tools like it make consolidating a view to multiple cameras easy. I wonder if you have given any thought to that for your software? It seems like a consolidated view could be made up of a distributed network of RPi cameras though. Only meta data would really need to be slung around the network.
    I caught your comment below about modern software and your competition. I have a rather dim view of modern software developers and software with very few bright spots. Possibly Go or Golang is one positive development. Other software that is popular though I find to be bloated and inefficient by almost every measure. There seems to be a "throw more iron at it" group think in progress for the most part.
    Thanks for releasing this. I hope I'll free up some time to experiment with it.

  • @ShankarKulumani
    @ShankarKulumani Před 4 lety

    This is great and I've used motioneye a little bit but this is also great. I didn't realize that videos are worse quality than still images. I'm using motioneye and homeassistant to send videos based on motion to my phone using Signal, but this looks like an even better solution. I'm going to set it up soon. Thanks for sharing and all your great videos.
    I'm an engineer but have no woodshop so most of my projects tend to be software related. Do you have suggestions for hand tools for an apartment dweller to start woodworking? I think handtools would solve much of the storage issues I have in a small place.

  • @fairclothjm
    @fairclothjm Před 4 lety

    Matthias, thanks for this great software!
    My day job is building cloud services. We use modern frameworks and technologies. I can say it was a breath of fresh air looking at the design of Imgcomp. I was able to read the code and quickly understand how it worked. This is not always the case with modern frameworks. Not to mention dependency hell which imgcomp has no need for.
    What are some features you would like someone to work on and contribute to imgcomp? This one from the Todo looks like one I could easily do
    "use canvas method instead of character graphics for actagrams"
    But I don't know what you have in mind there.
    Congrats on the new baby! My wife and I just had our first baby at the beginning of May.

    • @matthiasrandomstuff2221
      @matthiasrandomstuff2221  Před 4 lety

      in showpic.js, replace the 60 character ascii actagram on the bottom with a little bargraph histogram type thing, with maybe 240 bins instead of 60. It wold be cool to have other actagrams work that way too, though I'm not sure if it makes sense to reuse the code (I found it easier not to re-use the same code for all the different ascii ones)

  • @MrTrollHunter
    @MrTrollHunter Před 4 lety +6

    Someone in Microsoft should have a look at this video.. So simple and effective user interface and no bulshit..

    • @billybobjoe198
      @billybobjoe198 Před 4 lety

      It's maybe a little cryptic.
      UI's used to be good, it's only been the last decade or so that they've gone to total trash.

  • @joshinils
    @joshinils Před 4 lety

    i have a pi-hole and an ip-camera which puts its images onto a qnap nas.
    i guess the server would interfere with the existing pi-hole, so i'd have to use another pi.
    would your imgcomp be easy to tweak such that it uses already existing images from a network source?
    how fast does the connection between the devices have to be for smooth scrolling?

    • @matthiasrandomstuff2221
      @matthiasrandomstuff2221  Před 4 lety +3

      As long as numbered images get dumped in some directory it's configured to read from, it will happily use those images and delete them.

  • @imqqmi
    @imqqmi Před 4 lety

    Cache the activity in a database or local file, that would speed things up! Great developments!

    • @imqqmi
      @imqqmi Před 4 lety

      @@JorgTheElder it's basically static data so why not cache it? Doesn't matter how many files it's processing, if it limits the way you want it to work there's a solution for it. But it's up to the dev if it's got any priority.

  • @spacewolfjr
    @spacewolfjr Před 4 lety +4

    Do you have any opinion on running cameras on Pi Zeros vs 1/2/3/4? I love how cheap they are but I wonder if spending a little more money, especially for an Ethernet port and more CPU/RAM is worth it.

    • @matthiasrandomstuff2221
      @matthiasrandomstuff2221  Před 4 lety +7

      I have the software running continuously on quite a few pi's, version 0w, 1b+, 2b+ 3b,3b+ and 4. Haven't got a 1a. The slowest, the '1' is at about 30% cpu at 1 fps at 1600x1200.

    • @dustysparks
      @dustysparks Před 4 lety

      @@matthiasrandomstuff2221 Impressive, and good to know! Who needs a GUI when a Cron Job and a console get the job done better, faster, and cheaper!

    • @CyberKerb
      @CyberKerb Před 4 lety

      Tried it tonight and runs fine on a Pi zero.

  • @MerwinMusic
    @MerwinMusic Před 3 lety

    Is there an easy way to download a whole batch of photos? Instead of just one at a time.

  • @RandomSmith
    @RandomSmith Před 4 lety +1

    What do the different character symbols mean in the actogram?

  • @MartinSchatzMS
    @MartinSchatzMS Před 4 lety +5

    wow, great piece of software! I would love to use it, with already installed IP cameras, do you see any way to make that happen?
    thanks!

    • @matthiasrandomstuff2221
      @matthiasrandomstuff2221  Před 4 lety +8

      My brother has done that, wrote a bit of documentation about it, which is included in the repository. But don't ask me about it, I haven't tried it.

    • @MartinSchatzMS
      @MartinSchatzMS Před 4 lety +2

      @@matthiasrandomstuff2221 great!

  • @Electronieks
    @Electronieks Před 4 lety

    When the rsi kicks in

  • @reddcube
    @reddcube Před 4 lety

    Have you tried HTML history api? It would take some work, but it would let you use the back button to go back a directory instead of just a frame.

  • @billybobjoe198
    @billybobjoe198 Před 4 lety +32

    Why does the button say enlarge rather than embiggen?

    • @milesparris4045
      @milesparris4045 Před 4 lety +6

      Because Matthias isn't descended from Jebediah Obadiah Zachariah Jedediah Springfield?

    • @spacewolfjr
      @spacewolfjr Před 4 lety +9

      it's a perfectly cromulent word

    • @matthiasrandomstuff2221
      @matthiasrandomstuff2221  Před 4 lety +17

      "embiggen" is longer. I was tight on space. Actually, I hadn't thought of tht one, but maybe I should change "enlarge" to "big" if I run out of space again.

    • @spacewolfjr
      @spacewolfjr Před 4 lety +2

      @@matthiasrandomstuff2221 try #include , it's a GNU extension but it can embiggen the smallest space

    • @sppin010101
      @sppin010101 Před 4 lety +2

      ENHANCE

  • @jonjohnson102
    @jonjohnson102 Před 4 lety

    Thats cool

  • @itsupportdublin
    @itsupportdublin Před 4 lety +1

    AMAZING software using it to record my house build and working really good. One thing I am trying to get a 8mb camera to work but just changing resolution in config is not working am I missing something?

    • @justinwolfe3208
      @justinwolfe3208 Před 4 lety

      Did you ever solve this? I have the same issue...

    • @justinwolfe3208
      @justinwolfe3208 Před 4 lety

      I'm guessing your config file is not in the correct location. That is what my problem was.

  • @closeenoughmachineshop1832

    I'v been running your Imgcomp for some days now.....
    Can I change the actagram view from 07:00-20:00 to 00:00-23:59?
    And one more thing, the actagram show diffrent characters, what is the diffrence between 1,2,# and so on....?

    • @matthiasrandomstuff2221
      @matthiasrandomstuff2221  Před 4 lety

      The period for the big actagram is currently hard coded. See browse.actagram.c As for the 1,2,# - the more pixels in the character, the more it means. Just character graphics.

  • @jasondeck1721
    @jasondeck1721 Před 4 lety

    This would also be really handy as a nature camera, e.g. aimed at a bird's nest or a feeder, that only takes shots when something is there and moving, and is easy to navigate when there's a ton of images in a short period.

    • @matthiasrandomstuff2221
      @matthiasrandomstuff2221  Před 4 lety

      As long as it's not running off battery. Or if battery, a lead acid battery.

    • @jasondeck1721
      @jasondeck1721 Před 4 lety

      @@matthiasrandomstuff2221 absolutely, this use would be best for something near a house or out-building.

  • @musthavechannel5262
    @musthavechannel5262 Před 4 lety

    Please generate a cache file for each folder's actogram

  • @fation.
    @fation. Před 4 lety

    Does the motion detecting act like the one that you see on yard lights?

    • @matthiasrandomstuff2221
      @matthiasrandomstuff2221  Před 4 lety

      No, that's passive infrared. Entirely different.

    • @dustysparks
      @dustysparks Před 4 lety

      @@matthiasrandomstuff2221 (correct me if I'm wrong) This is doing image comparisons like surveillance cameras would do with live video (and ultimately what Passive IR sensors do internally at a very deep level), compare Now to Now -1, how many Changes (C)?, Does C exceed Threshold (Tc)? If C > Tc, then MOTION! Flag and record.
      Are you using a database for tracking activity or just the presence of images in the destination folder?

  • @at3o
    @at3o Před 4 lety

    This is fucking awesome

  • @LucasHartmann
    @LucasHartmann Před 4 lety +1

    Not sure how applicable for a workshop the idea is, but having an AI tagging of the images could be useful for later indexing. "Just where have I put the hammer?"

  • @kzone272
    @kzone272 Před 4 lety

    You can use history.replaceState to change the url in the browser without adding a history entry.

  • @cucklercuckler7992
    @cucklercuckler7992 Před 4 lety +3

    Great software, tried it out for a while and im amazed. Would like to donate some for it but i dont know where... Maybe i should just buy some plans i dont need as a donation :)

    • @matthiasrandomstuff2221
      @matthiasrandomstuff2221  Před 4 lety +5

      Yes, that would be the best. Or you could paypal me at my email address. I also have a patreon.

    • @cucklercuckler7992
      @cucklercuckler7992 Před 4 lety +1

      @@matthiasrandomstuff2221 Tahnks for the quick reply! I will surely donate some to your paypal then.
      As you mentioned, motioneyeos is a good solution for video, but not for taking photos, having looking for something like that for a while :)
      Edit: I will buy some plans anyways, even if i dont need them but friends of me could make use of them if its fine. Or maybe i should tell them to buy them they should buy them theirselves :D

  • @GeekboyNC
    @GeekboyNC Před 4 lety +2

    I have a couple of RPs still in the boxes. I figured I would need to play after I retire, but they keep paying me to work. Dammit.

  • @thesohnly
    @thesohnly Před 4 lety

    After setup, does this need access to the internet, or can it run on a local net?

    • @matthiasrandomstuff2221
      @matthiasrandomstuff2221  Před 4 lety

      The Pi does get its time from the internet (no RTC). Beyond that, no.

    • @thesohnly
      @thesohnly Před 4 lety

      @@matthiasrandomstuff2221 so if I had a separate local timeserver, or set it manually, I'd probably be okay.
      You DA bomb. Congrats on the new kid!

  • @Fu86
    @Fu86 Před 4 lety

    I use your software for a couple of months now. Here some feedback:
    * Setting up is very easy. I skip using your (kinda crude, sorry) setup script and use some modern alternatives (systemd, nginx etc.)
    * The UI is very confusing, but I got the hang of it. The Actagram is indeed very useful.
    * I store all images on my NAS and the Raspberry Pi Zero is hooked up over WiFi. With that constraints, the UI is fast (especially the interactive view). Sure, the Actagram takes a lot of time to load, but I am fine with that.
    * Motion detection is TOO sensitive. My workshop has windows, so when it gets dark outside, the motion detector takes a lot of photos. Is there a way to adjust that?
    * An image is taken every 10 minutes, regardless of movement. Can this be disabled?
    I like the tool a lot, even if the used software stack and techniques are a century old :)

    • @matthiasrandomstuff2221
      @matthiasrandomstuff2221  Před 4 lety +4

      You can crank down the sensitivity in the config file. Also, you can set ignore regions, more on that in the documentation. As for a century old - many century old machines wil continue to run long after modern gadgets stop working!

  • @mikeziri
    @mikeziri Před 4 lety

    will you accept pull requests for new features?

  • @vedranlatin1386
    @vedranlatin1386 Před 4 lety

    I've heard of Australian safety boots (commonly known as flip-fops) in the shop, but they've got nothing on Canadian version :)

    • @jacobdegeling
      @jacobdegeling Před 4 lety

      They're called thongs in Australia mate!

    • @jum5238
      @jum5238 Před 4 lety

      There's one channel on youtube (Woodworking Tools) where the asians there are either barefoot or wearing flipflops and that's just the beginning! They operate without some of the guards we take for granted on many of our tools, and theirs are industrial size/strength! Yikes! And if you want a thrill, watch it at 2X speed! Running a power hand planer like that looks scary!
      They do some pretty amazing stuff though!

  • @wasdaletimelapse7658
    @wasdaletimelapse7658 Před 2 lety

    Hi Matthias, I have been a fan of your woodgears channel for a few years now and have always been blown away by your depth of knowledge and expertise in all things you do. I recently came across your random channel and in particular this software solution to monitoring the hedgehog that is living in my garden. Over this weekend I have installed imgcomp and have had a positive experience with it so far. One question I have though is how to stop it running on boot if at all possible. I am by no means an expert with raspian but usually manage to muddle my way through. However I can’t for the life of me figure out how to stop it at boot. I would really appreciate any help that you or anyone could give on this matter. Keep up the great work and thank you very much for sharing you vast knowledge.

    • @matthiasrandomstuff2221
      @matthiasrandomstuff2221  Před 2 lety +1

      type "crontab -e" and edit out the line that starts it.

    • @wasdaletimelapse7658
      @wasdaletimelapse7658 Před 2 lety

      @@matthiasrandomstuff2221 Thank you very much for the reply, i shall give it a go tomorrow. Kind regards.

  • @spacewolfjr
    @spacewolfjr Před 4 lety

    I wonder if you used a buildroot type barebones setup if you could have more RAM disk available and spare your SD card from lots of writes....

    • @gorak9000
      @gorak9000 Před 4 lety

      I had a few raspberry pi cameras setup a while ago. I made the image on the SD card read-only (the filesystems are mounted read-only), and mounted external NFS shares on the cameras to actually save the images to. It worked well, other than that I was saving an image every 5 or 10 minutes to make timelapses, and it took up a ton of space, and the sun and heat killed the enclosures and the servo based pan-tilt mechanisms I was using! Transparent servos with plastic gears don't last very long when in continual sunshine!

    • @spacewolfjr
      @spacewolfjr Před 4 lety

      @@gorak9000 oof, yeah, I think the UV light makes the plastic extra brittle

    • @matthiasrandomstuff2221
      @matthiasrandomstuff2221  Před 4 lety +3

      It writes the images to ramdisk, only writes them to flash if there are changes. For me, it takes a few months to fill a flash card with saved images. Not sure how many times a flash card can be filled before its worn out, but I would guess at least 20x. I haven't worn out a flash card yet.

  • @willyshopdotcom
    @willyshopdotcom Před 4 lety

    Where's the enhance button? Or is that voice control only?

  • @DavidtheSwarfer
    @DavidtheSwarfer Před 4 lety

    Oh yummy, now I really do have to harvest a pi3 from the wife’s desktop and install this on it (yes there is a pi4 waiting for her)

  • @ntsrvr
    @ntsrvr Před 6 měsíci

    13 Jan 2024 - Fresh install on a Pi Zero with 2023-12-11 Bookworm Lite image. I needed to "chmod +x" on my home directory or I would get a 403 error. Apache logs said "search permissions are missing on a component of the path". Original perms of the home dir was "rwx------" but after they were "rwx--x--x". Otherwise, working perfectly!

    • @matthiasrandomstuff2221
      @matthiasrandomstuff2221  Před 6 měsíci

      I tried it recently with the latest OS too. Had to switch back to an older OS though because resizing on libcamera-still was broken in the latest version. but yes, also had to tweak things a bit.

  • @ignisfatuus
    @ignisfatuus Před 4 lety

    If you were to go back and use an ancient browser, I think you'd get access to the browser history via JS (fuzzy memory on this point) -- could remedy the frame URLs cluttering things up.

    • @matthiasrandomstuff2221
      @matthiasrandomstuff2221  Před 4 lety

      probably the javascript wouldn't work in an ancient browser. Javascript keeps evolving.

    • @ignisfatuus
      @ignisfatuus Před 4 lety

      @@matthiasrandomstuff2221 There's that of course! But all this cgi and JavaScript has set my mind back about 20 years and I thought: what the heck! Use a twenty year old browser! Kind of nice thinking back on those days, thank you.

  • @EliasMakes
    @EliasMakes Před 4 lety

    the actogram is slow because i think u are using something like directory get content, and browsing directories. u can use Mysql or NoSql to add to a db whenever an activity is triggered. After that you can browse the actogram from the db, it will be fast and you can use queries ... and on hover u would have a link to the image

    • @matthiasrandomstuff2221
      @matthiasrandomstuff2221  Před 4 lety +2

      No way. I don't want to add a lot of dependencies. I also like being able to use any sort of tool to look at the files. The file system is the ideal database for files. Don't forget, there's 400,000 files being scanned in this example.

    • @EliasMakes
      @EliasMakes Před 4 lety

      @@matthiasrandomstuff2221 u can use containers , for example docker and make each component a microservice, your application will be portable. Basic info read from database is way better than the filesystem, especially when reading from slow and low IOPS SD cards. files will be stored in system and not on the database, just basic info on the database like file url , creation time... maybe mark a file as a favorite...
      when the SD card is full , or having multiple storage locations for your files, for example a NAS storage or AWS S3, having a database with urls for each file will let your application become scalable, and not limited by the storage of the filesystem

  • @pedram.mp4
    @pedram.mp4 Před 4 lety +43

    you know he left software industry many many years ago when there is a '.cgi' in the URL 😄

    • @matthiasrandomstuff2221
      @matthiasrandomstuff2221  Před 4 lety +107

      I used to think some of my software would become obsolete as the competition gets better. But - I was wrong. With all the modern stuff, the competition got worse, so I get ahead just by staying the same.

    • @midjetville
      @midjetville Před 4 lety +11

      @@matthiasrandomstuff2221 Yeah for applications like this with very low scale requirements the old simple ways are still pretty rock solid. It's when you start getting into millions of concurrent users that the new technologies start to shine

    • @spacenomad5484
      @spacenomad5484 Před 4 lety +10

      @@matthiasrandomstuff2221 Stay with the old stuff. It's usually faster, more stable and more intuitive. I've dug my rabbit hole over the last 2 weekends to get into those newfangled webapp frameworks, it's pure madness... Literally hundreds of dependencies for the toolchain, code (JS in this example) becomes less debuggable. Not worth your time for private projects.

    • @TheRainHarvester
      @TheRainHarvester Před 4 lety +2

      @@spacenomad5484 It seems like a lot of AI is another layer of bloat. 7 of 9 people I talk to claim their software uses "AI".

    • @andrewselle3256
      @andrewselle3256 Před 4 lety +14

      What was wrong with CGI is not that its old, it's that it traditionally fork()'d every time you got a request. If requests were small computation compared to the overhead of starting a new process, leading to bad scalability. mod_perl, fastcgi were created to address this and that gave way to php and then persistent java based application servers--all of which ammortize that fork() overhead effectively. Web technology has gotten way more complicated since then, but more functional apps are possible now with mixed server/client stuff. For this application .cgi is simple and effective and probably the right decision. Matthias' best strength is pragmatism and this is a perfect exemplar.

  • @arcrad
    @arcrad Před 4 lety

    Depending on the action maybe use history replaceState to not create unnecessary history entries.

  • @Gun5hip
    @Gun5hip Před 4 lety

    Handy dandy like that actagram

  • @johnathanball3344
    @johnathanball3344 Před 4 lety

    Matthias, wonder weather morphing would work for tweets?

    • @matthiasrandomstuff2221
      @matthiasrandomstuff2221  Před 4 lety +2

      and what does twitter and morphing have to do with my program?

    • @johnathanball3344
      @johnathanball3344 Před 4 lety

      You right, nothing, I’m sorry, corrective texting got the better of me. morphing software which creates frames between key frames( your pictures) called Tweenies. (Not tweets) In-between frames which would smooth your time laps. Feel most privileged that THE Matthias answered my screw up message. Lol.

  • @scream221
    @scream221 Před 3 lety

    I just set this up to take a long timelapse. A question I couldn't find an answer to is when the images get deleted. Only when the drive is full or does the program automaticly deleted them after some time?
    Also: Realy impressive program! Giant thanks for releasing it for free.

    • @matthiasrandomstuff2221
      @matthiasrandomstuff2221  Před 3 lety +1

      It doesn't delete them by default. There is a "clean_up_space" script that you can put on a cron job to delete when the drive gets full.

    • @scream221
      @scream221 Před 3 lety

      @@matthiasrandomstuff2221 My timelapse is running since 6 weeks now and I have to say: I´m super impressed. Easy setup and it just works. Thank you again!

  • @milesparris4045
    @milesparris4045 Před 4 lety

    Considering a Raspberry Pi and camera module together are cheaper than a decent quality surveillance camera, this could be used to put together a good and affordable security video system.

    • @matthiasrandomstuff2221
      @matthiasrandomstuff2221  Před 4 lety

      Plus power adapter, plus a flash card, plus an enclosure. That's another $25

    • @milesparris4045
      @milesparris4045 Před 4 lety

      @@matthiasrandomstuff2221 It's still a lot cheaper than a camera that runs without a DVR or NVR. Those are $400 and up.

    • @edwardholmes91
      @edwardholmes91 Před 4 lety

      @@milesparris4045 I got an 8 channel 1TB DVR and four 720p cameras with power supply and leads for £120. The UI on the DVR is a bit rubbish, but it's great value for money and gets about 2 weeks continuous footage with all four 720p cameras connected.

    • @milesparris4045
      @milesparris4045 Před 4 lety

      @@edwardholmes91 720p does not constitute a decent quality video system.

  • @tommysedin
    @tommysedin Před 4 lety

    -Wall , I approve! :)
    Also, is no one else going to point out that Matthias is walking around barefoot?

    • @eDoc2020
      @eDoc2020 Před 4 lety

      I noticed, but I wasn't going to point it out.

    • @mckenziekeith7434
      @mckenziekeith7434 Před 4 lety

      OSHA approved safety soles.

    • @jum5238
      @jum5238 Před 4 lety +1

      @@mckenziekeith7434 But... but... he's not within OSHA's jurisdiction, so he's good.

    • @mckenziekeith7434
      @mckenziekeith7434 Před 4 lety

      @@jum5238 OSHA can have him extradited to US territory... Never underestimate the power of the three letter agencies (TLA's)! Or, in this case, extended TLA's (ETLA's).

  • @nicok.2751
    @nicok.2751 Před 4 lety

    Hi Matthias, I have one question regarding your License (just to understand, not criticize!): Why do you use GPL v2 and not v3?
    Thanks for publishing the source code!

  • @mothman.industries
    @mothman.industries Před 4 lety

    "Adding crontab entry to start imcgomp at startup"
    imcgomp

  • @vext001
    @vext001 Před 4 lety

    Ja ja - neue Babys machen aber keine neuen Projekte :)
    Great Stuff! (The Baby and the software) - Grats to Rachel !

    • @matthiasrandomstuff2221
      @matthiasrandomstuff2221  Před 4 lety +8

      babys do make new projects, but there is a 20 year lag.

    • @vext001
      @vext001 Před 4 lety +4

      @@matthiasrandomstuff2221 I konw :) When i told my boss that my family will make a 9 month rollout with subsequently maintenance contract of minimum 18 years but everything with negativ contribution margin he told me i'm crazy till he understud :)

  • @ElliottMcCrory
    @ElliottMcCrory Před 4 lety

    You and are seen to be the same person. 😁

  • @dustysparks
    @dustysparks Před 4 lety

    This is awesome! Including the camera and lots of movement (so high CPU and drive activity), how much power is the Pi + Camera drawing? This could make an interesting "DIY Trail Camera" if the power drain is minimal and there's a big enough battery / solar available. Shutting down any needless background services in the base image of Debian or your favorite Pi distro will also improve power drain.

  • @kilerkai
    @kilerkai Před 4 lety

    Matthias is a fucking monster. Software god AND a Woodworking god ?
    But some UX enhancements would be welcome for idiots like me.

  • @luisotero2632
    @luisotero2632 Před 4 lety

    if you put an infrared light you'll have night vision

  • @xl000
    @xl000 Před 4 lety

    At some point, I was scared it would go in a direction similar to this video: "Metolius 3d House adult swim smalls". I'm happy it didn't

  • @spacewolfjr
    @spacewolfjr Před 4 lety

    Haha more comment flooding, I wonder if hooking up a PIR sensor to the GPIO could reduce power usage, have the Pi sleep after X minutes of inactivity and be woken up by the PIR... actually I don't even know if the Pi has sleep states... I like the PocketBeagle with it's two microcontrollers for this kinda stuff

    • @matthiasrandomstuff2221
      @matthiasrandomstuff2221  Před 4 lety

      It still wouldn't run off battery, so it would be pointless. Also, thee PIR sensors don't work all that well.

    • @spacewolfjr
      @spacewolfjr Před 4 lety

      @@matthiasrandomstuff2221 I figured it would use less electricity, even from a 5V USB charger

    • @Anonymouspock
      @Anonymouspock Před 4 lety

      @@spacewolfjr That kind of energy saving only makes sense on severely limited, battery based systems. If you're grid connected it's not worth it because the entire computer is the energy consumption of one LED light bulb and thus would only save literally pennies a year to fix any inefficiency.

  • @shooshx
    @shooshx Před 4 lety

    But why write it in C man? Such a classic application for Python

    • @matthiasrandomstuff2221
      @matthiasrandomstuff2221  Před 4 lety

      because if I write it in C, I don't have to worry about optimizing it. It's just plain fast. I actually had a bash script for part of the back end and replaced that with a C program. The script was 10 lines, but the startup time was significatn. Python is even slower. Yes, there are ways around it. Or I could just write it in C.

  • @kaapporaivio
    @kaapporaivio Před 3 lety

    Sir don't use common gateway interface in 2020

    • @matthiasrandomstuff2221
      @matthiasrandomstuff2221  Před 3 lety

      Its simple and it works. Simple as that. And it's written in C, which has been around much longer than any fashionable web technology, ans will be around longer than anything fashionable today.

    • @kaapporaivio
      @kaapporaivio Před 3 lety

      @@matthiasrandomstuff2221 maybe, but it's also antiquated technology and littered with issues. I don't have anything against unfashionable (I quite like Java myself), but I do have issues with people posting videos about using them and not have a proper disclaimer.

  • @sapelesteve
    @sapelesteve Před 4 lety

    All that I have to say about this video is: "HUH"????????????? 😂😂😂😂