Go to advanced search

by norpi
Sun Nov 29, 2015 1:36 pm
Forum: Troubleshooting
Topic: My 3 rpi's are not booting anymore
Replies: 0
Views: 233

My 3 rpi's are not booting anymore

Hi I have 3 Rpi 2+ all with a dedicated sdcard. After somths of other projects I have started looking into using the rpis again. However I cannot get them to boot. I have tried new imaged of raspbian, noobs and musicbox on the cards which I use SD formatter on first and then copy the image on the ca...
by norpi
Fri Apr 24, 2015 5:55 pm
Forum: Troubleshooting
Topic: Wifi disables my ethernet connection
Replies: 18
Views: 1795

Re: Wifi disables my ethernet connection

Thank you very much.
Now I have something to work with.

Have a great weekend!
by norpi
Thu Apr 23, 2015 4:34 pm
Forum: Python
Topic: Python 3 checking internet connection
Replies: 7
Views: 19857

Re: Python 3 checking internet connection

I see, when having more than just the one try line I need them down on a separate level. Now to my next issue as the code went further it gets caught in another loop it seems (see below). test 1 test 3 [Errno -2] Name or service not known Network currently down. test 1 test 3 [Errno -2] Name or serv...
by norpi
Thu Apr 23, 2015 4:01 pm
Forum: Python
Topic: Python 3 checking internet connection
Replies: 7
Views: 19857

Re: Python 3 checking internet connection

I see But why do I get a error message saying invalid syntax? print ("test 1") loop_value = 1 while loop_value == 1: print ("test 2") try: urllib.request.urlopen("http://www.google.com") loop_value = 0 except urllib.error.URLError as e: print(e.reason) f.write( "Network currently down." ) time.sleep...
by norpi
Wed Apr 22, 2015 7:15 pm
Forum: Python
Topic: Python 3 checking internet connection
Replies: 7
Views: 19857

Re: Python 3 checking internet connection

Hi I dont know if it works, it seems that it does several attempts even if it is connected. print ("test 1") loop_value = 1 while loop_value == 1: print ("test 2") try: urllib.request.urlopen("http://google.com") except urllib.error.URLError as e: print(e.reason) f.write( "Network currently down." )...
by norpi
Wed Apr 22, 2015 6:01 pm
Forum: Troubleshooting
Topic: Wifi disables my ethernet connection
Replies: 18
Views: 1795

Re: Wifi disables my ethernet connection

Any suggestions?
by norpi
Fri Apr 17, 2015 2:46 pm
Forum: Troubleshooting
Topic: Wifi disables my ethernet connection
Replies: 18
Views: 1795

Re: Wifi disables my ethernet connection

The commands kill the process and then uninstall it, though it seems you already did that. Yes, I already did that, so the Wifi works if I remove this code (not sure how) from the file: "auto eth0" auto lo iface lo inet loopback #iface eth0 inet dhcp auto eth0 iface eth0 inet static address 192.168...
by norpi
Fri Apr 17, 2015 9:23 am
Forum: Troubleshooting
Topic: Wifi disables my ethernet connection
Replies: 18
Views: 1795

Re: Wifi disables my ethernet connection

Could you explain why it is insane and what the commands do?
by norpi
Fri Apr 17, 2015 6:36 am
Forum: Troubleshooting
Topic: Wifi disables my ethernet connection
Replies: 18
Views: 1795

Re: Wifi disables my ethernet connection

As you can see the "allow-hotplug wlan0" is already in there.
I will look at ifplugged later today and see if I can change it to work as I want it to.
by norpi
Fri Apr 17, 2015 6:06 am
Forum: Troubleshooting
Topic: Wifi disables my ethernet connection
Replies: 18
Views: 1795

Re: Wifi disables my ethernet connection

Thanks for that input, but now only one of my connections work even if the other one is unplugged(eth0) or turned off (wifi). I mean wifi wont work even if eth0 is unplugged unless I remove "auto eth0" from my configuration file and vice versa eth0 does not work at all (wifi on or off) unless I incl...
by norpi
Fri Apr 17, 2015 5:35 am
Forum: Troubleshooting
Topic: Wifi disables my ethernet connection
Replies: 18
Views: 1795

Re: Wifi disables my ethernet connection

So only take away the "network 192.168.10.0" - line in both interfaces?
Will try this later today.
Thanks
by norpi
Thu Apr 16, 2015 7:19 pm
Forum: Python
Topic: Python 3 checking internet connection
Replies: 7
Views: 19857

Python 3 checking internet connection

