Go to advanced search

by f32mark
Mon Dec 03, 2012 1:33 pm
Forum: Troubleshooting
Topic: USB redux
Replies: 514
Views: 194374

Re: USB redux

Can you post exact steps to reproduce the problem please (unless you've already done so on github or similar, in which case can you link them). Try the following. Connect your camera. Then try gphoto2 -L . And then again. If that works, we need some cooperation from your camera: try gphoto2 --captu...
by f32mark
Sat Nov 24, 2012 8:23 pm
Forum: C/C++
Topic: displaying image using curses.lib
Replies: 16
Views: 4022

Re: displaying image using curses.lib

AndyD, thanks for you thoughts. I've spend a few hours today looking into what I want to do, and I've come to the conclusion that a small web server is the way to go. For info, this is a simple little project of mine, to use a USB webcam as a motion detector (using the 'motion' tool) to fire off a D...
by f32mark
Sat Nov 24, 2012 7:27 pm
Forum: General programming discussion
Topic: A better gui text editor?
Replies: 51
Views: 35106

Re: A better gui text editor?

SN wrote:vi

it is blasphemy to use anything else on a unix system ;)
Wimp! Shirley all proper programmers are still using sed?
by f32mark
Sat Nov 24, 2012 1:18 pm
Forum: C/C++
Topic: displaying image using curses.lib
Replies: 16
Views: 4022

Re: displaying image using curses.lib

If I run test_image as root from a SSH session, it displays the image on the screen attached to the Pi!
by f32mark
Sat Nov 24, 2012 8:25 am
Forum: C/C++
Topic: displaying image using curses.lib
Replies: 16
Views: 4022

Re: displaying image using curses.lib

Thanks, both.

It works, but not on ssh (as I suspected). I think I'll have to go the web-server route to display images 'headless'.
by f32mark
Fri Nov 23, 2012 4:29 pm
Forum: C/C++
Topic: displaying image using curses.lib
Replies: 16
Views: 4022

Re: displaying image using curses.lib

Hmm, not much success. I've run sudo apt-get install libsdl-dev but when I try to compile your test_image.c ( gcc -o test_image test_image.c -lSDL_image
), I get:
test_image.c:1:17: fatal error: SDL.h: No such file or directory
any ideas?
by f32mark
Fri Nov 23, 2012 2:40 pm
Forum: C/C++
Topic: displaying image using curses.lib
Replies: 16
Views: 4022

Re: displaying image using curses.lib

Thanks for this AndyD I'll give it a try when get home.
by f32mark
Thu Nov 22, 2012 10:30 am
Forum: C/C++
Topic: displaying image using curses.lib
Replies: 16
Views: 4022

Re: displaying image using curses.lib

As I've said, I dont want to use X at all. Thanks for the SDL idea, I'll take a look at that, otherwise I'm going to have to take fbi apart and use parts of that to do what I want.
by f32mark
Tue Nov 20, 2012 7:18 am
Forum: C/C++
Topic: displaying image using curses.lib
Replies: 16
Views: 4022

displaying image using curses.lib

Any one know if it's possible to display an image within a window maintained by curses package? Or if there is an alternative screen handler for terminal sessions that can support this? (i don't want the overhead of running X)
by f32mark
Mon Nov 19, 2012 12:52 pm
Forum: Other projects
Topic: Connect High Quality Camera
Replies: 4
Views: 1100

Re: Connect High Quality Camera

In the meantime, you can control a DSLR with gphoto2 if you want to try things out. I can control a canon 60D to take high quality still or HD video shots.
by f32mark
Sun Nov 18, 2012 2:37 pm
Forum: Beginners
Topic: redirecting stdout
Replies: 6
Views: 5101

Re: redirecting stdout

I checked the code of motion and found it's outputting on stderr, so 2> /dev/null does the trick!
by f32mark
Sun Nov 18, 2012 10:06 am
Forum: Beginners
Topic: redirecting stdout
Replies: 6
Views: 5101

Re: redirecting stdout

Clearly Motion's output is not being sent to stdout - any way I can out what it's writing to?
by f32mark
Sat Nov 17, 2012 10:19 am
Forum: Beginners
Topic: redirecting stdout
Replies: 6
Views: 5101

redirecting stdout

I'm trying to drop the output from a program (motion), but using 0> /dev/null doesn't seem to work - any ideas?
by f32mark
Wed Nov 14, 2012 11:33 am
Forum: C/C++
Topic: using motion to control a camera
Replies: 2
Views: 3621

Re: using motion to control a camera

