Go to advanced search

by kaksi
Tue Nov 28, 2017 7:41 pm
Forum: Beginners
Topic: Writing files with owner=pi instead of owner=root
Replies: 7
Views: 797

Re: Writing files with owner=pi instead of owner=root

put something like if [ $(tty) == /dev/tty1 ]; then ./script fi .bashrc in user pi home directory Works perfectly. Thank you very much. If it comes handy to others, what to avoid: - do not save these lines with notepad and include the file with nano; .bashrc will be saved in DOS format (some script...
by kaksi
Tue Nov 28, 2017 12:38 pm
Forum: Beginners
Topic: Writing files with owner=pi instead of owner=root
Replies: 7
Views: 797

Writing files with owner=pi instead of owner=root

I have a Python program with the instruction: camera.capture(jpg_name) I call Python from /etc/profile: sudo python /home/pi/cam/PI_CAM.PY I guess the owner is root because I call the script with sudo. The obvious solution does not work: if I call the script w/o sudo, the script does not run. One wa...
by kaksi
Thu Nov 09, 2017 4:31 pm
Forum: General discussion
Topic: apt-get install from /root or LAN
Replies: 1
Views: 361

apt-get install from /root or LAN

Time again to reformat my SD card... I would like to download and install python-picamera, python-imaging and arp-scan and only then run apt-get update, keeping the downloaded files for the next time. I have found something on http://archive.raspbian.org/raspbian/pool/main/a/arp-scan/, I just do not...
by kaksi
Sat Oct 21, 2017 7:51 pm
Forum: Beginners
Topic: RPI3 connection with WPA2 (Hostname - I: 169.254.3.34)
Replies: 11
Views: 1260

Re: RPI3 connection with WPA2 (Hostname - I: 169.254.3.34)

In fact, I would need a directional antenna on both ends (just not very handy for RPI). More in detail what I suspect: The directional antenna works mostly one way: - ghost emits a very concentrated beam, the part of power RPI receives is important - RPI emits in all directions, there is only a marg...
by kaksi
Fri Oct 20, 2017 1:32 pm
Forum: Beginners
Topic: RPI3 connection with WPA2 (Hostname - I: 169.254.3.34)
Replies: 11
Views: 1260

Re: RPI3 connection with WPA2 (Hostname - I: 169.254.3.34)

Expecting nothing, I corrected the in raspi-config the country codes. I was not deceived, it did not help. But I think I am into something now. I digged out my TP-LINK AV200 WiFi Powerline Extender. One device connected to GHOST, the second one to the next room to RPI (one wall and one wooden door b...
by kaksi
Thu Oct 19, 2017 8:21 pm
Forum: General discussion
Topic: Time Lapse Photography And avconv
Replies: 13
Views: 4194

Re: Time Lapse Photography And avconv

kaksi - Hi and thanks for contributing. From the quick look I've taken, your code could analyse a passed image, determine a general level of brightness and then test against a threshold to delete said image Black images are not very interesting, especially when you make a video. Than there is the q...
by kaksi
Thu Oct 19, 2017 3:25 pm
Forum: General discussion
Topic: Time Lapse Photography And avconv
Replies: 13
Views: 4194

Re: Time Lapse Photography And avconv

5. the script waits to the end of 'the period' then starts (as a background task, so runs concurrently on a single processor (pi Zero)) avconv to get a 'rough cut' for review purposes, meanwhile restarts picture capture to a new folder for the next days photos (video conversion takes ~sub 4hrs and ...
by kaksi
Thu Oct 19, 2017 2:42 pm
Forum: General discussion
Topic: Time Lapse Photography And avconv
Replies: 13
Views: 4194

Re: Time Lapse Photography And avconv

I have a useful function (just slightly adapted what I found on internet): def darkness(): if brightness==0: return 0 im=Image.open(jpg_name) pixels=(im.size[0]*im.size[1]) hist=im.convert('L').histogram() br=float(sum([i2*hist[i2] for i2 in range(256)]))/pixels if(br<brightness): os.remove(jpg_name...
by kaksi
Thu Oct 19, 2017 12:34 pm
Forum: Beginners
Topic: RPI3 connection with WPA2 (Hostname - I: 169.254.3.34)
Replies: 11
Views: 1260

Re: RPI3 connection with WPA2 (Hostname - I: 169.254.3.34)

ifconfig eth0 Link encap:Ethernet HWaddr b8:27:eb:fc:30:8f inet addr:192.168.1.103 Bcast:192.168.1.255 Mask:255.255.255.0 inet6 addr: fe80::a5e:c30b:8532:23f3/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:128 errors:0 dropped:2 overruns:0 frame:0 TX packets:99 errors:0 dr...
by kaksi
Thu Oct 19, 2017 11:36 am
Forum: Beginners
Topic: Get rid of permissions
Replies: 19
Views: 2420

Re: Get rid of permissions

this is a horrible way of doing things I feared that and I see I was right to fear it. At least it works... The idea is: PI_CAM.PY pilots the camera, on start, it reads in PI_CAM.INI when it should take photos, sleep, in which frequency and for which brightness it should delete the picture. If I mo...
by kaksi
Wed Oct 18, 2017 3:46 pm
Forum: Beginners
Topic: Get rid of permissions
Replies: 19
Views: 2420

Re: Get rid of permissions

How is that different from Windows 10 popping up dialogs all the time asking me to give permission to do this and that? That is not a counter argument. :D It does not cheer me up when things are worse elsewhere. I try to get inspired by where it is better. My computers have thousands of potential u...
by kaksi
Tue Oct 17, 2017 11:29 pm
Forum: Beginners
Topic: RPI3 connection with WPA2 (Hostname - I: 169.254.3.34)
Replies: 11
Views: 1260

Re: RPI3 connection with WPA2 (Hostname - I: 169.254.3.34)

why wpa_supplicant isn't associated with your home access point. That's in fact my question. Yes, the router has the address 192.168.1.254. Android gets the address 192.168.1.104. Realtek dongle gets the address 192.168.1.106. That turns my suspicion to RPI. Ping from RPI to 192.168.1.254 - via cab...
by kaksi
Tue Oct 17, 2017 7:53 pm
Forum: Beginners
Topic: RPI3 connection with WPA2 (Hostname - I: 169.254.3.34)
Replies: 11
Views: 1260

Re: RPI3 connection with WPA2 (Hostname - I: 169.254.3.34)

DougieLawson wrote:
Tue Oct 17, 2017 6:25 pm
It depends on priority in your network block. High number means more likely to connect.
Thanks, that will work perfectly. High priority to devil and when I want to connect to ghost, I switch devil off.

Now the hostname. I know you know the answer );
by kaksi
Tue Oct 17, 2017 7:18 pm
Forum: Beginners
Topic: Get rid of permissions
Replies: 19
Views: 2420

Re: Get rid of permissions

I quite expected the stuff about security. Some counter-arguments: 1) I am using DOS and command line under XP for 35 years. I do not say I never deleted a file by mistake - just much less that users clicking on "Are you sure?" Why? Because I learned (maybe the hard way) to think before. 2) If I exc...
by kaksi
Tue Oct 17, 2017 6:17 pm
Forum: Beginners
Topic: Get rid of permissions
Replies: 19
Views: 2420

Re: Get rid of permissions

I have no idea what you mean when you say you need to mount a USB stick etc. If the GUI is running USB sticks with FAT, VFAT will auto mount for user pi (read/write). NTFS things need an extra driver. Ehm.... Yes... I seldom use the GUI, so I did not think of that. (Still, copying it over network i...
by kaksi
Tue Oct 17, 2017 6:14 pm
Forum: Beginners
Topic: RPI3 connection with WPA2 (Hostname - I: 169.254.3.34)
Replies: 11
Views: 1260

RPI3 connection with WPA2 (Hostname - I: 169.254.3.34)

I run RPI3 with a camera w/o monitor, mouse, keyboard and I control it over WiFi. The configuration: XP with WinSCP <-RJ45-> router devil <-WiFi-> RPI3 <-RJ45-> router ghost <-RJ45-> antena <-WiFi-> internet provider The content of wpa_supplicant.conf: ctrl_interface=DIR=/var/run/wpa_supplicant GROU...
by kaksi
Tue Oct 17, 2017 12:40 pm
Forum: Beginners
Topic: Get rid of permissions
Replies: 19
Views: 2420

Get rid of permissions

One reason why I still did not move from Windows XP to Linux are permissions. When I hope it will work, bing!!! Now, I have problems with WPA2, I hoped to find help here and I want to post the wpa_supplicant.conf. In my naivety, I connected with WinSCP (BTW, it is a great program and I am not ashame...
by kaksi
Tue Oct 17, 2017 12:01 pm
Forum: Beginners
Topic: SD card locked
Replies: 19
Views: 10700

Re: SD card locked

I have this problem quite often when the power goes down. If SDformatter cannot cope with it, I throw it. Years ago, I read somewhere there is a built-in mechanism locking the card if it starts to make errors in order not to overwrite good data with trash. Makes some sense, but even an unreliable ca...
by kaksi
Tue Jan 31, 2017 8:29 am
Forum: Beginners
Topic: SD card boots only partly in RPI, undetected elsewhere
Replies: 3
Views: 595

Re: SD card boots only partly in RPI, undetected elsewhere

Sure, it is a micro SDcard and I use a USB adapter. It gave me the idea to put the card into a microSD to SD adapter and try it in my camera. The camera did not complain, so I started Win32DiskImager. Thanks. I suppose you are puzzled by my IP address - I expatriated to Slovakia to a lost village. T...
by kaksi
Tue Jan 31, 2017 7:52 am
Forum: Beginners
Topic: SD card boots only partly in RPI, undetected elsewhere
Replies: 3
Views: 595

SD card boots only partly in RPI, undetected elsewhere

Hi everyone, On RPI, the card seems to boot as usually, at least, there are no red warnings. The screen gets black, a small thermometer appears in the upper right corner and nothing else happens. XP does not detect the card, tried on two computers. W7 does not detect the card, tried 2 ports. Ubuntu1...
by kaksi
Tue Jan 31, 2017 7:44 am
Forum: Beginners
Topic: Running Pixel from a write-protected SD card
Replies: 2
Views: 527

Re: Running Pixel from a write-protected SD card

Thanks for the reply, I had a quick look and I will try it as soon as I get a new card.
by kaksi
Mon Jan 30, 2017 11:24 pm
Forum: Beginners
Topic: Running Pixel from a write-protected SD card
Replies: 2
Views: 527

Running Pixel from a write-protected SD card

Hi everyone, RPI just destroyed my third SD Card, UPS is not an option. Many Linux live distributions can (or could) run from a CD-ROM. Could RPI apply the same principle? (If the card becomes unreadable, logs are not of much use anyway). The idea is to write data on a USB key - if it gets destroyed...
by kaksi
Sun Jan 08, 2017 8:05 pm
Forum: Beginners
Topic: start PI camera on reboot
Replies: 1
Views: 479

Re: start PI camera on reboot

I have solved a very similar problem this way: in /etc/rc.local, I added: sudo python /media/usb_1/WATCHDOG.PY & (do not to forget the "&" at the end of the line and place it before the line with exit) Via network, I create shut.r (in which case WATCHDOG restarts the PI) or shut.h (to shut it down p...
by kaksi
Mon Nov 21, 2016 5:27 am
Forum: Beginners
Topic: WiFi: IP address in the range169.254.3.x?
Replies: 2
Views: 806

Re: WiFi: IP address in the range 169.168.1.x?

The TP-LINK TL-WR1042N / TL-WR1042ND gives quite a lot of possibilities. I skipped WPA/WPA2 - Entreprise and tried WPA/WPA2 Personal: Version: Automatic; WPA-PSK; WPA2-PSK. Encryption: Automatic; TKIP; AES. I tried all 9. Realtek connects. BTW,I would not mind to run it w/o encryption, WiFi does not...
by kaksi
Tue Nov 15, 2016 9:27 pm
Forum: Beginners
Topic: WiFi: IP address in the range169.254.3.x?
Replies: 2
Views: 806

WiFi: IP address in the range169.254.3.x?

I set up WiFi (raspbian-jessie-lite) using the tutorial https://www.raspberrypi.org/documentation/configuration/wireless/wireless-cli.md. Everything OK, I just had some fears when I saw the IP address 169.254.3.34. Effectively, WinSCP cannot connect. I suppose the easiest way to solve the problem is...

Go to advanced search