On Wed, 2012-08-29 at 11:21 +1200, Andrew Packer wrote: > Hi all, > > Please forgive any newbiness or blockheadedness of mine in this > question. I suspect that as usual I'm in way over my head. > > I have a weather server (Dell Latitude D520 laptop), running Mint 11, > collecting data from my weather station and uploading it to my Web > server (located at my ISP). The weather server software is weewx, > written in Python. > > I want to include, on the Web page, a picture of the view to the north > from my house, and update it frequently (say hourly during daylight > hours; updating together with the weather data every few minutes, I > assume, would blow my data allowance). > > I've got an Ai-Ball webcam (www.thumbdrive.com) and can see, on the > weather server, what the camera is looking at. So far, so good. > > To take a snapshot, I need to allow a Java app to run on the weather > server. I then have to click and save a JPG. As far as I can tell, > each succeeding JPG will be saved with a different file name. I imagine > that I can write a script to delete the JPG as soon as it's uploaded to > the Web server, and configure weewx to upload the only JPG in a > particular folder. > > How do I automate the process of taking the snapshot? > > Also, not long after Java loads and starts running on the weather > server, the cooling fan starts running at full bore. CPU use goes to > 100%. Kill the Java app, the CPU use goes back down and the fan runs > down. (I'm not blaming the poor old Dell or Mint; my Mac, which is > quite recent, does the same.) Is there any way around this? > > Again, sorry if the questions are dumb - there's no useful tech support > on the Ai-Ball Web site and I don't know how to Google the problem. I > do not object to being directed to reference books if the solution may > lie there. > > Cheers, > > ===Andrew
I do something similar ( well, just about everything is worn out now and broken... waiting for lottery win to replace ), but for the camera I use a mix of old Canon Powershots and Gphoto2 - this is getting more difficult as a) the current cameras that support the image capture function are dwindling, and b) gphoto is getting less and less reliable, probably as a direct result of the declining quality of the linux USB drivers. Looking at the docs for the AI-ball, I would reckon that it might be simplest to use the built in web server, and wget an image to post process - looks like it's possible. Although a lot of the info is now incorrect, an example of what a simple php ( db access for latest Weather info ) / shellscript solution using imagemagick for post-processing can do is at http://www.diamondharbour.org.nz/Local-Weather.html If I can be of any help, drop me a line (: Steve -- Steve Holdoway BSc(Hons) MIITP http://www.greengecko.co.nz MSN: [email protected] Skype: sholdowa
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________ Linux-users mailing list [email protected] http://lists.canterbury.ac.nz/mailman/listinfo/linux-users
