How to Remote Control Your Raspberry Pi Camera from the Web

(Image credit: Tom's Hardware)
Latest Videos FromTom's Hardware
Les Pounder
Associate Editor

Les Pounder is an associate editor at Tom's Hardware. He is a creative technologist and for seven years has created projects to educate and inspire minds both young and old. He has worked with the Raspberry Pi Foundation to write and deliver their teacher training program "Picademy".

  • misanthropic-gamer
    Awesome article, thank you! I've been searching the interwebs for weeks, trying to find a coherent method of streaming video or pics. This adds an interesting dimension. Question: have you investigated / come up with a method for using and autofocus and / or auto aperture lens? Thanks again.
    Reply
  • Controlwiz
    Raspberry Pi 3B+ Server localhost:3030 does not work after install Anvil App Server Jar.

    Failed to start built-in Postgres database: java.lang.IllegalStateException: Process failed
    More logs are available in .anvil-data/postgres.log.
    Some common causes of this problem:
    - Are you launching this server as 'root' on a UNIX system?
    Postgres will not run as root; try launching the server as an ordinary user.
    - Are you running this server on an unusual architecture or OS? (Linux/arm)

    tail .anvil-data/postgres.log.

    initdb: cannot be run as root
    Please log in (using, e.g., "su") as the (unprivileged) user that will
    own the server process.

    What could be the solution to this?
    Reply
  • lazloPanaflex
    Controlwiz said:
    Raspberry Pi 3B+ Server localhost:3030 does not work after install Anvil App Server Jar.

    Failed to start built-in Postgres database: java.lang.IllegalStateException: Process failed
    More logs are available in .anvil-data/postgres.log.
    Some common causes of this problem:
    - Are you launching this server as 'root' on a UNIX system?
    Postgres will not run as root; try launching the server as an ordinary user.
    - Are you running this server on an unusual architecture or OS? (Linux/arm)

    tail .anvil-data/postgres.log.

    initdb: cannot be run as root
    Please log in (using, e.g., "su") as the (unprivileged) user that will
    own the server process.

    What could be the solution to this?
    Your cloned files are probably owned by root. Try this:

    1. Check ownership of the files
    ls -la /home/pi/cam
    If you see root as the owner, move on to the next step
    2. Change ownership. I don't think anything needs to be owned by root so you should be safe recursively changing:
    chown -R pi: /home/pi/cam

    That should do it
    Reply
  • webal
    Admin said:
    Using the power of the Anvil framework, this tutorial shows you how to make your Raspberry Pi camera available to anyone on the Internet by visiting a web page.

    How to Remote Control Your Raspberry Pi Camera from the Web : Read more


    camera_ controller does not appear on server code, is there another way
    Reply
  • misanthropic-gamer
    Great article man. Thanks! Has anyone figured out how to get an autofocus lens to work on RPi and the High-Quality Camera?
    Reply
  • alphaghost2316
    unable to download anvil server ,pls help
    Reply