Using motion


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Using motion
# 1  
Old 04-17-2013
Using motion

I am using motion on my Raspberry Pi with an HP webcam. When I begin motion, and from another computer, type in the address of the server with the webcam, then the port (8000/8001), it just says that the page could not be found. When I type in just the IP address, i come to a page that says "It works!", which I believe, to be the default Apache page.
Is there a service that motion needs to stream the video, to allow remote connections to view it? I had it working before, and it prompted me for a username/password.

EDIT: I tried accessing it locally on the same machine with the webcam, and still get the error that the page could not be located. It says that it cannot resolve the hostname (localhost). It can display just the localhost page, which is that "It works!" page.

Last edited by droidus; 04-17-2013 at 11:28 AM..
 
Login or Register to Ask a Question

Previous Thread | Next Thread
Login or Register to Ask a Question
XGetMotionEvents()														XGetMotionEvents()

Name
  XGetMotionEvents - get events from pointer motion history buffer.

Synopsis
  XTimeCoord *XGetMotionEvents(display, w, start, stop, nevents_return)
	Display *display;
	Window w;
	Time start, stop;
	int *nevents_return;

Arguments
  display  Specifies a connection to an X server; returned from XOpenDisplay().

  w	   Specifies the ID of the window whose associated pointer motion events will be returned.

  start    Specify  the  time interval for which the events are returned from the motion history buffer.  Pass a time stamp (in milliseconds)
  stop	   or CurrentTime.

  nevents_return
	   Returns the number of events returned from the motion history buffer.

Returns
  The list of pointer positions.

Description
  XGetMotionEvents() returns all events in the motion history buffer that fall between the specified start and	stop  times  (inclusive)  and
  that	have  coordinates  that lie within (including borders) the specified window at its present placement.  The x and y coordinates of the
  XTimeCoord return structure are reported relative to the origin of w.

  XGetMotionEvent returns NULL if the server does not support a motion history buffer (which is common), or if the start time  is  after  the
  stop	time, or if the start time is in the future.  If the stop time is in the future, it is equivalent to specifying the constant Current-
  Time, since the server does not wait to report future events.  A motion history buffer is supported if XDisplayMotionBufferSize() (display)
  > 0.	The pointer position at each pointer hardware interrupt is then stored for later retrieval.

  Use XFree() to free the returned XTimeCoord structures when they are no longer needed.

  For more information, see Volume One, Chapter 9, The Keyboard and Pointer.

Structures
     typedef struct _XTimeCoord {
	 Time time;
	 short x, y;
     } XTimeCoord;

Errors
  BadWindow

See Also
  XQLength(),	XAllowEvents(),   XCheckIfEvent(),   XCheckMaskEvent(),  XCheckTypedEvent(),  XCheckTypedWindowEvent(),  XCheckWindowEvent(),
  XEventsQueued(), XGetInputFocus(), XIfEvent(), XMaskEvent(), XNextEvent(), XPeekEvent(), XPeekIfEvent(), XPending(), XPutBackEvent(),  XSe-
  lectInput(), XSendEvent(), XSetInputFocus(), XSynchronize(), XWindowEvent().

Xlib - Input Handling														XGetMotionEvents()