66
620hun
7y

It's done! Network printer and scanner, hosted by a Raspberry Pi Zero W. I used CUPS to host the printer, but the scanner was much more difficult. I installed apache2 on the Pi to host a HTML front-end that I wrote. Once you set up the scan, the front-end makes an AJAX call to a PHP script, which then calls my Python script that does the scanning and converting. Once that's done, it returns the file name via the AJAX call, then the front-end downloads the scanned PDF on the computer. I even managed to impress my girlfriend, who didn't really understand what I was doing until I showed her the end result 😄

I might try to pipe the output of the conversion straight back via AJAX, to be downloaded without a second call.

Comments
  • 6
    Good job
  • 5
    Cool but too much trouble. Many cheap printers have web interfaces now.
  • 8
    @nickpapoutsis I was given this printer, and the whole setup cost less than £20. Printers with wireless capabilities are much more expensive than that. Also, I wouldn't have learned anything by buying one.
  • 1
    @tarstrong I might write an article, because all that I found had some problems with them. I had to figure out much of this by myself.
  • 2
    @620hun my wireless printer was €50
  • 2
    @620hun If you didn't buy the printer then is worth it.

    If you did it for learning purposes then you did a good job.
  • 2
    This is super cool. Nice job
  • 2
    This is nice!
  • 2
    And now I was given a fully fledged WiFi printer, so I think this system will have to retire. I learned a lot nonetheless, and I'll probably make the code open source 😄
Add Comment