Go to advanced search

by hk1963
Fri Feb 05, 2016 10:57 am
Forum: General discussion
Topic: getting a raspberry pi to talk to a windows pc
Replies: 5
Views: 1355

Re: getting a raspberry pi to talk to a windows pc

What is the scenario and why?

Before I had fast Internet, I used a Pi to do (slow, long) downloads at night. Next time I switched on the PC, I quickly transferred the stuff from the Pi to the PC.

You really need the stuff imediadetly on the PC for immediate processing?
by hk1963
Tue Sep 01, 2015 2:42 pm
Forum: General discussion
Topic: Raspberr pi and rtl-sdr
Replies: 2
Views: 810

Re: Raspberr pi and rtl-sdr

Yes, I did and do.
The OpenGliderNetwork makes use of Pis with DVB-T dongles and running rtlsdr. A Pi 2 has plenty of margin for it.
http://wiki.glidernet.org/
by hk1963
Fri May 15, 2015 9:58 am
Forum: General discussion
Topic: redusing delay in my code
Replies: 2
Views: 561

Re: redusing delay in my code

Can you give some details about frame size and rate you want to process and what Pi model you use?
Ad hoc, I simply guess the Pi hasn't enough bang for what you ask him to do.
by hk1963
Thu May 07, 2015 12:41 pm
Forum: General discussion
Topic: Is the rpi a political joke?
Replies: 43
Views: 12318

Re: Is the rpi a political joke?

DougieLawson wrote:
gordon77 wrote:It looks like a Pi2 in a clear box he throws on the table
Definitely looks like a 2B to me.
2B or not 2B: That is the question!
by hk1963
Wed May 06, 2015 8:16 am
Forum: General discussion
Topic: Made in PRC
Replies: 28
Views: 20163

Re: Made in PRC

> Yeah, tell us more. While the people are friends. (I am a very much a friend.) The governments are not - very unfortunately! Not saying don't make them there. However, for many customers, there is the absolute need to be able to choose the origin. You imply there may be a backdoor into Chinese ma...
by hk1963
Thu Apr 23, 2015 7:41 am
Forum: General discussion
Topic: Installing LAMP manually
Replies: 5
Views: 1301

Re: Installing LAMP manually

Hey guys, Is there a way to install the LAMP stack from downloaded files? I'm all wireless in my apartment (only wired in my lab), and have no wireless adapter for my Pi. Maybe the simplest way is go and buy a wireless adapter. Takes little money and little time to get it running and will save you ...
by hk1963
Mon Mar 23, 2015 9:43 am
Forum: General discussion
Topic: How long can a PI be left on?
Replies: 26
Views: 9993

Re: How long can a PI be left on?

Wow that's amazing lol. Reason I asked was that I have one running kodi and wondered if I could just leave it running permanent and hidden so when I turn the input over on the TV I can access my movies straight away. :P As the Pi has no moving parts, it is usually better to keep it running all the ...
by hk1963
Fri Mar 20, 2015 12:33 pm
Forum: General discussion
Topic: Service for RPi Only
Replies: 26
Views: 3306

Re: Service for RPi Only

What exactly do you mean with a service only for Raspberry? Some software that runs on a Raspberry? Then it should be not too complicated to identify it. Or some service somewhere on a server and you want only to serve calls that originate from a Raspberry?
by hk1963
Wed Apr 23, 2014 12:21 pm
Forum: Camera board
Topic: raspistill BMP format
Replies: 7
Views: 3038

Re: raspistill BMP format

How do you produce the BMP file?

Lets assume the image filename is picture.bmp

What do you get in a terminal when you run the command

file picture.bmp

What is the output of

od -c picture.bmp | head
by hk1963
Fri Mar 28, 2014 9:10 pm
Forum: Advanced users
Topic: mirroring two usb HDDs
Replies: 14
Views: 6006

Re: mirroring two usb HDDs

rsync --quiet --modify-window=1 --update --recursive --times <sourcedirectory> <targetdirectory> should do the job. If you want some progress output to watch, replace --quiet by --progress If run by cron, --quiet is the better option, if you manually run in a terminal window, --progress is ok --modi...
by hk1963
Fri Mar 28, 2014 11:43 am
Forum: Advanced users
Topic: mirroring two usb HDDs
Replies: 14
Views: 6006

Re: mirroring two usb HDDs

Could someone please post some commands that will allow me to mirror 2 external USB drives please using rsnyc? One basic decision: You really want mirror drive a to drive b, that means what you put on a should also appear on b, what you delete from a should also disappear from b? Or you want everyt...
by hk1963
Mon Mar 24, 2014 2:09 pm
Forum: Automation, sensing and robotics
Topic: Checking script status / detecting script crash
Replies: 11
Views: 9175

Re: Checking script status / detecting script crash

To keep a script running, that means restart it if it for some reason terminates, wrap it e.g. with a bash-script like #!/bin/bash while true; do command_you_want_to_run & wait $! sleep 10 done exit The & puts the process into the background, so the script goes to the next line. wait $! is a command...
by hk1963
Sat Mar 22, 2014 6:31 am
Forum: Troubleshooting
Topic: How do I always select the latest photo?
Replies: 9
Views: 1948