Thanks for sharing your code. I face a similar problem. Do you know if it is possible to use TWO cameras at the same time? I was also thinking about using Pi, but now I am not sure what advantage( to use Pi ) is. You will have to add a screen( LCD panel) to check pictures taken by the camera, so pr...
by f32mark
Tue Nov 13, 2012 8:53 am
Forum: Other projects
Topic: Photography Projects
Replies: 150
Views: 64787

Re: Photography Projects

I throw into the mix using "motion" with a web cam to trigger DSLR with gphoto. I've used these two bits of software separately. Never used "motion" to call other commands but these could be to fire the DSLR. I've got this working with a Canon D60, and a HP webcam. further info here: http://www.ras...
by f32mark
Sat Nov 10, 2012 2:48 pm
Forum: C/C++
Topic: using motion to control a camera
Replies: 2
Views: 3621

using motion to control a camera

After a bit of head scratching, I've finally managed to control a remote camera (a canon 60D in this example) using the motion package and a webcam to detect movement. Ive installed the gphoto2 library and used the sample code provided here http://sepharads.blogspot.co.uk/2011/11/camera-tethered-cap...
by f32mark
Wed Oct 10, 2012 10:46 am
Forum: General discussion
Topic: New IT (UK) Supplier
Replies: 178
Views: 28192

Re: New IT (UK) Supplier

yes, but could probably drive that 100 miles well within 2 hours. Try doing 100 miles in Ireland (away from the Motorways) in that time
by f32mark
Mon Oct 08, 2012 12:19 pm
Forum: Other projects
Topic: In Car data logger
Replies: 4
Views: 1467

Re: In Car data logger

I suggest you check out motion as a starting point. It can be configured to record video or still photos at varying frequencies, you can configure the sensitivty of the webcam, mask out parts of the image etc. Lots more here: http://www.lavrsen.dk/foswiki/bin/view/Motion/WebHome
by f32mark
Fri Oct 05, 2012 12:41 pm
Forum: Troubleshooting
Topic: booting headess is slower than with screen?
Replies: 3
Views: 578

booting headess is slower than with screen?

I've noticed that it takes about 15 seconds longer to boot my Pi without a screen attached (I mean without a HDMI cable attached). The only other two connections are power and ethernet (no usb). I'm timing this from when an ssh connection is made. Obviously I cant see any messages without the screen...
by f32mark
Fri Oct 05, 2012 7:13 am
Forum: C/C++
Topic: Text based IDE for C
Replies: 12
Views: 2839

Re: Text based IDE for C

When I google for MC I find editors for minecraft - is this what you mean?
by f32mark
Thu Oct 04, 2012 1:12 pm
Forum: C/C++
Topic: Text based IDE for C
Replies: 12
Views: 2839

Re: Text based IDE for C

Thanks, I'll give Vim a whirl.
by f32mark
Thu Oct 04, 2012 12:16 pm
Forum: C/C++
Topic: Text based IDE for C
Replies: 12
Views: 2839

Re: Text based IDE for C

Vi and nano are both text based editors. I use Vi, bit only because I've been using it for decades. I remember vi, and I'm familiar with nano. what I'm after is something a bit more intelligent, with auto-indentation, syntax checking, auto makefile generation, debug mode - that sort of thing. The l...
by f32mark
Thu Oct 04, 2012 12:02 pm
Forum: C/C++
Topic: Text based IDE for C
Replies: 12
Views: 2839

Text based IDE for C

I've tried searching, but to no avail. I'm returning to C programming from the early 90s, so I'm a bit behind the times! Is there either a text-based editor, or IDE that people recommend? (by text-based, I mean something I don't need to start X up for, and can be used via ssh.)
by f32mark
Tue Oct 02, 2012 6:24 am
Forum: General discussion
Topic: New IT (UK) Supplier
Replies: 178
Views: 28192

Re: New IT (UK) Supplier

& hello to you! I placed an order this morning, via paypal, and got an order shipped notice AT 15:35. Can you offer to take over RS' dispatch system? I ordered in June from them to replace my first Pi that suffered irreparable damage to the SD card reader and I'm still waiting! Just received my Pi,...
by f32mark
Tue Oct 02, 2012 6:23 am
Forum: General discussion
Topic: Order and Shipping update from RS & Allied
Replies: 775
Views: 128588

Re: Order and Shipping update from RS & Allied

The foundation chose to ally itself to RS and continues to do so by making it possible to order from RS despite them failing at every step. They're great guys though, and we should be feeling sorry for them because they're in barbados laughing their backsides off. I'd cancel but according to RS it'...

Go to advanced search