cloudy cloudy

Author Topic: Setting up your Website and Webcam  (Read 11766 times)

0 Members and 1 Guest are viewing this topic.

Offline dunbrokin

  • Posts: 305
  • Otago
Setting up your Website and Webcam
« on: August 16, 2011, 08:54:34 AM »
Can somebody please point me towards instructions for setting up my webcam with WD. I have the webcam installed and working (it works with Cheese anyway). I would like to be able to upload the images to WU along with my normal daily data.

Thanks in advance.
« Last Edit: August 30, 2011, 08:04:07 AM by dunbrokin »
Ubuntu is computer speak for defenestration.

Offline NorCal Dan

  • Dan - KJ6RGX
  • Posts: 10,366
  • Davis Vue/Win10
  • Ocean Park, WA.
    • Traveling RV Weather
Re: Webcam Instuctions
« Reply #1 on: August 16, 2011, 02:31:24 PM »

Offline NorCal Dan

  • Dan - KJ6RGX
  • Posts: 10,366
  • Davis Vue/Win10
  • Ocean Park, WA.
    • Traveling RV Weather
Re: Webcam Instuctions
« Reply #2 on: August 22, 2011, 04:06:05 PM »
If the cam insists on sending numbered images that does cause problems.  Is the cam on the same computer running WD?  Will the cam save files locally without ftp'ing them to the server?

Offline niko

  • syzygy
  • Global Moderator
  • Posts: 27,662
  • Crystal Ball broken! Please post the URL.
  • Northern California, U.S.A.
Re: Webcam Instuctions
« Reply #3 on: August 22, 2011, 04:41:52 PM »
Is your intention to have WD annotate and upload the image? If the .jpg's are deleted does guvcview start over at 1 again? If so then you should be able to make it work with the linux equivalent of a batch file that's scheduled to delete the file after WD has uploaded it.
 

Offline NorCal Dan

  • Dan - KJ6RGX
  • Posts: 10,366
  • Davis Vue/Win10
  • Ocean Park, WA.
    • Traveling RV Weather
Re: Webcam Instuctions
« Reply #4 on: August 22, 2011, 09:21:22 PM »
Ok, do you want to try and get it working with WD, or, do you want to find a way to deal with the numbered images?

Offline Weather Display

  • Posts: 85,418
  • Davis VP2
  • New Zealand
    • Weather Display
Re: Webcam Instuctions
« Reply #5 on: August 22, 2011, 09:24:37 PM »
there is no WD web camcapture for linux

so you do need to use a 3rd party web cam capture software program

but if that is not producing a static file name then its not that easy to use that image in WD

Offline niko

  • syzygy
  • Global Moderator
  • Posts: 27,662
  • Crystal Ball broken! Please post the URL.
  • Northern California, U.S.A.
Re: Webcam Instuctions
« Reply #6 on: August 22, 2011, 09:32:22 PM »
I don't think deleting the file is so bad, it's a work around for a "feature" that the author of guvcview thought would be valuable. What cam do you have?

Offline niko

  • syzygy
  • Global Moderator
  • Posts: 27,662
  • Crystal Ball broken! Please post the URL.
  • Northern California, U.S.A.
Re: Webcam Instuctions
« Reply #7 on: August 22, 2011, 09:42:04 PM »
I found reference to uvccapture http://www.quickcamteam.net/software/linux/v4l2-software/uvccapture that apparently overwrites the captured image.

Offline niko

  • syzygy
  • Global Moderator
  • Posts: 27,662
  • Crystal Ball broken! Please post the URL.
  • Northern California, U.S.A.
Re: Webcam Instuctions
« Reply #8 on: August 22, 2011, 10:09:30 PM »
Sorry, I was not meaning to be disparaging of your suggestion

Not at all, it was a fair comment. Just so happens I don't use WD's functions for my webcam, you probably would find my (windows) scripted solution very inelegant too, but it's worked troublefree for years...

Offline niko

  • syzygy
  • Global Moderator
  • Posts: 27,662
  • Crystal Ball broken! Please post the URL.
  • Northern California, U.S.A.
Re: Webcam Instuctions
« Reply #9 on: August 22, 2011, 10:59:33 PM »
So, I am thinking....use guvcview to take an image every hour on the hour....call it image.jpeg. Set up a crontab file to delete this image.jpeg file every half hour. Am I on the right lines here? If I also use a batch process to change the name of the file to what ever name WU reguires...before I delete it, then I can kill two birds with one stone as I upload to my own website www.wilsonbayweather.com and to WU....are there any flaws in my thinking here?

Sounds good to me  :) If you want to add weather data on the website pic you can use the 642weather.com php script.

Offline niko

  • syzygy
  • Global Moderator
  • Posts: 27,662
  • Crystal Ball broken! Please post the URL.
  • Northern California, U.S.A.
Re: Webcam Instuctions
« Reply #10 on: August 22, 2011, 11:21:20 PM »
Cool...that sounds good....a) where do I find this script b) what do I actually have to do once I have this script to make it work for me....e.g. where do I store it, how do I run it,  what changes do I have to make to it to personalise it for my situation etc.

It's to be found here: http://www.642weather.com/weather/scripts-image-handler.php the author, Mike Challis, has good documentation, it installs/runs on your webserver. It gets the weather data from a file uploaded by WD (I believe the linux version will do that part).

Offline niko

  • syzygy
  • Global Moderator
  • Posts: 27,662
  • Crystal Ball broken! Please post the URL.
  • Northern California, U.S.A.
Re: Webcam Instuctions
« Reply #11 on: August 23, 2011, 09:51:33 PM »
Not sure of the context but on here it normally means a movie generated from multiple snapshot images, IOW a time lapse, nice to show development of storms, dawn, sunset etc. Scroll to the bottom of the author's page for examples http://www.weather-display.com/windy/gb/grahamsbeach.htm.
« Last Edit: August 23, 2011, 09:53:30 PM by niko »

Offline Weather Display

  • Posts: 85,418
  • Davis VP2
  • New Zealand
    • Weather Display
Re: Webcam Instuctions
« Reply #12 on: August 24, 2011, 08:22:02 PM »
its not all that clear exactly what you are trying to do?
if you are simply wanting to upload a web cam image file to your web site
then use the
control panel, ftp/internet setup, web cam
select the file
click add to add to the list
then tick upload these files as well
set the times to upload
and turn the switch on

I just tested that here, and it works

Offline jloflin

  • Posts: 73
  • El Paso, Texas, USA
Re: Webcam Instuctions
« Reply #13 on: August 25, 2011, 01:33:20 AM »
I sent you my latest answers. Are you going to move those messages out here?

Randy

Offline jloflin

  • Posts: 73
  • El Paso, Texas, USA
Re: Webcam Instuctions
« Reply #14 on: August 25, 2011, 01:55:15 AM »
BTW, I tried putting a sticker in my signature, but it's not coming through. I really want something like Brian has. Do you know how I create one of those?

Randy

 

cumulus