• 3 Posts
  • 154 Comments
Joined 2 years ago
cake
Cake day: April 4th, 2024

help-circle



  • Yeah, I meant photovoltaic with PV. At least in Europe it’s gotten really cheap.

    There are mutiple ways to use the energy that is stored in electric cards. There’s “Vehicle to Load” (V2L) for plugging appliances directly into the car, “Vehicle to Home” (V2H) for connecting your home to the car and “Vehicle to grid” for connecting the car to the power grid and selling the stored energy.

    “Vehicle to load” is also useful when going camping or when you need power when there’s no outlet near you. You just need a car that supports it and a small adapter.















  • Yeah, I do this:

    magick "$file" -limit memory 1GiB -limit map 2GiB -threshold 60% -define connected-components:area-threshold=5 -define connected-components:mean-color=true -connected-components 8 output.png

    It makes the scan 1-bit black and white. It mostly removes bright background images, if there are any on the pages. I think it works quite well for basic black and white documents, but color graphics and graphs aren’t preserved.


  • Its a hacked together shell script. I wanted to learn shell scripting, but I should’ve probably programmed it in python.

    But it basically does this:

    1. scan pages as png via scanimage in gray scale
    2. convert the image into a high contrast b/w one with image magick
    3. sort pages if I have to combine two scans (front and back side)
    4. create a single pdf of all the document pages via image magick
    5. move pdf to the paperless folder

    I won’t share it because it’s really ugly and some of the functionality can be done with paperless native, like combining the pages of two scans. Which would’ve been easier.