Re: How do I always select the latest photo?

Ok that sounds really promising as I can create the photos with a date and time stamp. I really am a newbie though. Sorry. I don't know how to create that symbolic link. Where would I type that code in my python script? What would I type exactly if my files follow the same naming convention? Sorry,...
by hk1963
Fri Mar 21, 2014 9:53 pm
Forum: Troubleshooting
Topic: How do I always select the latest photo?
Replies: 9
Views: 1948

Re: How do I always select the latest photo?

With regards to the problem of keeping track of some "latest" photo: I have some application which takes photos at different times and stores them in files having a timestamp in the filename, like pic-20140321-184512.jpg To keep accessing the "latest" pic simple, I just keep a symbolic link with a n...
by hk1963
Fri Mar 21, 2014 11:59 am
Forum: Beginners
Topic: New scripts not running
Replies: 5
Views: 867

Re: New scripts not running

Try ./bin in the directory where you stored the bin-script. The PATH-variable usually doesn't (and shouldn't) contain . so if you want to run a script that isn't in a directory that is not in your PATH, you've always to give the path to it. You can see what your path is by giving the command echo $P...
by hk1963
Fri Mar 14, 2014 12:36 pm
Forum: Troubleshooting
Topic: 3 Raspberries out of 15 have issues with Ethernet port
Replies: 20
Views: 2586

Re: 3 Raspberries out of 15 have issues with Ethernet port

Well, dumb things happen so better ask explicitely: Were the Pis switched on with a SD card inserted containing a bootable OS?
by hk1963
Mon Mar 10, 2014 10:39 am
Forum: Automation, sensing and robotics
Topic: ADXL345 Accelerometer
Replies: 29
Views: 4322

Re: ADXL345 Accelerometer

In LXTerminal: pi@raspberrypi ~ $ mkdir -p src/c pi@raspberrypi ~ $ cd src/c pi@raspberrypi ~/src/c $ nano second.c pi@raspberrypi ~/src/c $ ./second (after i run this command zero values run down the page just under the command) 0 0 0 Did you change something with nano, but did not compile? I miss...
by hk1963
Tue Feb 25, 2014 1:20 pm
Forum: General discussion
Topic: Cron Job
Replies: 2
Views: 689

Re: Cron Job

You should add >> /home/pi/cronreboot.log to all calls and extend it to >> /home/pi/cronreboot.log 2>&1 Otherwise, the output to stderr isn't logged, only stdout. Keep in mind, that when cron runs the scripts, there are only few environment variables set and the PATH isn't the same as of the user wh...
by hk1963
Wed Feb 19, 2014 5:37 pm
Forum: Raspbian
Topic: crontab does not perform network check
Replies: 7
Views: 2855

Re: crontab does not perform network check

So this is root's crontab. You may also add something like */5 * * * * /usr/bin/checknetwork >>/var/log/checknetwork.log 2>&1 to the entry so any output of the script is written into some file you can check for messages. Also keep in mind that when run by cron, the command has most environment varia...
by hk1963
Wed Feb 19, 2014 3:55 pm
Forum: Python
Topic: Plot temperature and Time
Replies: 5
Views: 3495

Re: Plot temperature and Time

Check out rrdtool http://oss.oetiker.ch/rrdtool/ Great tool (and a de-facto standard) for storing and displaying data sampled at regular intervals. Have a look at the gallery to see what people use it for: http://oss.oetiker.ch/rrdtool/gallery/index.en.html If your Pi runs Raspbian, just sudo apt-ge...
by hk1963
Mon Feb 03, 2014 8:53 am
Forum: Troubleshooting
Topic: Headless pi not coming back after update -> upgrade
Replies: 5
Views: 1038

Re: Headless pi not coming back after update -> upgrade

Why do you do a shutdown/unplug/plug and not simply issue a reboot? I try to avoid power cycling the Pi whenever possible.
by hk1963
Thu Jan 30, 2014 12:27 pm
Forum: General programming discussion
Topic: Running a program automatically as the Raspberry pi boots up
Replies: 9
Views: 2448

Re: Running a program automatically as the Raspberry pi boot

I've also such an application and decided to run it from the user's crontab with an @reboot entry.
I think it is simpler this way.
by hk1963
Sat Jan 18, 2014 11:09 am
Forum: Advanced users
Topic: how to monitor a command like ngrox?
Replies: 5
Views: 1087

Re: how to monitor a command like ngrox?

hi i using nohup to achieve the mission so far there is no problem. nohup is used to make the background process ignore the hangup signal it gets when you logout from the terminal in which you started the background process. It has nothing to do with restarting a background process that has termina...
by hk1963
Fri Jan 17, 2014 11:14 am
Forum: Advanced users
Topic: how to monitor a command like ngrox?
Replies: 5
Views: 1087

Re: how to monitor a command like ngrox?

Use wait. $! has the ID of the last subprocess started, here that of ngrox. wait <id> waits for the process with that id terminating. return code of wait is the one of the monitored process, IIRC. The sleep is just for preventing rapidly trying to start ngrox over and over again if something fails p...

Go to advanced search