Icon for the BerryCam App

 

 

Steps to get BerryCam to run on your Raspberry Pi and iOS Device.

Make sure that you have the camera module for the Raspberry Pi installed. If you need more information on how to do this, visit http://www.raspberrypi.org/camera/
Once the camera has been installed, please make sure that you have Python. If you are using Raspbian OS, then this should be installed already.

http://www.raspberrypi.org/faqs

Download the iOS App:
download_app_store

 

 

Installing BerryCam on Raspberry Pi

First of all, we will need to find the IP address of the Raspberry Pi on your network. Start LXTerminal on the Raspberry Pi using the icon on the desktop. Or if you use an SSH client you can connect to this from another machine using your username and password. Recommended SSH clients for Mac are the standard MacOSX Terminal app, or on Windows something like Putty. http://www.putty.org/

To get this information type:

ifconfig

This will return the IP address. Take a note of this and using the settings panel within the app, enter these details into the address field. The port number, as default is set to 8000 although advanced users may decide to change this is necessary.

The username is usually pi for the device. To connect using SSH:

ssh pi@XX.XX.XX.XX

and press (where the XX’s is the IP address) and supply your password at the following prompt.

It’s always good to make sure a lot of the libraries and packages are up to date. You can do this by using

apt-get update

Once updated it’s also a good idea to fetch the new updates with

apt-get upgrade

Once logged in use the following commands to download the necessary Python code to run on your Raspberry Pi.

Download and install the Python script into an easy to locate location. The /home directory is recommended (it’s easier to find)

cd /home
sudo wget https://bitbucket.org/fotosyn/fotosynlabs/raw/9819edca892700e459b828517bba82b0984c82e4/BerryCam/berryCam.py

To check this has been downloaded and unpacked, or set up as a file issue the command:

ls

This will list files currently in home. You will notice the new Python berryCam.py file. This is needed to provide the link between the iOS device and the Raspberry Pi.

Screen Shot 2013-08-14 at 21.48.28

 

Using BerryCam

Once you have entered the IP address, berryCam.py needs to be run as a Python process in order to provide the necessary links to allow the BerryCam iOS app to trigger the camera, provide previews and save files. To run simply enter:

sudo python /home/berryCam.py &

The Python script will run in the background and you will see the following message:

B E R R Y C A M -- Listening on port 8000
Please ensure your BerryCam App is installed and running on your iOS Device

Make sure both devices are connected on the same local network (generally your cellular connection won’t work. Wifi will be easiest). To set up the connection on the iOS App, tap the settings button (gears icon) and input the IP address you obtained earlier in the labelled input field. Close settings to return to the main camera controls.

Tap the refresh button within the BerryCam app on your iOS device. If your device has been recognised you will see the Connected message and the refresh icon will change to a camera icon. Pressing this will trigger the camera on the Raspberry Pi. In the terminal window you will see some activity as the Raspberry Pi handles the requests.

After a short pause, the image will then appear in your iOS device.

BRaUrN6CEAIbd2E

Viewing and Saving images to your iOS Device

By default, images are captured into a folder named berrycam. Images are organised by timestamped folders. You can access these directly on an iOS device by choosing the enlarge button (overlaid right bottom of preview). From here, your image will be opened up in Safari, where you can view full size and tap and hold to save to your camera roll. At any time you can access your save imaages in a web broeser by simply typing:

http:XX.XX.XX.XX:8000/berrycam/ (where XX.XX.XX.XX is the IP address of your Raspberry Pi)

