Tag: Ubuntu

  • Working around USB webcam auto exposure sticking

    The webcam I use for my birdfeeder stream regularly exhibits a glitch where the autoexposure gets stuck. This often leads to an underexposed image in low light conditions. Restarting the device resolves this but I wanted a simpler and less intrusive workaround. I found that toggling the exposure mode to manual and back to auto…

  • Scheduling cache release in Ubuntu

    To keep my server running smoothly, I use crontab to schedule release of cache files: This schedules the tasks to run at 5:01 am and 5:02 each day. Sudo sync is used to write and currently used data buffers to non volatile memory The next command then frees up space in the non-volatile

  • Running DOODS2 for LAN accessible TensorFlow Object Detection

    Running DOODS2 for LAN accessible TensorFlow Object Detection

    The problem: Motion detection on camera streams results in a lot of false positives, especially in environments where motion is expected from certain objects such as trees, or in this case birdfeeders The solution: Implement Object Detection Solution plan: MJPEG stream > LAN > doods2 node > shinobi/AgentDVR/HA DOODS 2 uses object detection via tensorflow…

  • Scheduling USB device reload on Ubuntu

    Intermittently I have an issue with some of my webcams connected to my Ubuntu server. The devices disappear as if they are disconnected. I found a simple workaround for this was to run the command: Simple scheduling of this command using crontab achieves a more permantant workaround: This cron is set to run at 5am…

  • Pulse Audio Ubuntu not loading correctly on boot

    I found that pulse audio wasn’t loading right on boot, resulting in ‘dummy audio device’. If you’re having the same issue, you can follow these quick steps to work around it. Simply running killing the pulseaudio service would force it to load correctly But this is only a fix until the next reboot. To add…

  • Scripting Docker Compose Up

    My Ubuntu server primarily runs services in docker containers, all configured via docker-compose. Each time I make a modification to the docker compose configuration file, I then need to run a command to update the docker containers. Typing this isn’t too much pain, but regardless I still wanted to streamline this due to the frequency…

  • Asus AC-56 Ubuntu 20.04 Driver

    Asus AC-56 Ubuntu 20.04 Driver

    I was getting really terrible speeds from the Intel 3160 adaptor built into the PC In was using to host my docker containers. As 3 of these containers were running MJPG streams, I really needed to have the best network possible. After toiling with the 3160 and reviewing information on the forums, most people concluded…

  • Shinobi

    Shinobi

    Having tried various NVR solutions including AgentDVR & BlueIris, I deciced to give Shinobi a go. The setup was fairly simple, however I have done this not via docker-compose but rather installed directly onto the Ubuntu instance. Shinobi takes the MJPEG streams outputted by the 3 uStreamer docker containers and processes these into compressed video…

  • Combining Octoprint and other Services

    I was running Octoprint from an RPi as a way of managing my 3D printer and accessing it wirelessly. This worked well, however I was concerned with the hardware limitations of the RPi. I also wanted to host 3 MJPG webcam streams form the same host and therefore needed to consider a migration to more…

  • Using UDEV rules to set a static location for /dev/vid* devices

    Ubuntu will often assign a USB device to a new address after each re-plug of the device or reboot of the host. The problem: When USB devices are reconnected or the system restarted, video devices are assigned to a /dev/vid* device path. This path can vary, therefore creating issues when wanting to use static paths…