Webcam - need a solution

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • MZ

    Webcam - need a solution

    Hello,
    I have a webcam connected to the Internet.
    I can access the current static picture of the camera using an url link. It
    shows the picture with high resolution 1600x1200.

    I would like to have a batch program which will do what follows every some
    amount of time:
    1. save the picture automatically on my local computer (which will be always
    running)
    2. lower the resolution of the saved picture
    3. store it on the FTP in a particular folder.

    Is it possible at all?

    BR
    Mike


  • Erwin Moller

    #2
    Re: Webcam - need a solution


    MZ schreef:
    Hello,
    I have a webcam connected to the Internet.
    I can access the current static picture of the camera using an url link. It
    shows the picture with high resolution 1600x1200.
    >
    I would like to have a batch program which will do what follows every some
    amount of time:
    1. save the picture automatically on my local computer (which will be always
    running)
    2. lower the resolution of the saved picture
    3. store it on the FTP in a particular folder.
    >
    Is it possible at all?
    >
    BR
    Mike
    >
    >
    Surely that is possible, but Clientside JavaScript is a poor choice as
    language for such a task.
    Try a serverside solution, eg PHP, Perl, Java, Python, etc.
    (Well, you can even use JavaScript as serverside language.)
    Serverside makes things a lot easier for you: eg having libs at hand
    that resample the picture.

    Regards,
    Erwin Moller


    --
    =============== =============
    Erwin Moller
    Now dropping all postings from googlegroups.
    Why? http://improve-usenet.org/
    =============== =============

    Comment

    • Thomas 'PointedEars' Lahn

      #3
      Re: Webcam - need a solution

      MZ wrote:
      [...]
      I would like to have a batch program which will do what follows every some
      amount of time:
      1. save the picture automatically on my local computer (which will be always
      running)
      2. lower the resolution of the saved picture
      3. store it on the FTP in a particular folder.
      >
      Is it possible at all?
      It is certainly possible, but an ECMAScript implementation would not be my
      first choice of language for doing it.


      PointedEars
      --
      Anyone who slaps a 'this page is best viewed with Browser X' label on
      a Web page appears to be yearning for the bad old days, before the Web,
      when you had very little chance of reading a document written on another
      computer, another word processor, or another network. -- Tim Berners-Lee

      Comment

      • MZ

        #4
        Re: Webcam - need a solution

        >>
        >
        Surely that is possible, but Clientside JavaScript is a poor choice as
        language for such a task.
        Try a serverside solution, eg PHP, Perl, Java, Python, etc.
        (Well, you can even use JavaScript as serverside language.)
        Serverside makes things a lot easier for you: eg having libs at hand that
        resample the picture.
        >
        Regards,
        Erwin Moller
        Javascript on the serverside means I can do it on the webpage? Would be
        great!
        Could you point me out some functions in javascript so I can get the idea
        how to do it?

        Thanks in advance
        BR
        Mike


        Comment

        • Erwin Moller

          #5
          Re: Webcam - need a solution


          MZ schreef:
          >Surely that is possible, but Clientside JavaScript is a poor choice as
          >language for such a task.
          >Try a serverside solution, eg PHP, Perl, Java, Python, etc.
          >(Well, you can even use JavaScript as serverside language.)
          >Serverside makes things a lot easier for you: eg having libs at hand that
          >resample the picture.
          >>
          >Regards,
          >Erwin Moller
          >
          Javascript on the serverside means I can do it on the webpage? Would be
          great!
          Hi,

          I am not sure we understand each other.
          I advised you to use a serverside language for the task (which COULD be
          JavaScript, but this is really rare. PHP makes much more sense and
          hosting is easy found.)

          What you mean by using it on the webpage is not clear to me.
          EVERYTHING on your webpage comes from a server (unless you are browsing
          local files).

          Could you point me out some functions in javascript so I can get the idea
          how to do it?
          I wouldn't advise you to use Javascript for this task.
          You must learn a serverside language.

          Hope this is clearer now. ;-)

          Regards,
          Erwin Moller
          >
          Thanks in advance
          BR
          Mike
          >
          >

          --
          =============== =============
          Erwin Moller
          Now dropping all postings from googlegroups.
          Why? http://improve-usenet.org/
          =============== =============

          Comment

          • MZ

            #6
            Re: Webcam - need a solution

            Hope this is clearer now. ;-)
            >
            Regards,
            Erwin Moller
            Yes, it is clear now.
            I don't like PHP so I was googling for a solution in javascript.
            I would like to have a script which will dynamically create the gallery html
            file when the file is opened.
            And I have found a prety simple solution.
            Please take a look at

            JavaScript gallery by Consoriana.
            It enumerates the small thumbnail files put it into a table with hyperlinks
            to the bigger files and gives you a nice gallery preview with next/previous
            in each folder.
            This is more or less what I am looking for and it works great!

            However I need to modify it a bit.
            Can you advise me what to change so I do not need to be dependent of the
            file names?
            I would like to store a different filenames in folders and I would like to
            make it as universal as I can.

            I think if we figure out a solution it can be usefull not only for me.
            So any help apreciated!

            BR
            Mike


            Comment

            • Thomas 'PointedEars' Lahn

              #7
              Re: Webcam - need a solution

              MZ wrote:
              I don't like PHP so I was googling for a solution in javascript.
              You did not made a reasonable design decision. While there is no
              "javascript " to begin with, chances are much greater that server-side PHP is
              supported than that client-side JS and the host-provided interfaces it
              relies on is. And ECMAScript implementations like JavaScript or JScript can
              also be used server-side. (PHP can also be used client-side, but chances
              are low that it is supported in a HTML UA.)
              I would like to have a script which will dynamically create the gallery html
              file when the file is opened.
              Server-side PHP can accomplish this.
              And I have found a prety simple solution.
              But of course not a good one.
              [x] done

              Especially "No scripting language needed such as PHP and ASP" is hilarious.
              What do they think JS are anyway? Markup languages?
              [...]
              This is more or less what I am looking for and it works great!
              You are in no position to assess the quality of this code. However, in this
              case neither am I, because all attempts to download it result in a broken
              ZIP archive that contains only images and no script files. (And no, I did
              not use a download manager and I tried both download locations.)
              However I need to modify it a bit.
              Can you advise me what to change so I do not need to be dependent of the
              file names?
              You do not expect anyone knowledgeable here to wade through this code in
              their free time for free, even if it was possible, do you? RTFM or ask the
              author instead; or get a minimum clue, stop using it, and start using better
              code (maybe your own).
              I would like to store a different filenames in folders and I would like to
              make it as universal as I can.
              Good luck.
              I think if we figure out a solution it can be usefull not only for me.
              You mean there is anyone knowledgeable here appreciating this supposed
              reinvention of Wheel 0.7.5 (unstable), given the available alternatives?


              PointedEars
              --
              realism: HTML 4.01 Strict
              evangelism: XHTML 1.0 Strict
              madness: XHTML 1.1 as application/xhtml+xml
              -- Bjoern Hoehrmann

              Comment

              • Thomas 'PointedEars' Lahn

                #8
                Re: Webcam - need a solution

                Thomas 'PointedEars' Lahn wrote:
                MZ wrote:
                >Please take a look at
                >http://www.softpedia.com/get/Interne...-Gallery.shtml
                >JavaScript gallery by Consoriana.
                >
                [x] done
                >
                Especially "No scripting language needed such as PHP and ASP" is hilarious.
                What do they think JS are anyway? Markup languages?
                >
                >[...]
                >This is more or less what I am looking for and it works great!
                >
                You are in no position to assess the quality of this code. However, in this
                case neither am I, because all attempts to download it result in a broken
                ZIP archive that contains only images and no script files. (And no, I did
                not use a download manager and I tried both download locations.)
                Finally, the download worked. A strange thing, though. However, my
                suspicions about this script have been confirmed. It is junk, for several
                reasons, the least of which are undeclared variables all over the place.


                PointedEars
                --
                realism: HTML 4.01 Strict
                evangelism: XHTML 1.0 Strict
                madness: XHTML 1.1 as application/xhtml+xml
                -- Bjoern Hoehrmann

                Comment

                Working...