Raspberry Pi camera use: Difference between revisions

From GammaSphere DAQ
Jump to navigation Jump to search
No edit summary
No edit summary
 
(8 intermediate revisions by the same user not shown)
Line 1: Line 1:


To boot the raspberry pi up,
=To boot the raspberry pi up=


   connect cat6 cable to onenet switch (next to it)
   connect cat6 cable to the onenet switch (next to it)
   connect monitor (HDMI)
   [connect monitor (HDMI)]
   connect keyboard
   [connect keyboard]
   the wireless mouse should already be there
   [the wireless mouse should already be there]
   connect the usb power plug
   connect the usb power plug


Line 12: Line 12:
   192.168.203.2
   192.168.203.2


on some machines it can also be reached as darekpi02 if DNS is set up properly
The items in [] may not be needed. The pi user password is now the default DGS password, not the default pi one!!


Booting it up with the cat6 cable attached, is the easiest way to make sure it comes up on onenet.
On some machines it can also be reached as darekpi02 if DNS is set up properly.


 
=To use the raspberry pi camera to stream data=
To use the raspberry pi camera to stream data:


   sudo service motion stop
   sudo service motion stop
   ./motion -c motion-mmalcam-both.conf
   ./motion -c motion-mmalcam-both.conf


that should start a little webserver so that you can see the live stream from a web browser as:
that should start a little webserver so that you can see the live stream from a web browser using thes URL:


   http://192.168.203.2:8081
   http://192.168.203.2:8081
Line 27: Line 28:
You will have to be on onenet to see the the video stream.
You will have to be on onenet to see the the video stream.


When you want to stop the stream, simply type crtl-c in the window you started the stream in
When you want to stop the stream, simply type crtl-c in the window you started the stream in. The streamer leaves a lot of files which needs to be removed to make sure the raspberry pi is happy. Do
 
  rm /dev/shm/*
 
=Configuration of the raspberry pi to use the streaming software=
 
There seems to be a nice description at the URL:
 
  https://pimylifeup.com/raspberry-pi-webcam-server/
 
though I haven't tried it. We also have have history log file from when Kalle installed the software.


To configure the raspberry pi to use the streaming software do
=Thanks=


  TBD
Thanx to Kalle for setting up this system

Latest revision as of 20:15, May 8, 2019

To boot the raspberry pi up

 connect cat6 cable to the onenet switch (next to it)
 [connect monitor (HDMI)]
 [connect keyboard]
 [the wireless mouse should already be there]
 connect the usb power plug

It should then boot up and connect itself to onenet where it will have the IP

  192.168.203.2

The items in [] may not be needed. The pi user password is now the default DGS password, not the default pi one!!

Booting it up with the cat6 cable attached, is the easiest way to make sure it comes up on onenet. On some machines it can also be reached as darekpi02 if DNS is set up properly.

To use the raspberry pi camera to stream data

 sudo service motion stop
 ./motion -c motion-mmalcam-both.conf

that should start a little webserver so that you can see the live stream from a web browser using thes URL:

 http://192.168.203.2:8081

You will have to be on onenet to see the the video stream.

When you want to stop the stream, simply type crtl-c in the window you started the stream in. The streamer leaves a lot of files which needs to be removed to make sure the raspberry pi is happy. Do

 rm /dev/shm/*

Configuration of the raspberry pi to use the streaming software

There seems to be a nice description at the URL:

 https://pimylifeup.com/raspberry-pi-webcam-server/

though I haven't tried it. We also have have history log file from when Kalle installed the software.

Thanks

Thanx to Kalle for setting up this system