Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

[APP] MobileWebCam (2G/3G/WIFI, no PC or UMTS router required!) v3.13

OP _miha_

12th February 2011, 12:50 AM   |  #1  
OP Senior Member
Flag Hamburg
Thanks Meter: 145
 
278 posts
Join Date:Joined: May 2010
Donate to Me
More
There are a lot of fine webcam (with video!) apps in the Market. But I found none which can be used with just a phone without any computer or wifi connection and placed in your car, weekend home, garage, ... to upload pictures to a server in defined refresh times. So I built this app. It is not finished but good enough for a lot of things.

For easy setup with a nice user interface have a look at sensr.net - they offer camera webspace and the ftp setup with MobileWebCam is very easy. For even more possibilities like gallery-hosting, hardware motion detection and housing have a look at opensmartcam.com ... they even sell or rent complete cameras based on MobileWebCam.

Edit: The app can now also automaticilly email the pics, upload to ftp or simply store them on sdcard. Also a manual mode is new for when you are running around taking pictures to be uploaded to your website/email account on the go with one simple tap.
Dropbox usage also possible now!
Invisible Background mode available now to save power or hide the cam. Autofocus can now be used in and the camera can be remote-controlled by sending SMS commands to your phone.


I will use this with an old phone with broken touch input (but luckily a dpad) and a simple free sim card wich has 30MB data traffic free/month (don't know if providers in other countries offer something like that). So I can have about 20 picture refreshes a day at a location with no WIFI or 3G (and of course no cable/dsl/...). FOR FREE! In the App activity times can be set so no black night views. No WIFI needed, just power to keep the phone running (I wonder how long it will last .

Also I use this with my main phone to quickly show my wife the kids playing on the playground, watch the garden when I am working inside and stuff like that. For this use case an email notification can be sent containing a link for her to view on her phone or pc at work.

Should run on Android 1.5 up (what causes the camera options to be very few and landscape mode only). So you can buy a somewhat broken phone on ebay (speakers not needed, display doesn't have to work well, ...) and have one of the easiest and cheapest webcam setups possible (I think ...

For your personal website webcam you need a php capable server somewhere where the picture can be refreshed. There you have to place the two files (mobilewebcam.php and index.html) attached to this post. Since version 1.3 you can also sent the pictures to an email account or simply store them on sdcard. From version 1.6 on ftp upload is also possible.

This also can be combined with my WebLiveWallpaper App easily and your webcam is then visible on your homescreen background all day.

I have uploaded my webserver files for a simple gallery and timelapse video on a google code project: please let me know if you can improve it!

Most of the sourcecode can now be found at http://code.google.com/p/mobilewebcam-android/ ... so if you need special stuff simply add it yourself and publish your changes! Please help me fix all the bugs and send me a notice if you repaired or improved something. There is so much crappy hacked code in there ...

MobileWebCam
https://market.android.com/details?i...s.mobilewebcam

How to build a housing for your phone with MobileWebCam:
http://www.instructables.com/id/GSM-...utdoor-webcam/

Edit: version 3.09: Log from inside the app for logs from Android 4.3 on ... (new log permission required for older devices)

Edit: version 3.01-04: Focus mode selection, changed some internals, several crash fixes, zoom autofocus

Edit: version 2.9983: ftp upload for low bandwith/large pictures improved (set filename only after upload finished, skip upload if still busy with last), night time camera settings can be configured in camera screen by toggling to night configuration and then changing camera parameters, show last error in preview screen

Edit: version 2.996: Added some support for Samsung Galaxy Camera (1, 2, NX)

Edit: version 2.990: I restructured a lot internally - now multiple threads for work and upload - hopefully not totally broken! Also waits for gps now, shows more motion detection info, some repairs from reports (config.txt, crash on devices without wifi?, higher default cam delay, ...)

Edit: version 2.98: imprint picture scaling, all transparent colors can be set, sdcard delete old pictures, a little work on gps stuff

Edit: version 2.97: night auto stuff again, sdcard file broadcast to mediascanner, transparent colors can be set, camera deadlock for event trigger photo burst fix

Edit: version 2.96: night auto disable fix, sdcard path, imprint stamp picture downloadable from URL

Edit: version 2.95: night setup, camera open wait time for phone that otherwise produce overexposed pictures in the background modes

Edit: version 2.93: default exposure back to 50 (fix for darker pictures), front cam flip/rotate, possibility for trigger pause time, dropbox batch upload

Edit: version 2.92: fixed crash, made camera effect setting (zoom, exposure, white balance, color effect, scene mode) more interactive, fixed mirrored pictures

Edit: version 2.87: picture burst mode after trigger, moved broadcast receiver mode to event triggers, added event notification to email, added more camera settings (scene modes, color effects), timestamped httppost filename for opensmartcam

Edit: version 2.86: color stuff, alignment, ftp ending fix, background mode switch fix

Edit: version 2.85: shutdown, imprints, galaxy S camera error 0 fix, email trigger

Edit: version 2.82: ftp batch mode, small fixes

Edit: version 2.81: some new config crash fixes fixed, log, backup/restore, keep ftp connection + log frequency

Edit: version 2.76: more webinterface, config help, fullscreen preview option, fix for crash on large screen devices (sorry, I do not own one)

Edit: version 2.73: custom font and typeface added to imprint settings, crash fix for opensmartcam reg error

Edit: version 2.7: Welcome screen, remote control website (see config.zip), 2.71 fixes the original size picture upload if not enough memory

Edit: version 2.64: Nexus 7 frontcam only devices work now

Edit: version 2.63: dropbox authentication method changed to web

Edit: version 2.61: flashlight toggle 2.62 Actionbar for Android > 3.0

Edit: version 2.52: custom picture sizes (+fix from 2.51)

Edit: version 2.37: started to experiment with photo effects like instagram

Edit: version 2.36: webserver (wifi only) now also streams mjpeg, ...

Edit: version 2.3: integrated simple webserver (wifi only), added gps location to make interesting moving cameras, ...

Edit: version 2.2: two different background modes (depends on device, no advanced features working in hidden mode but less power)
Attached Thumbnails
Click image for larger version

Name:	menu.png
Views:	12684
Size:	20.3 KB
ID:	532847   Click image for larger version

Name:	screenshot1.png
Views:	7532
Size:	57.2 KB
ID:	1413355   Click image for larger version

Name:	screenshot2.jpg
Views:	7500
Size:	37.9 KB
ID:	1413356   Click image for larger version

Name:	20130213101156.jpg
Views:	5374
Size:	5.5 KB
ID:	1725987  
Attached Files
File Type: zip serverfiles.zip - [Click for QR Code] (653 Bytes, 3125 views)
File Type: apk MobileWebCam 2.59.apk - [Click for QR Code] (594.2 KB, 664 views)
File Type: zip config.zip - [Click for QR Code] (822 Bytes, 880 views)
File Type: apk MobileWebCam 2.73.apk - [Click for QR Code] (600.4 KB, 208 views)
File Type: apk MobileWebCam 2.76.apk - [Click for QR Code] (603.7 KB, 129 views)
File Type: apk MobileWebCam 2.86.apk - [Click for QR Code] (611.2 KB, 112 views)
File Type: apk MobileWebCam 2.92.apk - [Click for QR Code] (614.5 KB, 102 views)
File Type: apk MobileWebCam 2.93.apk - [Click for QR Code] (615.6 KB, 149 views)
File Type: apk MobileWebCam 2.98.apk - [Click for QR Code] (624.4 KB, 250 views)
File Type: apk MobileWebCam 2.990.apk - [Click for QR Code] (625.8 KB, 832 views)
File Type: apk MobileWebCam 2.996.apk - [Click for QR Code] (626.8 KB, 119 views)
File Type: apk MobileWebCam 2.9983.apk - [Click for QR Code] (648.7 KB, 84 views)
File Type: apk MobileWebCam 3.06.apk - [Click for QR Code] (650.6 KB, 110 views)
File Type: apk MobileWebCam 3.09.apk - [Click for QR Code] (732.7 KB, 161 views)
File Type: apk MobileWebCam 3.13.apk - [Click for QR Code] (734.1 KB, 490 views)
Last edited by _miha_; 7th July 2014 at 10:55 PM. Reason: 3.13
The Following 40 Users Say Thank You to _miha_ For This Useful Post: [ View ]
12th February 2011, 07:58 AM   |  #2  
Captainkrtek's Avatar
Retired Recognized Developer / Retired Forum Moderator
Flag Seattle
Thanks Meter: 555
 
1010
2,514 posts
Join Date:Joined: Feb 2010
Awesome! Thanks for sharing this, check the XDA portal some time this weekend, wrote up this app for the front page
The Following User Says Thank You to Captainkrtek For This Useful Post: [ View ]
12th February 2011, 06:41 PM   |  #3  
d0ugie's Avatar
Senior Member
Flag New York
Thanks Meter: 26
 
542 posts
Join Date:Joined: Jan 2007
More
Hey miha:

Though you'd need to tweak this to create random directories or accounts or whatever, I've got a pretty heavy duty Linux server with a fat pipe I'd be willing to let you tie your program into so people don't have to have their own server. Think it over, let me know.
The Following User Says Thank You to d0ugie For This Useful Post: [ View ]
12th February 2011, 06:53 PM   |  #4  
OP Senior Member
Flag Hamburg
Thanks Meter: 145
 
278 posts
Join Date:Joined: May 2010
Donate to Me
More
Quote:
Originally Posted by d0ugie

Hey miha:

Though you'd need to tweak this to create random directories or accounts or whatever, I've got a pretty heavy duty Linux server with a fat pipe I'd be willing to let you tie your program into so people don't have to have their own server. Think it over, let me know.

Sounds great! Thank you! I already thought about using my little webspace and allow only one refresh a day or so to enable people to try the app but that will be so much better! I will think about the identification/account - may be best the server creates them and my app just asks for a new user - and come back to you when I have got a little more time to put that into the app.
The Following User Says Thank You to _miha_ For This Useful Post: [ View ]
13th February 2011, 12:51 AM   |  #5  
white-energy's Avatar
Senior Member
Flag L'viv
Thanks Meter: 218
 
616 posts
Join Date:Joined: Apr 2010
More
Is there a how to.. i can't get this to work correctly.. i always got "something went wrong"
EDIT: Works.. just my firewall was disabling the connection.
Last edited by white-energy; 13th February 2011 at 01:07 AM.
13th February 2011, 12:53 AM   |  #6  
Senior Member
Flag Ljubljana
Thanks Meter: 12
 
113 posts
Join Date:Joined: Jan 2009
More
You just brought mine Milestone with no screen(lucily i can control the phone via adb/screencast) back from the closet and in my courtyard! Will test it well
The Following User Says Thank You to CommanderThor For This Useful Post: [ View ]
13th February 2011, 12:53 AM   |  #7  
Junior Member
Thanks Meter: 2
 
9 posts
Join Date:Joined: May 2009
Works pretty well. Got it set up in about 15 minutes on an old G1 and my TDRevolution VPS.
The Following User Says Thank You to rh387 For This Useful Post: [ View ]
13th February 2011, 01:01 AM   |  #8  
orthonovum's Avatar
Senior Member
Thanks Meter: 54
 
292 posts
Join Date:Joined: Jul 2010
Smile
Status Error Copying every time..


am I missing something? permissions?

I am running latest apache and PHP and firewall is allowing connections to port 80

testing on local network

whats wrong?
13th February 2011, 01:02 AM   |  #9  
Junior Member
Thanks Meter: 2
 
9 posts
Join Date:Joined: May 2009
For those who are having issues, make sure that the web server (Apache) has write permissions to the folder that this is in.
The Following User Says Thank You to rh387 For This Useful Post: [ View ]
13th February 2011, 01:07 AM   |  #10  
orthonovum's Avatar
Senior Member
Thanks Meter: 54
 
292 posts
Join Date:Joined: Jul 2010
Quote:
Originally Posted by rh387

For those who are having issues, make sure that the web server (Apache) has write permissions to the folder that this is in.


that did it

chowned html dir and all good now

Post Reply Subscribe to Thread

Tags
mobile webcam app
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes