[SATLUG] raspivid to apache

Craig sargonemail at gmail.com
Thu Sep 25 11:28:56 CDT 2014


Could modify/extend  http://artoo.io/documentation/guides/cli/  to suit
needs.


Relevant socat / nc examples based on the request:

==================================================

>From http://xmodulo.com/useful-netcat-examples-linux.html on 9/25/14 :
15. Stream a video file from a server, and client watches the streamed
video using mplayer.

On a video server (192.168.233.208): $ cat video.avi | nc -l 5000

On a client host: $ nc 192.168.233.208 5000 | mplayer -vo x11 -cache 3000 -

==================================================

For the "movement commands":

From
https://stuff.mit.edu/afs/sipb/machine/penguin-lust/src/socat-1.7.1.2/EXAMPLES
on 9/25/14 :

// make a program available on the network chrooted, unprivileged;
// parent process stays in / running as root
// script path is already chrooted
# ./socat -lm -d -d TCP-LISTEN:5555,fork
EXEC:/bin/myscript,chroot=/home/sandbox,su=sandbox,pty,stderr
// to avoid terminal problems, you might - instead of telnet - connect using
$ socat -,icanon=0,echo=0 tcp:target:5555; reset


On Thu, Sep 25, 2014 at 10:21 AM, Craig <sargonemail at gmail.com> wrote:

> Ok,
>
> Let's start off with something a bit more simpler.
> Using socat (which contains netcat & netpipes) one can both forward the
> camera results
> and allow for two way command/control. (socat :
> http://www.dest-unreach.org/socat/ )
> examples:
> http://lists.olug.org/pipermail/olug/2007-December/021698.html
> http://www.dest-unreach.org/socat/doc/socat-ttyovertcp.txt
> Programs other than socat : http://www.mzlinux.org/?q=node/58
>
> Craig
>
>
>
>
>
> On Wed, Sep 24, 2014 at 11:51 PM, Craig <sargonemail at gmail.com> wrote:
>
>> *Joe* on
>> *Sun Sep 21 22:58:35 CDT 2014 wrote:*...
>> > The goal here is to drive the raspberry pi by remote (over wifi)
>> > via a web interface
>> ...
>>
>> searching google using linux iot "internet of things" "web interface" sorta helps. ;)
>>
>> A few starter ideas:
>>
>> **Take a look at rewriting udev rules in order to trigger a script/command
>> when a camera get's added / removed.
>>
>> **The following url shows one related approach to doing "web" control.
>> http://www.instructables.com/id/Controlling-Radio-Arduino-Car-via-Web-Screen/?ALLSTEPS
>>
>> Craig
>>
>> =============================================================================
>>
>> Bit dated, but the following related topic from xcssa.org forum circa 7/15/11,
>> subject formally was "[XCSSA] Auto-backup at mount" might help with regards
>> to udev stuff.
>>
>> Linux Pro Magazine #128 has a nice article/links/scripts covering
>> udev, udev rules and the udevadm command:
>> www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html
>> www.kernel.org/pub/linux/utils/kernel/hotplug/udev/udev.html
>> https://wiki.archlinux.org/index.php/Udev
>>
>>
>> From https://wiki.archlinux.org/index.php/Udev#UDisks_Shell_Functions some
>> "nice" ways to script udev stuff:bashmount : https://bbs.archlinux.org/viewtopic.php?id=117674
>>
>> perhaps a 'udev ticker tape' version of https://wiki.archlinux.org/index.php/Udev#UDisks_Wrapper
>>
>> Intro to udev:http://www.linux.com/news/hardware/peripherals/180950-udev
>>
>>
>


More information about the SATLUG mailing list