Hi I found some code to test wether I am connected to internet or not but it was based on pytnon 2 so I had to make some adjustments. loop_value = 1 while (loop_value = 1): try: urlopen("http://google.com") except urllib2.URLError, e: f.write( "Network currently down." ) else: print( "Up and running...
by norpi
Thu Apr 16, 2015 6:09 pm
Forum: Troubleshooting
Topic: Wifi disables my ethernet connection
Replies: 18
Views: 1795

Re: Wifi disables my ethernet connection

Hi again Now my wifi works as before, but my ethernet connection do not work at all. if I add auto eth0 to the file it does but this disables any wifi connections. So that if I restart networking after adding auto eth0 it works, but if I unplug and restart again it won't connect to wifi. Now it look...
by norpi
Thu Apr 16, 2015 5:36 pm
Forum: Troubleshooting
Topic: Wifi disables my ethernet connection
Replies: 18
Views: 1795

Re: Wifi disables my ethernet connection

Thank you, I will try this :)
by norpi
Thu Apr 16, 2015 5:35 pm
Forum: Python
Topic: FTP transfer to network disk fails
Replies: 4
Views: 908

Re: FTP transfer to network disk fails

Thanks a lot!, I will try this.
by norpi
Thu Apr 16, 2015 5:33 pm
Forum: Camera board
Topic: camera module comming and going
Replies: 3
Views: 1459

Re: camera module comming and going

Hi
I have tried two different 2A supplies but this keeps happening now and then.
It does mostly work but sometimes I still get this message
by norpi
Thu Apr 16, 2015 5:11 pm
Forum: Troubleshooting
Topic: Wifi disables my ethernet connection
Replies: 18
Views: 1795

Wifi disables my ethernet connection

Hi I have modified my /etc/network/interfaces according to tutorials so that it says: (I need static IP on both connections for VNC purposes) auto lo iface lo inet loopback #iface eth0 inet dhcp iface eth0 inet static address 192.168.10.178 netmask 255.255.255.0 network 192.168.10.0 gateway 192.168....
by norpi
Thu Apr 16, 2015 4:29 pm
Forum: Python
Topic: FTP transfer to network disk fails
Replies: 4
Views: 908

Re: FTP transfer to network disk fails

Thanks for your feedback and sorry for my late reply, I forgot to enable email notification. I dont quite follow you, what do you mean by a new instance of ftp? The code you see is a part of a longer script that automatically detects movement, then records a movie and among other things uploads it t...
by norpi
Sat Apr 11, 2015 8:37 pm
Forum: Python
Topic: FTP transfer to network disk fails
Replies: 4
Views: 908

FTP transfer to network disk fails

Hi I try to transfer a film made by the camera module to my network disk by using the python3 script below. The uploading has worked on several occasions so I know that the NAS side is ok, but there is something causing unstability as can be seen in the terminal output when trying to run the code. I...
by norpi
Sat Apr 11, 2015 10:38 am
Forum: Camera board
Topic: camera module comming and going
Replies: 3
Views: 1459

camera module comming and going

Hi My camera module has been working fine in my python code, but recently it has become unstable giving errors like: mmal: mmal_vc_component_enable: failed to enable component: ENOSPC Traceback (most recent call last): File "kattdet.py", line 15, in <module> camera = picamera.PiCamera() File "/usr/l...
by norpi
Fri Apr 10, 2015 3:48 pm
Forum: Python
Topic: Deleting issue using os.remove
Replies: 11
Views: 3090

Re: Deleting issue using os.remove

Thanks, it works by splitting it also:
filestr = os.path.join('/home/pi/Python_kode/Kattedetektor',file)
os.remove(filestr)
by norpi
Fri Apr 10, 2015 3:36 pm
Forum: Python
Topic: Deleting issue using os.remove
Replies: 11
Views: 3090

Re: Deleting issue using os.remove

Ok so instead I do

filestring = os.path.join("/home/pi/Python_kode/Kattedetektor", file))
and then
os.remove(filestring)
?
by norpi
Fri Apr 10, 2015 3:20 pm
Forum: Python
Topic: Deleting issue using os.remove
Replies: 11
Views: 3090

Re: Deleting issue using os.remove

There is nothing about os.remove or os.join here, can you please elaborate?
by norpi
Fri Apr 10, 2015 2:57 pm
Forum: Python
Topic: Deleting issue using os.remove
Replies: 11
Views: 3090

Re: Deleting issue using os.remove

Hi I get this when trying your code: for file in os.listdir("/home/pi/Python_kode/Kattedetektor/"): if file.endswith(".h264"): os.remove(os.join("/home/pi/Python_kode/Kattedetektor", file)) Terminal: Traceback (most recent call last): File "/home/pi/Python_kode/Kattedetektor/kattdet.py", line 64, in...
by norpi
Fri Apr 10, 2015 10:26 am
Forum: Raspberry Pi OS
Topic: Run bash script after starting X
Replies: 10
Views: 3540

Re: Run bash script after starting X

Hi
I find it a bit strange as well, but will try some more.

Go to advanced search