212 Comments

  1. Oliver Kuy
    August 16, 2013

    I can’t seem to run the Python script. I always get this error message:

    pi@raspberrypi:/home$ ls
    berryCam.py pi shares
    pi@raspberrypi:/home$ sudo python /home/berryCam.py &
    [1] 2445
    pi@raspberrypi:/home$ File “/home/berryCam.py”, line 1

    ^
    SyntaxError: invalid syntax

    Reply
  2. Jilt van Moorst
    August 16, 2013

    The problem seems to be that using wget you get a web page version of the script starting with

    Also it is really hard to enter an IP since the numeric keyboard had a comma instead of a period, I guess that has to do with my Dutch locale.

    Reply
    • Jim at Fotosyn
      August 16, 2013

      Thanks Jilt… I’ll post a raw version of it and link to that – that may do the trick. I’ll rework that keypad to accommodate the differences. :D

      Reply
  3. Jilt van Moorst
    August 16, 2013

    fixed that using nano to paste the raw code into berryCam.py
    next problem:

    pi@raspberrypi /home $ sudo python /home/berryCam.py &
    [1] 32618
    pi@raspberrypi /home $ Traceback (most recent call last):
    File “/home/berryCam.py”, line 108, in
    httpd = SocketServer.TCPServer((“”, PORT), BerryCamHandler)
    File “/usr/lib/python2.7/SocketServer.py”, line 419, in __init__
    self.server_bind()
    File “/usr/lib/python2.7/SocketServer.py”, line 430, in server_bind
    self.socket.bind(self.server_address)
    File “/usr/lib/python2.7/socket.py”, line 224, in meth
    return getattr(self._sock,name)(*args)
    socket.error: [Errno 98] Address already in use

    Reply
    • Jim at Fotosyn
      August 16, 2013

      Yeah looks like it’s running SimpleHTTPServer. Maybe do a reboot of your Pi and try again, or kill that process.

      Reply
  4. Jim at Fotosyn
    August 16, 2013

    Hi all… thanks for your comments and feedback!

    I have posted a new version of the Python script here:
    http://www.fotosyn.com/berrycam-source/

    Copy and paste this into a new file named berryCam.py
    You can do this using nano in the shell.

    I’ll post a new direct wget link tonight and update the command line instructions.

    Reply
    • Oliver Kuy
      August 16, 2013

      Thanks Jim!

      Reply
    • Oliver Kuy
      August 16, 2013

      Hi again Jim. Copy and pasted the code using nano in the shell and I got this error:

      [1] 2526
      root@raspberrypi:/home# File “berryCam.py”, line 20
      def do_GET(self):
      ^
      IndentationError: expected an indented block

      Reply
      • Jim at Fotosyn
        August 16, 2013

        Ah I think if you just indent that line, it should work. Weird I know… but I have seen that before. I will be posting a version that will be directly wget-able later on… I appreciate all your feedback and patience though. Fingers crossed I can help you get up and running when I get back to my desk and access to a decent FTP connection.

        Reply
        • Oliver Kuy
          August 16, 2013

          Sorry Jim. I’m not a Python programmer. How do you “indent” that line?

          Reply
          • Jim at Fotosyn
            August 16, 2013

            No problem! I think (this time) I have an easy solution.

            Once logged in via SSH, issue the following…

            cd /home
            wget https://bitbucket.org/fotosyn/fotosynlabs/raw/9819edca892700e459b828517bba82b0984c82e4/BerryCam/berryCam.py
  5. Jim at Fotosyn
    August 16, 2013

    Gargh… that post I used had no tabs.

    Try this one folks.. SORRY!

    https://bitbucket.org/fotosyn/fotosynlabs/raw/9819edca892700e459b828517bba82b0984c82e4/BerryCam/berryCam.py

    Reply
    • Oliver Kuy
      August 16, 2013

      Edited the port and got this error message:

      [3] 2648
      root@raspberrypi:/home# Traceback (most recent call last):
      File “berryCam.py”, line 108, in
      httpd = SocketServer.TCPServer((“”, PORT), BerryCamHandler)
      File “/usr/lib/python2.6/SocketServer.py”, line 402, in __init__
      self.server_bind()
      File “/usr/lib/python2.6/SocketServer.py”, line 413, in server_bind
      self.socket.bind(self.server_address)
      File “”, line 1, in bind
      socket.error: [Errno 98] Address already in use

      I’m using a unique port for SSH. Should I be using that?

      Reply
      • Jim at Fotosyn
        August 16, 2013

        Sorry guys I don’t have access to my Pi at the moment, but perhaps another process is using that port?

        Think you can check with this…

        lsof -i :8000

        If so, you can change in the Python code to a different port…

        PORT = 8000 # CHange this if you wish to listen on a different port

        Just a guess at the moment, but maybe try something like 8080, or 8001 or something??

        Reply
        • Oliver Kuy
          August 16, 2013

          I tried using 8554. It’s the port I used to stream video but that didn’t work either. Got this error message whenever I tap refresh on the app:

          192.168.0.108 – – [16/Aug/2013 17:25:59] code 404, message File not found
          192.168.0.108 – – [16/Aug/2013 17:26:05] “GET /berrycam/firstrun HTTP/1.1″ 404 -

          Reply
          • Jim at Fotosyn
            August 16, 2013

            Sounds like it’s connecting if you’re getting messages! Maybe try reinstalling the app and see if that helps Oliver?

      • Jim at Fotosyn
        August 16, 2013

        Or perhaps try a wee reboot of the Raspberry Pi, clean out any old processes??

        Reply
        • Oliver Kuy
          August 16, 2013

          I rebooted first and I got the error message above…

          pi@raspberrypi:/home$ B E R R Y C A M — Listening on port 8554
          Please ensure your BerryCam App is installed and running on your iOS Device
          192.168.0.108 – – [16/Aug/2013 17:25:59] code 404, message File not found
          192.168.0.108 – – [16/Aug/2013 17:26:05] “GET /berrycam/firstrun HTTP/1.1″ 404 -

          Reply
  6. Jim at Fotosyn
    August 16, 2013

    Updated the guide to show

    cd /home
    wget https://bitbucket.org/fotosyn/fotosynlabs/raw/9819edca892700e459b828517bba82b0984c82e4/BerryCam/berryCam.py
    Reply
  7. Jilt van Moorst
    August 16, 2013

    still getting the Address already in use error.

    i have a bunch of network stuff on my pi such as nas, samba, openVPN, etc installed but stopping them did not fix it.

    running processes :

    PID TTY STAT TIME COMMAND
    2564 ? S 0:00 sshd: pi@pts/0
    2565 pts/0 Ss 0:02 -bash
    2808 pts/0 R+ 0:00 ps x

    stuff in /etc/init.d :

    alsa-utils checkroot-bootclean.sh dbus hostname.sh killprocs motion mountnfs-bootclean.sh nfs-common pulseaudio reboot samba speech-dispatcher transmission-daemon umountnfs.sh x11-common
    avahi-daemon checkroot.sh dphys-swapfile hwclock.sh kmod mountall-bootclean.sh mountnfs.sh ntp rc rmnologin saned ssh triggerhappy umountroot
    bootlogs console-setup fake-hwclock ifplugd lightdm mountall.sh mtab.sh openvpn rc.local rpcbind sendsigs sudo udev unattended-upgrades
    bootmisc.sh cron halt kbd minissdpd mountdevsubfs.sh nas pd-extended rcS rsync single switch_cpu_governor udev-mtab urandom
    checkfs.sh cups hdparm keyboard-setup motd mountkernfs.sh networking procps README rsyslog skeleton timidity umountfs vcfiled

    Reply
  8. Jilt van Moorst
    August 16, 2013

    simply changing the port did the trick, all is working fine now !! thanks for the great work!

    Reply
    • Oliver Kuy
      August 16, 2013

      Are you using your SSH port?

      Reply
      • Jilt van Moorst
        August 16, 2013

        I’m not specifying a port opening SSH to the PI, I thought SSH defaulted to port 22.
        Using 8001 instead of 8000 fixed it for me, lord knows what’s using 8000

        Reply
        • Oliver Kuy
          August 17, 2013

          I tried port 8001 and it giving me this error:

          pi@raspberrypi:/home$ sudo python berryCam.py &
          [1] 2247
          pi@raspberrypi:/home$ B E R R Y C A M — Listening on port 8001
          Please ensure your BerryCam App is installed and running on your iOS Device
          192.168.0.108 – – [17/Aug/2013 03:34:26] code 404, message File not found
          192.168.0.108 – – [17/Aug/2013 03:34:31] “GET /berrycam/firstrun HTTP/1.1″ 404 –
          192.168.0.108 – – [17/Aug/2013 03:34:36] code 404, message File not found
          192.168.0.108 – – [17/Aug/2013 03:34:41] “GET /berrycam/firstrun HTTP/1.1″ 404 -

          Reply
          • Jim at Fotosyn
            August 17, 2013

            Okay I think there’s a bug in the iOS App, or a mix of the two. I managed to replicate your error.

            Try this:

            sudo python berryCam.py &

            Once running, start up your iOS app. You might see the message ‘Take an image with the camera’
            If you do this, you’ll maybe see that nothing happens. Quit the app and restart.
            Try shooting now. I get the error first time round, then it works okay after that.

            I notice there’s an error in the dialog for ‘awb’ – i’ll need to look at that and see what the issue is but it still allows me to take an image.

            I am running Python 2.7 and recently did a sudo apt-get update and upgrade.

          • Jim at Fotosyn
            August 17, 2013

            Can you also try – –

            cd /home/berryCam
            ls

            – – and see if there are any folders/files in there. If there are then it shows the camera is actuating and capturing images.

  9. William Smith
    August 17, 2013

    I get a broken picture, and:

    root@snmpi:~# python berryCam.py
    B E R R Y C A M — Listening on port 8000
    Please ensure your BerryCam App is installed and running on your iOS Device
    192.168.1.192 – – [17/Aug/2013 09:19:28] “GET /berrycam/20130817/IMG-2.jpg HTTP/1.1″ 200 –
    192.168.1.192 – – [17/Aug/2013 09:19:29] “GET /berrycam/20130817/IMG-2.jpg HTTP/1.1″ 200 –
    —————————————-
    Exception happened during processing of request from (‘192.168.1.192′, 50659)
    Traceback (most recent call last):
    File “/usr/lib/python2.7/SocketServer.py”, line 295, in _handle_request_noblock
    self.process_request(request, client_address)
    File “/usr/lib/python2.7/SocketServer.py”, line 321, in process_request
    self.finish_request(request, client_address)
    File “/usr/lib/python2.7/SocketServer.py”, line 334, in finish_request
    self.RequestHandlerClass(request, client_address, self)
    File “/usr/lib/python2.7/SocketServer.py”, line 649, in __init__
    self.handle()
    File “/usr/lib/python2.7/BaseHTTPServer.py”, line 340, in handle
    self.handle_one_request()
    File “/usr/lib/python2.7/BaseHTTPServer.py”, line 328, in handle_one_request
    method()
    File “berryCam.py”, line 29, in do_GET
    awb = “‘” + queryParsed['awb'][0] + “‘” # Set AWB mode
    KeyError: ‘awb’
    —————————————-

    raspistill Camera App v1.1

    Width 2592, Height 1944, quality 100, filename berrycam/20130817/IMG-3.jpg
    Time delay 5000, Raw no
    Thumbnail enabled Yes, width 64, height 48, quality 35

    Preview Yes, Full screen Yes
    Preview window 0,0,1024,768
    Opacity 255
    Sharpness 11, Contrast 0, Brightness 50
    Saturation 4, ISO 400, Video Stabilisation No, Exposure compensation 0
    Exposure Mode ‘off’, AWB Mode ‘off’, Image Effect ‘none’
    Metering Mode ‘average’, Colour Effect Enabled No with U = 128, V = 128
    Rotation 0, hflip No, vflip No
    Camera component done
    Encoder component done
    Starting component connection stage
    Connecting camera preview port to preview input port
    Starting video preview
    Connecting camera stills port to encoder input port
    Enabling encoder output port
    Opening output file berrycam/20130817/IMG-3.jpg
    Starting capture 1
    Finished capture 1
    Closing down
    Close down completed, all components disconnected, disabled and destroyed

    192.168.1.192 – – [17/Aug/2013 09:19:40] “GET /berrycam?awb=off&mm=average&ev=0&ex=off&sh=11&br=50&co=0&sa=4&ifx=none&fquality=100&fwidth=2592&fheight=1944&ffolder=20130817&fseq=3&hf=0 HTTP/1.1″ 200 –
    192.168.1.192 – – [17/Aug/2013 09:19:45] “GET /berrycam/20130817/IMG-3.jpg HTTP/1.1″ 200 –
    192.168.1.192 – – [17/Aug/2013 09:19:46] “GET /berrycam/20130817/IMG-3.jpg HTTP/1.1″ 200 –

    Do I _have_ to be running the desktop? I’m doing this on a headless machine, and raspivid works fine….

    Reply
    • Jim at Fotosyn
      August 17, 2013

      headless is best looks like it’s captured. Try quitting and reopening app

      Reply
  10. Oliver Kuy
    August 17, 2013

    Hi Jim. This directory doesn’t exists:

    cd /home/berryCam

    and I’ve been using:

    sudo python berryCam.py &

    from the start. Still not working. :(

    Reply
  11. William Smith
    August 17, 2013

    Doh! I didn’t think it was _that_ dark in my office, but turning the lights on suddenly made everything start working. 8*|

    Many Thanks for making this for us!

    Reply
  12. Keith Adley
    August 18, 2013

    Unable to use the app on the iPad because the config screen for the Pi IP address does not display correctly. I click the cog icon and a small line appears bottom left of the iPad screen. Works just fine on my iPod touch.

    Reply
    • Jim at Fotosyn
      August 18, 2013

      Thanks Keith I’ll need to take a look but glad you got it going on iPod touch :)

      Reply
    • Jim at Fotosyn
      August 24, 2013

      Hi Keith… any chance you could email me a screengrab of the iPad IP Address issue. Also what version of iOS are you on, what rev of iPad and could you tell me the locale of your device? Thanks!

      info@fotosyn.com

      Reply
  13. Koen van Erve
    August 18, 2013

    Thank you for the effort for making this app and script.

    For Dutch users, the app uses a , (comma) instead of . (point) in the numeric keyboard for the IP addres, so i had to use copy/paste instead because xxx,xxx,xxx,xxx will not work (needs to be xxx.xxx.xxx.xxx).

    Reply
    • Jim at Fotosyn
      August 18, 2013

      Thanks Koen for your kind words. This is on my list to look at and should be rolled out in the next update

      Jim

      Reply
  14. Steve gale
    August 22, 2013

    Hi,
    Had no problems with the PI side of the installation, as with the earlier post can’t enter the IP address on my iPad .

    Did get it to work on my sons IPhone with no problems , so looking forward to the iPad update.

    Steve Gale

    Reply
    • Jim at Fotosyn
      August 22, 2013

      Thanks Steve

      Is it a retina iPad you are using? Just to check as I will be looking at this on Saturday this week with an update next week

      Jim

      Reply
      • Keith Adley
        August 22, 2013

        Jim, just so you know, the iPad problem with the IP address for me is occuring on a v2 iPad pre – retina screen version.

        Keith

        Reply
      • Steve Gale
        August 25, 2013

        Jim,

        Have got an iPad 4, retina display using the latest software IOs 6.1.3

        Not sure how to get a screen shot but when you have the iPad in portrait mode and press the settings button, the IP entry field looks like it is trying to be displayed in the bottom left hand corner underneath the current screen .Hope that makes sense.

        Locale is UK
        Steve

        Reply
    • Jim at Fotosyn
      August 24, 2013

      Hi Steve… any chance you could email me a screengrab of the iPad IP Address issue. Also what version of iOS are you on, what rev of iPad and could you tell me the locale of your device? Thanks!

      info@fotosyn.com

      Reply
  15. Valerio Tognozzi
    August 23, 2013

    Hi all, and thanks Jim for the good job.
    All works fine!
    In Italy there is the problem with the Comma and the Point as Koen have just detailed, but we can use copy and paste to resolve it.
    I want to report another problem:
    If you do all you write above, when you contact your Raspberry via http with the web browser on port 8000, you have the root permission to browse all the Home directory, so you can view the content of the other user (pi for ex.).
    I hope you help what I reported.
    Thanks a lot for your work.
    bye from Italy

    Reply
  16. Oliver Kuy
    August 24, 2013

    I still can’t run the app. This is what is showing on my terminal screen:

    root@raspberrypi:/home# sudo python /home/berryCam.py &
    [1] 14620
    root@raspberrypi:/home# B E R R Y C A M — Listening on port 8001
    Please ensure your BerryCam App is installed and running on your iOS Device
    192.168.0.101 – – [24/Aug/2013 07:00:18] code 404, message File not found
    192.168.0.101 – – [24/Aug/2013 07:00:24] “GET /berrycam/firstrun HTTP/1.1″ 404 -

    Reply
    • Jim at Fotosyn
      August 24, 2013

      Thanks Oliver… I’ve been away for a few days but back now and will try to replicate the issues you’re having.

      Reply
    • Fina
      March 12, 2014

      Thanks for the app and the detailed instructions.

      I have the same or a similar problem as Oliver Kuy had. But there appears to be no response to that issue since he last posted on Aug. 24, 2013. Is there a solution now?

      BerryCam on my iPhone seemed to be connected to the Pi on port 8000. When the camera button is tapped, the “photo” is completely black, and there is the word “berrycam” on the upper left hand corner where the photo should appear. On the terminal (via ssh) there was the following:

      pi@raspberrypi / $ 192.168.0.105 – – [12/Mar/2014 17:45:42] code 404, message File not found
      192.168.0.105 – – [12/Mar/2014 17:45:42] “GET /berrycam/firstrun HTTP/1.1″ 404 –
      —————————————-
      Exception happened during processing of request from (‘192.168.0.105′, 49283)
      Traceback (most recent call last):
      File “/usr/lib/python2.7/SocketServer.py”, line 295, in _handle_request_noblock
      self.process_request(request, client_address)
      File “/usr/lib/python2.7/SocketServer.py”, line 321, in process_request
      self.finish_request(request, client_address)
      File “/usr/lib/python2.7/SocketServer.py”, line 334, in finish_request
      self.RequestHandlerClass(request, client_address, self)
      File “/usr/lib/python2.7/SocketServer.py”, line 649, in __init__
      self.handle()
      File “/usr/lib/python2.7/BaseHTTPServer.py”, line 340, in handle
      self.handle_one_request()
      File “/usr/lib/python2.7/BaseHTTPServer.py”, line 328, in handle_one_request
      method()
      File “/home/berryCam.py”, line 29, in do_GET
      awb = “‘” + queryParsed['awb'][0] + “‘” # Set AWB mode
      KeyError: ‘awb’

      I had added the directory berrycam (/home/berrycam) manually and did a sudo chmod 777 berrycam but the problem persisted. So I deleted the berrycam directory.

      Any idea? Any help would be much appreciated.

      Reply
      • Jim at Fotosyn
        March 12, 2014

        Hey there… yes I’m aware of this. I’ll try to issue a fix in a couple of days but longer term I am working on a more platform neutral web-app version which will add a pile of new features and work on pretty much any network connected device.

        Thanks!

        Reply
        • Fina
          March 14, 2014

          Thanks for explaining. I look forward to the fix and eventually the web-app.

          Reply
  17. Jim at Fotosyn
    August 24, 2013

    Hi all… managed to resolve the decimal place issue for certain locales for the IP Address field. Will actually allow for named devices to be addressed as well as IPs I think.. still looking to fix the iPad issue though… will get back once I have a solution. I am running it on an iPad 2 here without any problems. :-\

    Reply
  18. Nick Cloy
    August 25, 2013

    Hi

    Im having trouble setting up my ipad.
    When i click the settings icon i just get a bar at the top left of the screen.
    Here is a screenshot, this is after i press the gear icon.

    http://i213.photobucket.com/albums/cc244/ncloy/IMG_0306.png

    i am using an iPad 2 with iOS version 6.1.3

    Reply
  19. Johannes Smits
    August 26, 2013

    Very nice tool exactly what i was looking for.

    I use it in raspbmc and it is even possible to use it from outside your local network touch you have to configure your firewall (see: http://goo.gl/vfGrGp)

    The problem i have is that for one reason or another i can not run berryCam successful at boot time. It would be nice if the process would start at boot and be available for the app. Tried a few things, the last thing i tried was to run it from cron ( @reboot python /him/pi/cameraberryCam.py ) and although the service is available and stable, my iphone can connect and everything seems to work fine only… all the pictures are completely black.

    Running the script from a SSH session produces nice pictures but stops of course as soon as the SSH connection is broken.

    Anyone… ?

    Reply
    • Graeme
      October 14, 2013

      If you use “nohup” in front of your command nohup lets the process continue even after you log off.

      Sorry just got the app today. I am a bit late I know but have answered just in case someone else has this problem.

      Cheers
      Graeme

      Reply
      • Jim at Fotosyn
        October 14, 2013

        Excellent Graeme… I’ve only really used the trailing ‘&’ but i’ll give this a go.

        Reply
        • Johannes
          October 14, 2013

          Thanks Graeme, i did experiment with that too but unfortunately that didn’t give me the stability i needed. accepting that it would crash i added a little script to the root cron (sudo crontab -e). Runs every 15 minutes. If it detects berryCam running it does nothing, if not it starts it. This is running a few weeks now, (be aware that the foto folder is /root/berrycam). funny thing is though, since this is running except at boot time it never had to restart berryCam, must have been a permission problem then i guess.

          #! /bin/sh

          if ps -ef | grep [b]erryCam; then
          echo “$(date) berryCam is running – $(whoami)” >> /home/pi/stora/log/chkCam.txt
          exit 0
          else
          echo “$(date) starting berryCam – $(whoami)” >> /home/pi/stora/log/chkCam.txt
          python /home/pi/stora/berryCam.py >> /home/pi/stora/log/chkCam.txt
          exit 0
          fi

          Reply
  20. Jim at Fotosyn
    August 26, 2013

    Excellent to hear you got it working remotely Johannes! Nice one… I will need to try that. Firewall-y and network stuff isn’t my forté but will give it a go. I’ll have a look under the hood with that crontab stuff… are you editing as sudo crontab -e to override any specifics to the user pi? Just a thought… but I’ll give that a go.

    You can run it as a background task without need to persist SSH using sudo /your/path/berryCam.py &

    Reply
    • Johannes Smits
      August 26, 2013

      To enable external access, you must add the following to /etc/network/if-up.d/secure-rmc

      At the end of the file you find:

      logger -t iptables “Configuring ip tables for interface $IFACE”
      if [ "$IFACE" != "lo" ]; then
      NETMASK=$(get_subnet $IFACE)
      iptables -A INPUT -s $NETMASK -i $IFACE -j ACCEPT
      iptables -A INPUT -p tcp –dport -j ACCEPT
      iptables -A INPUT -i $IFACE -j DROP
      fi

      You can add for each port you want open:
      iptables -A INPUT -p tcp –dport -j ACCEPT

      Reply
      • Johannes Smits
        August 26, 2013

        After -dport you need to provide the port number

        Reply
    • Johannes Smits
      August 26, 2013

      Running from background as you described works, but only two or three pictures. After that it stops and I have to kill the process manually. The only thing working now is the script running in a shell ( user pi ) detached or not makes no difference.

      Reply
  21. rob
    August 27, 2013

    My daughter will be using the RPi in a remote location in a few weeks, and want to do some time-lapse photography (from the bridge of an ice-breaker in the Arctic). The “problem” is that I do not expect there are wifi services on the ship, so I will have the RPi, and it will have its own wifi adapter, and I will have an iOS device, but I will not have dhcp, and thus the RPi and iOS will not share a common Wifi network. I can get the iOS device tethered to the RPi.

    Is there any way to make this app work in this setting? Would I have to modify the Wifi function on the Rpi? I’d welcome suggestions before I go off and wreck something.

    Thanks,

    Reply
  22. Scott Kocher
    August 27, 2013

    Is it possible to do time lapse with the app? I have it installed and can take pictures but things are still confusing I’m not sure what each setting does. Would you be able to give a us an idea.

    Reply
    • Jim at Fotosyn
      August 27, 2013

      Hey Scott… no probs I’ll stick up a tutorial. It’s all based on the settings of raspistill which controls the camera but I’ll put it all into context and give the reader some ideas.

      Reply
  23. Bill McDowell
    August 30, 2013

    Thanks, Worked the first time. Great app.

    Reply
  24. Jacob
    August 31, 2013

    I have everything set up correctly as pointed above, downloaded the latest Python script and pasted that in berryCam.py.
    When I start the Python-script it shows “listening on port 8000″, but on the iPhone I get the “not connected” error.
    I’m a Dutch user, but I copy/pasted the ip-address so that could not be the issue.
    The pictures are stored in folder “berrycam”, but that was not automatic created, I think it should? When I manual created this folder I had to use “sudo”, are there permissions issues?
    I changed to port 8001, with no succes.
    Any ideas?

    Reply
    • Jim at Fotosyn
      August 31, 2013

      Definitely sounds like permissions. Try chmod 777 on the folder once you have created it. Maybe that works?

      Reply
  25. Jacob
    August 31, 2013

    I tried “chmod 777″ on the folder, and checked it with “ls -l”, and it was ok. Restarted the script, but no success at port 8001.
    I downloaded again the script text from this website, let the 8000, and run the script again. But I still get the “can’t connect to your Raspberry PI” on my iPhone.
    On the RPi are no errors, only “the listening at port 8000″ text.

    Reply
  26. Frank
    September 1, 2013

    Hello Jim,

    I have the Same Issing with my iPad , i Could Not put in the IP Adress from the Pi. It Works with the iPhone from my son.

    Is there any Solution ?
    Best Regards
    Frank

    Reply
    • Jim at Fotosyn
      September 1, 2013

      Hi Frank a new version will be available soon which addresses this issue

      Reply
  27. Duncan
    September 5, 2013

    It would be great if BerryCam could also accept a name rather than just an IP address. I have the avahi mdns service running on my RPI which allows me to refer to it as raspberrypi.local on my local subnet rather than having to adjust my AP to always allocate the same IP address across RPI reboots.

    Reply
    • Jim at Fotosyn
      September 5, 2013

      Thanks Duncan — I think the new keyboard for address input may allow for this – just waiting on the app being approved for update

      Reply
  28. Daren
    September 5, 2013

    Great app. Setting it up was a breeze once I told my iPhone to stop connecting to my guest network and instead connect to the network with the RPi. :) One question though: What does the “Refresh” looking square button in the bottom left corner of the picture do? I didn’t observe any noticeable change when I clicked it. Thanks!

    Reply
    • Jim at Fotosyn
      September 5, 2013

      Hey Darren cheers! It’s just a way to refresh manually but a bit of a relic from earlier development before I implemented the callback on the progress indicator

      Reply
  29. Andrew
    September 5, 2013

    Hi,
    I just got my camera module, and got everything setup by following this post. I downloaded the iphone app, and it works great with Motion, but I can’t seem to get any video with the berryCam.py sketch. The sketch shows what it should when running, I even changed my port to 8001, 8081, 8082, on both iphone and raspberry, but still nothing shows up. My IP address is the exact same as when im using motion, so I didn’t need to change that.
    What am I doing wrong?

    Reply
    • Jim at Fotosyn
      September 5, 2013

      Hi Andrew the app will only capture still images.

      Unsure what you are referring to by ‘sketch’ but you should be able to see an image after it has been taken directly in the preview pane. Video may be an option if I can find time at some stage

      Thanks…

      Reply
      • Andrew
        September 5, 2013

        I got it to work, after I had to remake the SDcard. This is the 4th time I had to redo it. Anyways it works, and yea I did notice it only takes stills.

        oh and sketch is a term for program if you have ever used an Arduino microcontroller.

        Reply
  30. Jacob
    September 5, 2013

    Has some-one a clue why my setup does not work?
    Raspberry model A, camera installed and working, standard installation.
    Downloaded the berryCam Python script, no errors when I start the script at the RPi, only the “listening on port 8000′.
    On the iPhone I use the correct ip-address and port-number, but always get the error “could not connect to your Raspberry”.
    iPhone 4, iOS 6.1.3, dutch

    Every help would be very appreciated!

    Reply
    • Jim at Fotosyn
      September 5, 2013

      Hi Jacob there is an issue with certain locales where the point (dot) is a comma on the pop up numerical keypad.

      I have a fix submitted to the App Store but if you type the IP address in using say notes or Safari you can then paste it in.

      Hopefully this will address your issue

      Reply
  31. Jacob
    September 5, 2013

    Hi Jim,

    I’m aware of the comma problem, but I copied/paste the correct ip-address, so I’m sure that is not the problem.
    I created the “berrycam” subfolder on the RPi by hand and ran “chmod 777″ on it, still no succes.
    So strange?

    Reply
    • Johannes
      September 6, 2013

      If you started like ” sudo python berrycam.py & ” you might find the berrycam folder in /root instead of /home/ Allthough the folder is created by the process for one reason or another it ran better after a. chmod 777 of this folder.

      Reply
  32. Stéphane
    September 6, 2013

    Hi Jim,

    Nice work, I have only 2 issues / questions:

    – I can’t use the app becaus I have an iPad 1 and iOS 5…why did you not support iOS 5 ?
    – Why do you use the IP address and not the network name of the pi ? This would made an aces over the wide wold web network with some dyndns stuff easy… And in my Network, all the devices use the internal DNS from my router, it is easier to remember an name Han an IP which could be allocated dynamically.

    Stephane

    Reply
    • Jim at Fotosyn
      September 6, 2013

      Stephane sorry should be doable. Leave it with me and I’ll get it in the next update. I’ll hook you up with an iOS 5 Testflight – thanks man!

      Reply
      • Stephane
        September 7, 2013

        Thanks Jim, you have my e-mail for the Testflight invitation :-)

        BTW: I did overread that The app suports FQN, sorry for the dumb question.

        Stéphane.

        Reply
      • Bruce
        September 7, 2013

        I am in the same position of having an iPad 1 running iOS 5.1.1. I don’t know when the next update will be but I would be happy to try it out as well. BerryCam is working well on an iPad2 and 2 iPhone 4s.
        Thanks, Bruce

        Reply
  33. Jacob
    September 6, 2013

    Finally, I got it working! After some testing I was convinced the problems was at iPhone side.
    I switched it to UK, re-started it, re-entered the ip-address, still no success.
    Then I decided to remove the BerryCam program from the iPhone, and re-downloaded it from iTunes.
    While the iPhone was still in US I had to entered ip-address en port-number and it made contact with the Paspberry running the script, for the first time! So it had something to do with the cache on the iPhone, rebuild by re-installing.
    I switched back to Dutch, restarted the iPhone, and everything is still working fine!

    Reply
    • Jim at Fotosyn
      September 6, 2013

      Jacob brilliant news- sorry I’ve been out and about today but glad you’ve found a workaround

      Reply
  34. Jasper
    September 6, 2013

    Hi,

    great app!!

    I don’t have time at the moment, but it should quite easy to change the berryCam.py script to work with gphoto2 in combination with a dslr. Off course all credit goes to Jim, but who wants the extra credit…

    regards,

    Jasper

    Reply
    • Jim at Fotosyn
      September 6, 2013

      Thanks Jasper!

      It’s here for everybody so feel free to hack! We’re all in it together learning so I’d be delighted to see where it goes !

      Reply
    • Jim at Fotosyn
      September 6, 2013

      But this sounds super cool!

      Reply
  35. Gareth
    September 7, 2013

    Hi Jim,
    great idea; great app. I got the Pi part working first time and the App installed on my iPad Ok. The app does not display correctly on the iPad, as when you press the settings icon ( so I can tell the app the IP address of my Pi) the dialog box does not display correctly. I think it is behind the front screen/layer or the GUI. It would be great if you could fix it please. for info it’s an iPad 3 running iOS version 6.1.3. Hapy to test a revised version. many thanks.

    Reply
    • Jim at Fotosyn
      September 7, 2013

      Hey Gareth thanks. Yup knew about the iPad issue and have an update pending in the App Store

      Reply
  36. Fred Reenders
    September 8, 2013

    works great on my iPhone 4S (got around the comma issue) but not on the iPad 3 (unable to get the IP address setting). Both have iOS 6.1.3. Very promising app!

    Reply
  37. Felix
    September 8, 2013

    Please make BerryCam for Android, thanks !

    Reply
  38. Ian Barton
    September 9, 2013

    Thanks for sharing your ideas. I have got an Android phone, but still haven’t read page zero of how to develop Android apps. However, looking at the Python script it’s really just acting as a simple web server. So with a bit of hacking I should be able to turn the whole thing into a pure webapp, which would circumvent the need to learn how to write Android apps:)

    Like you, I want to be able to do time lapse with a self contained unit. My main requirement is just to be able to take ad preview a few photos to make sure I have the camera aligned correctly.

    Ian.

    Reply
    • Jim at Fotosyn
      September 9, 2013

      Hehe Android version coming soon. But you’re right, indeed you cold create a webapp that does this trigger aspect for you!

      Reply
    • Jacob
      September 9, 2013

      > Like you, I want to be able to do time lapse with a self contained unit.
      > My main requirement is just to be able to take ad preview a few photos
      > to make sure I have the camera aligned correctly

      That is exactly the current use of this handy program.

      I think some simple extra functionality make it a complete workhorse!
      I imagine a extra tab named “start time-lapse” with three controls: time between shots in seconds, total period of time-lapse in minutes and the location where to store (on the sd-card) the pictures. And a button “start time-lapse”.This will send the “raspistill -t -tl -o .jpg &” command to the RPi.

      I’m sure many people would really like this!

      Reply
      • Jim at Fotosyn
        September 9, 2013

        This is a brilliant idea! I’ll look into it for an update

        Reply
  39. Dario
    September 9, 2013

    HI, I installed berryCam in my ipad and iphone and installed the python script. When I type:
    sudo python /home/berryCam.py &

    I get this message:
    File “/home/berryCam.py”, line 1

    ^
    SyntaxError: invalid syntax

    Also, ever since I installed the berryCam python script, whenever I take a picture using raspistill -o image.jpg my usb ports disconnect for about 3-5 minutes.

    Reply
  40. manfred
    September 15, 2013

    … thanks – great job!

    Reply
  41. leo
    September 16, 2013

    Just wondering if in a future you would be able to extend the apps compatibility to ios5.1.
    I found this app functionalities great, but I cant install ios6 on my device. I dont really know if you can actually test the app on an 5.1ios device, but Im sure the community is able to help you on testing.

    Cheers

    Reply
    • Jim at Fotosyn
      September 16, 2013

      Yes this is possible. There’s no problem achieving this. I just need to lower the baseline operating system which I’ll do for the next release.

      Thanks

      Reply
      • Leo
        September 25, 2013

        Great news!
        Looking forward it

        Reply
  42. trevor grant
    September 16, 2013

    Why am I getting permission denied when trying to write the file? Have tried various ways but still seem to get this message. Can you please help?

    pi@raspberrypi /home $ cd /home
    pi@raspberrypi /home $ wget https://bitbucket.org/fotosyn/fotosynlabs/raw/9819edca892700e459b828517bba82b0984c82e4/BerryCam/berryCam.py
    –2013-09-16 15:51:45– https://bitbucket.org/fotosyn/fotosynlabs/raw/9819edca892700e459b828517bba82b0984c82e4/BerryCam/berryCam.py
    Resolving bitbucket.org (bitbucket.org)… 131.103.20.168, 131.103.20.167
    Connecting to bitbucket.org (bitbucket.org)|131.103.20.168|:443… connected.
    HTTP request sent, awaiting response… 200 OK
    Length: 5169 (5.0K) [text/plain]
    berryCam.py: Permission denied

    Cannot write to `berryCam.py’ (Permission denied).

    Reply
    • Jim at Fotosyn
      September 17, 2013

      Hi Trevor…

      You may need to do this as root so try…

      sudo wget https://bitbucket.org/fotosyn/fotosynlabs/raw/9819edca892700e459b828517bba82b0984c82e4/BerryCam/berryCam.py

      Reply
    • Gary Littlemore
      September 18, 2013

      That’s the same problem I’m having, I tried the ‘sudo’ at the start but that didn’t work.

      Reply
  43. Jacob
    September 18, 2013

    I want to be a volunteer with testing!
    I have a iPad 1 (iOS 5.x) and an iPhone 4 (iOS 6.x).
    And it was my idea to extend the functionality of the app to start the time-lapse sequence. So I want te be involved… ;-)

    Reply
  44. Yang
    September 25, 2013

    Hi,

    I am connecting my Rpi directly to my laptop using an Ethernet cable and the Rpi is sharing internet connection with the laptop which is connected to internet using WifFi.

    So I have two IP addresses for my laptop, one is the IP for WiFi internet, the other is the LAN IP: 192.168.137.1. My Rpi IP is
    192.168.137.151.

    My iOS device is connected to the same WiFi. I’ve tried all IPs on berryCam app but none is able to connect to Rpi.

    How can I get it to work?

    Thanks

    Reply
    • Jim at Fotosyn
      September 25, 2013

      Could you try it with an Ethernet connected directly into the RPi?
      Hard to say but I imagine it may be related to routing or some other network-y thing.

      Reply
  45. dave wallace
    September 25, 2013

    Hi your app looks amazing. Will it be available on android soon? I’d like to use it in a few weeks at a friends a wedding.

    Reply
  46. fboteroh
    September 29, 2013

    Thank you for sharing your app! It’s wonderful! I’m waiting for the movie version.

    -BoF

    Reply
    • Jim at Fotosyn
      September 30, 2013

      Hey thanks! Maybe will look into this at some point. Video and Timelapse.

      Reply
  47. Simon
    September 30, 2013

    Absolutely brilliant, thank you! Worked first time. Yes I know how to operate the camera via SSH, but this is such an elegant and time-saving solution

    Reply
    • Jim at Fotosyn
      September 30, 2013

      CHeers Simon! Hoping to add more features in the coming months but appreciate your kind comments :D

      Reply
  48. Gary Littlemore
    October 3, 2013

    Could you work with Sam @ http://www.raspbmc.com and get this incorporated at source with RaspBMC

    Reply
  49. Jim at Fotosyn
    October 5, 2013

    Hi All…

    Just submitted v1.2 to the App Store which addresses some small-ish issues…

    – UI tweaks for iOS 7
    – Set baseline requirements to iOS5 to allow you folks with iPad1 to use this
    – Some tweaks on the UI for 3.5 inch devices (3GS/4/4S etc)

    More updates will follow later this year notably including:

    – Timelapse
    – Possibly Geolocation using iDevice and CoreLocation
    – Enhanced EXIF data handling

    Reply
  50. Gijs
    October 17, 2013

    Hi Jim,

    is there a way to configure the script to output to another folder?
    I’m running it as root (@reboot), but I’d like the output to be saved to my external hdd which is connected at /media/fotostore/
    and I’d like the output to be saved in /media/fotostore/berrycam

    best regards,

    Gijs

    Reply
    • Jim at Fotosyn
      October 21, 2013

      Hey Gijs…

      Hope you’re good. I’m pretty sure if you just put berryCam.py in the /media/fotostore/ folder, the rest will happen.
      This would be by far the easiest way.

      Simply cd your folder and wget when in there.

      Let me know how you get on!

      Jim

      Reply
  51. Fazlee Rezuan
    October 21, 2013

    Hello, i have been using BerryCam for a while now. Greate apps! I know this is big request, can you add support for PiPan Kit as well? :)

    Reply
    • Jim at Fotosyn
      October 21, 2013

      Fazlee… great to hear from you thanks.

      Sounds like a great idea. Another person has suggested something similar to me and I am pretty sure something could be done. I’ll need to check out Pi Pan and see what I need to do. Might try this later this year and get back to you.

      In the meantime, delighted you’re getting use out of the project! Happy Pi Shooting!!

      Jim

      Reply
      • Fazlee Rezuan
        October 21, 2013

        Thank Jim! :)

        Reply
  52. Noel Dixon
    October 21, 2013

    Hey Jim, worked first time for me out of the box :) happy boy

    Reply
  53. Gary Littlemore
    October 22, 2013

    Has anyone got BerryCam working (out of the box) with RaspBMC (www.raspbmc.com)? Following lots of different support posts on here I’ve still been unsuccessful in getting it install on RaspBMC? Anyone point me in the direction of getting it working would be greatly appreciated.

    Reply
    • Jim at Fotosyn
      October 22, 2013

      You got Python running? I imagine too there are dependencies in the libs for the camera module but I couldn’t say for sure but all BerryCam does RPi side is some Python stuff

      Reply
  54. Jimmy Gunawan
    October 25, 2013

    Dear Jim, thanks for providing the BerryCam app to make all this very easy for first timer Raspberry user like me! I manage to have everything working.

    Next thing I hope to be able to do is: TimeLapse feature, whether it is via iPhone/iPad app or by command line.

    Logically, using Python, we can setup timelapse/auto picture capture. I will look around for that.

    However, I also want to connect MakeyMakey capture. Any idea?

    Reply
    • Jim at Fotosyn
      October 28, 2013

      Cheers Jimmy,

      Should be easy to do, just fudge the RasiStill command to execute with time-lapse.
      In time I will implement this functionality into the app.

      Cheers!

      Jim

      Reply
  55. Andreas
    November 4, 2013

    I got it to work for one photo with the camera module. seems to be a camera module issue.

    Is there a way that I can use my usb camera?

    Reply
    • Jim at Fotosyn
      November 4, 2013

      Hi Andreas…

      I have found this too… and trying other units returned the same problem. One thing I’d suggest it that you make sure the small gold coloured ‘Sunny’ connector above the lens is firmly snapped into place. Sometimes it pops out, for some weird reason.

      Thanks – let me know how you get on!

      Reply
  56. Andreas
    November 4, 2013

    I only got one picture once then I could never get a conncetion to the camera module again.
    I now want to try it with an usb camera. Is there a way to do that with your software?

    Reply
    • Jim at Fotosyn
      November 4, 2013

      You probably could fudge the Python script to do that yes, but it’s aimed at the camera module the way I have written it. And you’ll lose the special effects and exposure control which are used by the RaspiStill software that drives the camera module.

      What error are you getting from the camera unit??

      Reply
  57. Justus
    November 5, 2013

    Great work! Thank you!

    Would love to see 4 additional button (up, down, right, left) to contol some servos for pan/tilt.

    Reply
  58. Aaron
    November 7, 2013

    Hi Jim,

    Thanks for providing this app – it is absolutely fantastic…an awesome idea and now using on my ipad.

    Anyway, just wanted to let you know that it inspired us to make a version for Android which we have released for free as well. I hope that you like it…still a bit of a work in progress though, with some tweaks coming soon.

    https://play.google.com/store/apps/details?id=com.pisight

    Let me know when you add video and timelapse support to the handler script and maybe things like -ISO and -ss aswell for manual exposure control. Then can update to add those.

    Someone above made a suggestion for Pi Pan too – what an excellent idea! I backed their Kickstarter and it is a great bit of kit. On the Pi Pan project they have the Pi Light too…it would be cool to add functionality for turning this on/off if you have one installed. Could come in handy for use with Pi NoIR and an IR LED version of the Pi Light.

    Cheers

    Reply
    • Kris Tucker
      March 16, 2014

      i Have the piNOIR, and it performs amazingly. in a room with the lights off, lit only by the many LEDs of my minions, it takes a perfect picture that looks like daytime with the lights on. and with perfect colors. it really looks just like a daytime picture! i suspect that unless you are in a truly 0 lux environment, you can probably do fine with no supplemental IR illumination. also, if you dont add the IR leds, you can avoid that really washed out spinach vision like almost all the other IR security cameras. its awesome.

      Reply
  59. David
    November 10, 2013

    Hi Jim,

    the app is absolutely brilliant, thank you so much for making it available. A really nice design, and installation worked a treat.

    Reply
    • Jim at Fotosyn
      November 11, 2013

      That’s great news David and thanks do much for your kind comments

      Reply
  60. Francois
    November 11, 2013

    Worked 1st time from my htc one, over cellphone network through my firewall – great job

    Reply
  61. Gary Littlemore
    November 15, 2013

    I’ve install the berrycam.py on my wheezy,I did the sudo python /home/berryCam.py & and it says

    B E R R Y C A M — Listening on post 8000
    Please ensure your BerryCam App is installed and running on your iOS device.

    When I start the app running the photo bit is all black and I get the following error

    192.168.0.4 – – [15/Nov/2013 13:07:54] code 404, message File not found
    192.168.0.4 – – [15/Nov/2013 13:07:54] “get /berrycam/20131115/IMG-5.jpg HTTP/1.1″ 404 –

    my Pi is running on 192.168.0.12 and the app is configured to 192.168.0.12

    Reply
    • Gary Littlemore
      November 15, 2013

      I think I’ve resolved my issue, I’m removed the app from my iPhone and re-installed it again and it now seems to be working.

      Reply
      • Jim at Fotosyn
        November 15, 2013

        Ah great news Gary…. A wee reinstall sometimes does the trick.

        Reply
  62. Kb8aob
    November 25, 2013

    Cool
    Thanks!

    Reply
  63. Eric
    November 30, 2013

    Hi Jim,

    Very nice creation!

    Is it possible for you to add “Vertical Flip” option in the app? I can find the “Horizontal flip” option but can’t find the Vertical flip one.

    That would be very useful as my camera is installed upside down due to the form factor of my enclosure.

    Thanks in advance!

    Reply
    • Jim at Fotosyn
      December 1, 2013

      Hi Eric… Thanks for your kind words!
      If you wished you could hack this into the BerryCam script using the option

      ‐rot, ‐‐ rotation: Set image rotation (0 ‐359)

      In your case add the -rot -180 to the raspistill command within the command batch like so…

      command += " -rot -180 "

      Reply
    • Jim at Fotosyn
      December 1, 2013

      Might build an image rotate into a future build actually.

      Reply
  64. Stanley
    December 20, 2013

    Can you also do a better startup script for this ?

    $ sudo vi /etc/init.d/berrycam
    $ sudo chmod 755 /etc/init.d/berrycam
    $ sudo update-rc.d berrycam defaults

    I did a simple one :-

    cd /home
    sudo /usr/bin/python /home/berryCam.py > /dev/null 2>&1 &

    Seems to work…

    Reply
  65. Loe
    January 14, 2014

    Hi Jim,
    I’m still getting the 404-error.
    So…I checked the URL you refer to in Berrycam:
    In my case http://10.0.0.16:8500/berrycam/firstrun….
    I created a directory named ‘firstrun’. Now I don’t get a 404-error but the problem of not making any pictures is still there.
    My iPad on the other hand works fine and uses the same settings of course.
    Probably an error in the iphone-app?
    I really love your app and it would be a pity not be able to use it on my iPhone.
    Kind regards,
    Loe

    Reply
    • Jim at Fotosyn
      January 15, 2014

      Hi Loe… I’m sorry to hear this.
      First question is are you running as sudo?
      What version of iOS on the iPhone are you running??
      I’ll maybe check this out tomorrow and see what issues I can find.

      Reply
  66. brian
    January 15, 2014

    Worked a treat out of the box, on the Ipad, didn’t on the iphone but I have forwarded some ports on the hub and tomorrow is another day

    Reply
    • Jim at Fotosyn
      January 15, 2014

      Great to hear you got 50% success Brian… good luck with the iPhone!! Let me know how you get on.

      Reply
  67. brian
    January 15, 2014

    A couple of little fruit tarts arrived and a cup of tea, so I had to power up and see if the port forwarding for the Raspberrypi I enabled in my BTHomehub had done anything, and after changing the port number from 22 to 8000 I connected ok and took a picture, ideal, thanks again.

    Reply
    • Jim at Fotosyn
      January 15, 2014

      Excellent! I was going to suggest fruit tarts… they can help. Raspberry ones I hope!!

      Reply
  68. Loe
    January 16, 2014

    Hi Jim,
    My iPad is jailbroken (IOS 7.0.4), running fine.
    My iPhone isn’t, IOS 7.1b3.
    Why is it trying to reach a folder berrycam/firstrun on the iPhone?
    That is what your builtin browserfunction shows.
    Of course I am running as sudo, otherwise your pyscript wouldn’t run I think.
    Regards,
    Loe

    Reply
    • Jim at Fotosyn
      January 16, 2014

      Lee… thanks for this.
      I can’t discuss beta software at this time as it is not publicly available and therefore not supported by BerryCam.
      The firstrun aspect is to do with initial settings for the app.

      Reply
  69. Loe
    January 16, 2014

    Hi Jim,

    My iPhone isn’t, IOS 7.1b3.
    Why is it trying to reach a folder berrycam/firstrun on the iPhone?
    That is what your builtin browserfunction shows.
    Of course I am running as sudo, otherwise your pyscript wouldn’t run I think.
    Regards,
    Loe

    Reply
  70. brian
    January 17, 2014

    Working spot on. Berry Cam on a Jail broken Iphone 4s

    Reply
  71. Loe Walter
    January 22, 2014

    Hi Jim,
    It’s me again!
    To be sure it’s a beta-problem, I restored my iPhone 5 IOS 7.1 b4 to 7.04.
    What do you think?
    Berrycam ran without any problem!!
    So, when 7.1 final is coming ….. you know what I mean?

    Regards,
    Loe

    Reply
    • Jim at Fotosyn
      January 22, 2014

      Hey Loe… that’s cool thanks for letting me know about this.

      I am thinking about porting BerryCam to a more platform neutral format so that everybody can use the app.

      I’ll probably create a version of the app that uses a web app front-end, but lives on the Pi itself. This’ll make installation much easier as it’ll be local (and maybe faster to run too).

      It also means all our friends on Android can use the app with the same UI, and it’ll pretty much work on any modern Smartphone or Tablet – be it iOS, Android, Windows, Blackberry etc.

      It’ll still launch in the same way with a home screen bookmerk and run frameless in a web-browser. So effectively it’ll be the same experience with the same interface.

      Reply
  72. MarkH
    January 29, 2014

    Seems as though the 404 issue is a common one. I had this up and running on a previous RPi install, now nomatter what I try I cannot get past this issue.

    Steps so far:

    Connect camera and enable in raspi-config
    Both camera and iphone connected to the same WiFi network
    Download python script (both in my local scripts dir, and in /home to see if there was a dependency on location)
    Install app on my phone
    Run script, run app – successfully connect using RPi IP address
    Click button to take a shot, which says “capturing”, finishing” up etc – but then shows me the message to say the app cannot connect the the RPi

    I’ve tried as many combinations as I can think of to troubleshoot, re-installing the app, restarting the pi, removing all directories and recreating, running as sudo/local, 777 permissions, but simply can’t get past this error I can see in the logs:

    192.168.0.3 – – [29/Jan/2014 17:43:49] code 404, message File not found
    192.168.0.3 – – [29/Jan/2014 17:43:49] “GET /berrycam/20140129/IMG-4.jpg HTTP/1.1″ 404 –

    It’s a fantastic app from using previously, which is why I’m dying to try and get it working again! Any help would be greatly appreciated :)

    Reply
    • Jim at Fotosyn
      January 30, 2014

      Thanks Mark… I’ll take a look tonight and see if there’s any problems. I have a newly built version of Raspbian that I can try it with.

      Reply
      • MarkH
        January 31, 2014

        Hi Jim,

        Thanks for responding (and thanks to the comment below about iOS version!)

        I have dug into the issue a bit further, and I’m getting the impression RPi hardware might be the root cause. Trying to call standard camera commands never gets anywhere – which to be very honest is the first direction my troubleshooting should have taken.

        Standard raspistill commands don’t work, but I don’t have a spare RPi or spare camera module to isolate the problem completely. I tried detaching and re-attaching the sunny connector on the camera PCB, but that didn’t change behaviour. I ordered another ribbon cable in case that was damaged (99p +VAT from CPC for any other UK RPi’ers out there) and I’ll see if there is any change. If not I’ll have to send the camera back.

        Might be a hard lesson for me to learn – but if anyone else is seeing the 404 error, check your hardware using the standard “raspistill -v -o test.jpeg” command. If that doesn’t work, then applications like berrcam aren’t going to be able to control a non-working piece of equipment.

        Cheers,
        Mark

        Reply
        • Jim at Fotosyn
          January 31, 2014

          Hi Mark

          I had the same issue a while back. I’d maybe try giving the ‘sunny’ connector a good press back into place. I tried this and heard a click and alas, my camera started working again. Odd how it popped out in the first place. What error message are you getting?

          Reply
          • MarkH
            February 5, 2014

            Hi Jim,

            The camera output hangs after the “Starting capture 0″ message which using you see in the output using -v/verbose mode in raspistill. There’s a lot of discussion around camera issues on the raspberry pi forum, and I’ve come to the conclusion this isn’t a software issue (either OS or 3rd party applications) but a hardware fault. I’ve ruled out the ribbon cable as swapping this out had no impact. I’ve tried snapping the ‘sunny’ connector, but again made no difference.

            Contacted CPC today to return the camera module. With any luck I just had a faulty unit, even though it did work fine when I first installed it. Might need to borrow a Pi to completely isolate the problem, but I’ll get into that if the new camera doesn’t work.

            I’ll update when I have a result.

            thanks,
            Mark

  73. Loe Walter
    January 30, 2014

    Hi MarH,

    I got the same error on my iPhone, but my iPad did very well.
    Difference? My iPhone runs IOS 7.1 beta4!!
    Restored it to a former version 7.0.4 and voila: OK!!

    Reply
  74. MarkH
    February 8, 2014

    Success! Looks as though the issue can be placed squarely on faulty hardware – just tested the new camera I received as a replacement, all working fine – both Raspistill and BerryCam :)

    Right, next stage – timelapses! Thanks again for the tools Jim :)

    Reply
  75. Ryan
    March 3, 2014

    First of all thanks for this!

    I’m just going to add a rotation options in the script, but apart from that I was wondering two things (I’m a newbie to coding so excuse me if these are answered or are really simple!)

    I am running BerryCam remotely by opening up my firewall. After I SSH’ed in, I first ran the BerryCam script on the pi using the steps mentioned above.

    Everything seemed to be working, but when Ctrl-C to get back to the command line, BerryCam is still running and if anyone uses the iOS app or accesses the files from the web, the debug data clogs up my command line session. How do I stop this from happening?

    And how do I actually properly stop the BerryCam scrip from running on the pi?

    Thanks,

    Ryan

    Reply
    • Jim at Fotosyn
      March 5, 2014

      Hey Ryan that’s great let me know how you get on! As a start point you can easily remove the -v option from the Raspistill comman in Python, that should keep your session clear

      Reply
  76. Kris Tucker
    March 16, 2014

    So, i *really* love this application. but i have suggestions on minor changes you should probably implement.

    dont install to /home/berrycam.py if you do, you can just open a web browser and point it to (in my case) http://raspberrypyro.local:3141 and it will let you give you access to the directory the script is in. so someone could then get into every home folder of every user. i use avahi and i also changed the port (to pi, you might notice). webiopi and motion use the 8000 port by default. i have installed apache which is why i chose this folder, but install the script to /var/www/raspberrypyro.local/berrycam/berrycam.py i used this folder because apache already served it up. putting it inside its own folder then ensures that someone could ever get more than just the images it produces. which can actually be turned into a good thing! because, i have added ” -l latest.jpg ” as another argument to the raspistill command. it creates/update a symbolic link to the most recent picture taken, as if you were also running: sudo ln -l berrycam/`date +%Y%m%d`/IMG-`ls berrycam/`date +%Y%m%d` | grep -o [0-9][0-9] | tail -1`.jpg ok i admit i was trying to show off with that awesome one line command. so anyway, if you do fire it up in a web browser, you can rely on that always being the latest picture, so you dont need to worry about calculating the increment in the file names. (and not needing that crazy one-liner)

    if you are interested, ive also converted your code into PHP and shell script augmented with mod_rewrite. this way, i can run it under the apache server without having to create the additional instance of the python simple server, because of the security issues it creates. and i already had webiopi running, and so it also helped keep processor use down.

    but really, man, props on this app. i love it. let me know if you want any of the code that was inspired by you. i think i could also make you a very thorough tutorial, especially if i can convince you to incorporate a few of my suggestions.

    cheers and much joy!

    Reply
  77. Martin
    March 16, 2014

    Hi, thank you for this fantastic app! I’ve really enjoyed using it over the last month, but now I’ve updated my i-pad iOS to 7.1 and the app has stopped working, such a shame. Any idea as to why, or what I can do? Thanks.

    Reply
    • Jim at Fotosyn
      March 16, 2014

      Hey Martin thanks for the kind comments!! A fix is in the way with a pile of substantial improvements

      Reply
      • Martin
        March 16, 2014

        Hi Jim, that’s great news, I look forward to the update. Thanks for the swift reply, and keep up the super work!

        Reply
  78. Jim at Fotosyn
    March 16, 2014

    Hi all, a note about what’s been going on with BerryCam —
    http://www.fotosyn.com/coming-soon-berrycam-express/

    Reply
  79. Kris Tucker
    March 18, 2014

    i created a init.d script, you may need to customize the variables at the top depending on if you changed anything from default

    ### BEGIN INIT INFO
    # Provides: berrycam
    # Required-Start: $remote_fs $syslog
    # Required-Stop: $remote_fs $syslog
    # Default-Start: 2 3 4 5
    # Default-Stop: 0 1 6
    # Short-Description: Start berrycam at boot time
    # Description: Start berrycam at boot time.
    ### END INIT INFO

    #! /bin/sh
    # /etc/init.d/berrycam

    #set home to the directory where the berrycam script is
    #using the suggested install place, its /home but i dont recommend cause of security
    HOME=/home
    #set name to the name of the .py executable (berryCam.py by default)
    NAME=berryCam.py
    #exec should be the full path to the executable
    EXEC=$HOME/$NAME
    #this is the name of the pid file to keep the pid in
    PID=$EXEC.pid
    export HOME NAME EXEC PID

    case “$1″ in
    start)
    echo “Starting berrycam”
    #start berrycam

    start-stop-daemon –start –quiet –chdir $HOME –pidfile $PID –exec $EXEC –test > /dev/null \
    || return 1
    start-stop-daemon –start –quiet –chdir $HOME –pidfile $PID –exec $EXEC –background –make-pidfile — \
    || return 2

    ;;

    stop)
    #stop berrycam
    echo “Stopping berrycam Server”
    kill `cat $PID`
    rm $PID

    ;;

    *)
    echo “Usage: /etc/init.d/berrycam {start|stop}”
    exit 1
    ;;
    esac

    exit 0

    Reply
    • Loe Walter
      March 18, 2014

      Hi Kris,

      Error at line 46 ….stop)…?
      Could you check this.

      Regards,
      Loe

      Reply
      • Kris Tucker
        March 18, 2014

        Loe, im not sure why it would not work, perhaps something in the cutting and pasting? or maybe i have an environment variable set differently? i was running and executing all manner of code while creating that. ive uploaded it to my website, see if it works any better? also, are you able to make sense of the variables it uses and make sure its correct for how you have berrycam set up? youll want to name the file “berrycam” putting it in the /etc/init.d/ directory, and chmod 755 it.

        i uploaded my actual current working script, so you will need to set the variables according to how you have yours installed. if you need help, i dont mind. http://pyrotuc.com/contactme.php

        file is at http://pyrotuc.com/berrycam/init.d.berrycam

        Reply
  80. Loe Walter
    March 18, 2014

    Hi Kris,

    I got the following errors on line 31 and 33 (both “return…”)

    Got a clue????

    Kind regards,
    Loe

    Reply
  81. Kris Tucker
    March 18, 2014

    Loe,

    I can only guess, that is the actual working in-place init script that i use.
    I have extensively modified the berry cam script, almost beyond recognition. it might be something to do with that. i also have none of the files in the places they are supposed to be. in the init script i (tried) to explain the variables, but them being so generic sounding might have confused things.

    i had thought of publishing my berrycam script, but, i didnt want jim to feel usurped. and the modifications end up requiring being familiar and comfortable with python, bash, and that stuff.

    if you will contact me by email, it should be pretty easy to sort this out. if you will, use fromloe@pyrotuc.com (i own pyrotuc.com so *@pyrotuc.com goes to me. i use the field to help organize and trace origin)

    Reply
    • Jim at Fotosyn
      March 18, 2014

      Hey Kris…

      You should TOTALLY publish your own take on the camera thing. I have no reason to feel upstaged… not why I do this at all and it would be great to have been part of what might be the ultimate piece of software for the Pi.

      And of course it would be great to see what you’ve done. It’s all about progress after all!!!

      Jim

      Reply
  82. Kris Tucker
    March 18, 2014

    well alright then. cool. i dont suppose the ios app is open source like the .py script?

    there are only a few things id want to change. there seems to be a timeout a wee low. when i try invoking imagemagick to add a timestamp at the bottom, the ios app goes to “cant connect….” but then when i reconnect, the image it pulls up indeed has the time stamp. i tried reworking how im invoking it, but none of it seems to matter.

    because of the way my camera is mounted, -vf and -hf are mandatory. it doesnt move, so i just did command+=” -vf -hf ”

    probably the most useful thing i modified, was to add “-l latest.jpg”. it creates a soft link to the most recent image. so, latest.jpg is ALWAYS the most recent picture berrycam has taken. doing that, and then adding a index.html that just points to that file, and changing the port to 80 (i moved my camera, to a machine not running apache. port 80 is open.), you can just go to http://yerhostname it pops up the most recent image. much joy, very wow.

    a note, where it says enter the ip address, it doesnt actually have to be an ip, just something.something (homeslice.local in my case)

    about a hop, skip, and a jump away from having the entire thing running as a php script under apache. if im running apache, no need to httpsimpleserver another socket.

    i made a shell script that looks for the folder in the date syntax, looks at the files and gets the increment, and takes a new picture and names it accordingly. im not sure it has a purpose, i made it just cause.

    i saw about berrycam express, but heres the thing. theres a million implementations of a web interface to raspistill. i paid for berrycam (i think i paid, i paid right?) to have it as a ios app independently. so, web interface is cool, just dont ditch the app.

    i need to clean up the .py, and apparently tweak the init, and ill post it up. im not a UI guy, which is part of the appeal of the ios app to me. if i could just tweak its GET, i can implement a lot more functionality on the server side.

    anyway, ill try to get it cleaned up and posted tonight or tomorrow. check http://pyrotuc.com/berrycam/ , thats where ill put it.

    im thinking of trying to make the app work with webiopi. i dont really know python though. never messed with it till i got a pi

    Reply
    • Jim at Fotosyn
      March 18, 2014

      The App’s about to be removed from the App Store in the next few weeks… BerryCam is being ported to a fully web based stack… KnockoutJS with HTML5 and all the LESS stuff if you wanna do bower/grunt builds yourself.

      Means it’ll pretty much run on anything – and it is hosted directly within the SimpleHTTPServer provided by Python so no need to do any IP address stuff.

      Reply
      • Ryan
        June 17, 2014

        Awesome! Have you looked at the picamera library? I feel like it is a bit more useful and lets you send stuff to a socket as well, but has a lot more resolutions and framerates available! Very well documented, I wish the guy had a donate button somewhere!.

        Keep up the good work. I’ve been struggling to use learn some html5/jquery and stuff trying to use picamera library to stream my PIR based security camera python script. Same goal, python based on the camera side.

        Reply
        • Jim at Fotosyn
          June 17, 2014

          Thanks Ryan!

          I am pretty sure you could fork the BerryCam Express stuff to use PiCamera as opposed to the RaspiStill stuff. Currently forking BerryCam Express off into an AngularJS flavour too.
          http://berrycam.net/

          Reply
  83. Kris Tucker
    March 18, 2014

    well damn. i dont much like that at all. guess theres not really much point in this after all. are you going to call it YARW?

    Reply
  84. Kris Tucker
    March 19, 2014

    yet another raspicam webinterface

    instead of removing the ios app, why not just add a function to process and return what its expecting?

    or just call it legacy and let it be, and/or point people at my website for “unofficial support”?

    i was adding in support for other cameras and then also motion

    but, mod_rewrite under apache can, and i guess now will, fool the ios app with like.. a single line.

    i just think its a shame, and by the number of comments, people still use this app….

    Reply
    • Jim at Fotosyn
      March 19, 2014

      Kris

      I’m sorry you feel this way about upcoming developments; and at the same time say thanks for the enthusiasm (and passion) you’ve shown for the iOS app.

      I’d have thought perhaps this web based solution would be ideal for you as it would have been a foundation to allow you to have direct control over your own features and ideas and how you implemented them directly with your PHP/Apache stuff.

      To be honest the new version doesn’t feel any different to the app and it works just fine on a range of devices as well from a non retina iPhone or iPod right up to the latest iPads and Android handsets and tablets.

      I guess what I am trying to say is that I wanted to make this software become independent from any particular OS or platform. Some developments in iOS 7.1 have caused the app to become inoperable and the raft of feature requests would probably have compounded maintenance issues going forward. In hindsight I may perform the necessary reworks to keep it working but inevitably it is going to be way behind the newer web app version. And this will become apparent moving forward as people fork the source code and rework it in their own ways. Actually kinda a similar scenario to where you’re at with the work you’ve been doing.

      There is also thedesire to turn BerryCam into a platform for learning code. I’ve spoken to teachers and Scout leaders who see this as a great conduit for learning code and to a point even the folks at the Raspberry Pi foundation themselves. There’s a tangible outcome if you couple it with the Tin Can Camera concept and it becomes a working, almost living object. Regardless of whether or not the Objective-C source code was open source or otherwise it still needs to be provisioned and deployed onto devices on what is essentially a closed system. And that kinda goes against the grain of what I’m trying to achieve with this app and the Timelapse project.

      Anyways – in hindsight should I find the time I shall address the issues in the iOS App in the interim but moving forward it will be the web app that will receive the focus of improvement.

      Jim

      Reply
  85. Hans
    March 20, 2014

    Hi there,

    isn’t it possible to use the BerryCam app on two devices? I have an iPhone which I tried first to take pictures with my Raspberry Pi cam. After a while, I installed the app on my iPad mini but it isn’t possible, to get any picture while working fine with the iPhone. On iPad, I always get a black screen with the text “berrycam” in the upper left corner. What’s going wrong?

    Reply
    • Jim at Fotosyn
      March 20, 2014

      Hi Hans… It should work but it sounds like your iPad Mini is running iOS7.1 which isn’t working with Berrycam at the moment. I am working on a fix and there will be a new web app version out soon which will address this problem.

      Thanks!

      Reply
      • Hans
        March 21, 2014

        Thank you Jim, that seems to be the problem: my iPad mini is on iOS 7.1!

        Reply
      • Hans
        March 21, 2014

        …by the way: if you’re working on a new version, could you make the timeout to connect to the RPi a little bit longer? I’m connecting using the internet and if the connection is not in a really good condition, I get the screen that BerryCam can’t connect very early.

        Reply
  86. Robin Newman
    March 22, 2014

    Had this working earlier. Just tried again and now gives error.
    —————————————-
    Exception happened during processing of request from (‘192.168.1.60′, 50494)
    Traceback (most recent call last):
    File “/usr/lib/python2.7/SocketServer.py”, line 295, in _handle_request_noblock
    self.process_request(request, client_address)
    File “/usr/lib/python2.7/SocketServer.py”, line 321, in process_request
    self.finish_request(request, client_address)
    File “/usr/lib/python2.7/SocketServer.py”, line 334, in finish_request
    self.RequestHandlerClass(request, client_address, self)
    File “/usr/lib/python2.7/SocketServer.py”, line 649, in __init__
    self.handle()
    File “/usr/lib/python2.7/BaseHTTPServer.py”, line 340, in handle
    self.handle_one_request()
    File “/usr/lib/python2.7/BaseHTTPServer.py”, line 328, in handle_one_request
    method()
    File “berryCam.py”, line 29, in do_GET
    awb = “‘” + queryParsed['awb'][0] + “‘” # Set AWB mode
    KeyError: ‘awb’
    —————————————-
    192.168.1.60 – – [22/Mar/2014 15:32:47] code 404, message File not found
    192.168.1.60 – – [22/Mar/2014 15:32:47] “GET /berrycam/20130904/IMG-5.jpg HTTP/1.1″ 404 –
    192.168.1.60 – – [22/Mar/2014 15:32:47] code 404, message File not found
    192.168.1.60 – – [22/Mar/2014 15:32:47] “GET /berrycam/20130904/IMG-5.jpg HTTP/1.1″ 404 –

    Running IOS 7.1 and also just upgraded the camera drivers. Raspistill works from command line.

    Reply
  87. Jim
    March 23, 2014

    BerryCam 1.2.1 pushed to App Store. Fixes issues related to image capture in iOS7.1. Should be available soon.

    Reply
    • Jim at Fotosyn
      March 28, 2014

      BerryCam 1.2.1 should update on your devices – now available in the App Store. Thanks for your patience everybody!

      Reply
  88. Loe Walter
    March 28, 2014

    Hi Jim,

    This was quick after all!
    And….everything works fine!!

    Thanks.

    Reply
    • Jim at Fotosyn
      March 28, 2014

      Thanks Loe yeah the review process to get the update out with Apple is really slick these days. This was the quickest ever

      Reply
  89. Jim at Fotosyn
    April 13, 2014

    Hi all, just a quick note to say that BerryCam Express is now available and will allow you to use BerryCam on devices like your Android smartphone and tablet; desktop or other device with a web browser.

    http://berrycam.net/

    Reply
    • Kris Tucker
      April 20, 2014

      thank you for leaving the iOS app there. i apologize for snarkiness.

      i went to check out berrycam express, but…

      i had started using raspiMJPEG – pretty good web-friendly video streaming from the raspicam. it has a web-interface too which is pretty functional and barebones as far as UI layout. however, berrycam and berrycam express cant run while its running… soooooo

      if you are using raspiMJPEG, and just want the ability to use the berrycam app to load the current frame, disregarding any config options, you can pop in a quick .htaccess directive to just feed it the current frame

      open your .htaccess file (probably something like /var/www/.htaccess) and plonk in
      ——–
      RewriteEngine On
      RewriteCond %{REQUEST_FILENAME} !-f
      RewriteCond %{REQUEST_FILENAME} !-d
      RewriteCond %{REQUEST_FILENAME} ^berrycam/
      RewriteRule ^berrycam/([^/]*)/IMG-([^/]*)\.jpg$ /cam.jpg [L]
      ——
      with that last part thats /cam.jpg being the path to the symlink to the current frame. youll want to create it with sudo ln -s /run/shm/mjpeg/cam.jpg /var/www/cam.jpg if you havent already.

      the web interface has an installer that gets everything going, its got a wiki-thingy at http://elinux.org/RPi-Cam-Web-Interface

      ill be diving into all of it and seeing if i can mangle together something with the nice web UI berrycam express has, and still preserving video streaming. i mean, unless you wanted to do it jim… vvviiiidddeeeoooo

      Reply
  90. jacobd
    April 27, 2014

    Hi,

    The url “sudo wget https://bitbucket.org/fotosyn/fotosynlabs/raw/9819edca892700e459b828517bba82b0984c82e4/BerryCam/berryCam.py” does not work (sunday April 27).
    On my RPi I get the error “Connecting to bitbucket.org (bitbucket.org)|131.103.20.167|:443… failed: Connection timed out.”
    Is there something wrong with the url or with the server?

    greetings,
    Jacob

    Reply
    • Jim at Fotosyn
      April 27, 2014

      Hey there I’ll update the link. Was this on the Instructables post or the Fotosyn Blog? Thanks!

      Reply
  91. Tim Conroy
    April 29, 2014

    Working like a charm ! Awesome work. Question. How do you delete photo’s in the created dated file. I get Permission is denied. Do I have do perform from command line in terminal?

    Reply
    • Jim at Fotosyn
      April 29, 2014

      Hi Tim for the moment in most cases probably yes but we are working on a more visual file manager for BerryCam Express where you’ll be able to perform file functions, preview images etc

      Reply
  92. Renzo
    July 2, 2014

    Awesome app and script, thanks for sharing. Works perfectly! You sir, are the man!

    Reply
  93. Masumi
    July 3, 2014

    First thing first. Thank you very much indeed for all those information/instructions. It is working great on my iPhone after just the first try with WiFi setting!

    I have a stupid question. Is there any way to connect BerryCam and Raspi in areas where has no WiFi such as on the beach, in woods?

    Reply
  94. Chris Stannard
    August 11, 2014

    I have recently installed BerryCam on my Pi+, everything appears to work okay, but if I leave it running for 30 minutes or so, then try take a picture all comms have been lost. I have to SSH in and then restart berryCam.py and the cycle repeats. It can’t be the Pi stopping or I would not be able to SSH straight in.

    Reply
    • Jim at Fotosyn
      August 11, 2014

      Hi Chris…

      Are you running as a background task ie.

      sudo python berrycam.py & (note the ampersand)

      Reply

Leave a Reply