ObjectiveUse your camera-equipped J2ME device, such as the Nokia N82 as a remote camera monitor. Images are captured at with an user-defined interval and uploaded to a web server.Materials and tools
Implementation: J2ME deviceModified example source code taken from Sun Developer Network's article Taking Pictures with MMAPI (Snapper.zip). The main changes in short are:
emulator
to false in file SnapperMIDlet.java. Do not forget to change it
back when compiling a package for the real device.
Implementation: web serverVery simple PHP script which takes uploaded images and saves those to a directory tree in form.
YYYY/MM/DD/HH/YYYYMMDDTHHMMSS.jpg
relative to the root directory which is defined by variable dstroot.
For example, photo captured at noon on 24 October 2007 is saved to:
2007/10/24/12/20071024T120000.jpg
Installation and configurationCompile the sources and create a JAR package, which you then install into the device. You should then modify some settings for this installed application. In Nokia devices it can be done as follows.
index.txt to a PHP file of your choice.
See the original copyrights and disclaimers. My changes (hacks) and this documentation are under the GNU Lesser General Public License.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
Furthermore, I recommend that you treat the sources as 'read only'.
With little time you can certainly write much better program from the scratch.
JAR package can be downloaded from here. Use casesNone. This is just a toy software for playing around. Do not even think of using this for anything critical or relying anybody's safety on this. Read the disclaimer above and in the source files: there is absolutely no warranty. The user of this software is responsible for any use of this software.Some example images are here. See alsoTime-lapse imaging using GNU/Linux. |
24 October 2007, Petteri Kettunen