Go to advanced search

by Cyroq
Sun Jul 14, 2019 9:15 pm
Forum: Python
Topic: Approach? Multiprocessing and variables
Replies: 4
Views: 551

Re: Approach? Multiprocessing and variables

The queue function and your directions to the docs are exactly what I needed! I've spend a few hours today getting the hang of it and my project is now completed. And I learned a lot more about Python :lol: I ended up using this format: def loop_a(q): #startup animation while q.empty() == True: #fad...
by Cyroq
Sun Jul 14, 2019 12:10 pm
Forum: Python
Topic: Approach? Multiprocessing and variables
Replies: 4
Views: 551

Re: Approach? Multiprocessing and variables

Thanks for your reply. That is almost what I'm after; I'll give a bit more context. The processes are animated LEDs, which fade in and out with a PWM signal. They all have different PWM rates, so the duration of one cycle (fade-in-fade-out) differs between the processes. When the button is switched ...
by Cyroq
Fri Jul 12, 2019 2:03 pm
Forum: Python
Topic: Approach? Multiprocessing and variables
Replies: 4
Views: 551

Approach? Multiprocessing and variables

I just learning about Python and I'm having trouble with figuring this out. I have a working script in which multiple functions are called with multiprocessing. The functions make use of a variable that dictates how long the function should run (within the functions are a lot more coding/math with t...
by Cyroq
Thu Feb 14, 2019 4:56 pm
Forum: Troubleshooting
Topic: Internet on wifi, not on ethernet
Replies: 8
Views: 324

Re: Internet on wifi, not on ethernet

Since my provider/router tends to shuffle my ip address once in a while, I rather have a static address. So I shortened the DHCP range and chose a static address outside of that range. Which works! Apparently that specific address (.55) wasn't handled correctly by my router. Many many thanks for you...
by Cyroq
Thu Feb 14, 2019 4:25 pm
Forum: Troubleshooting
Topic: Internet on wifi, not on ethernet
Replies: 8
Views: 324

Re: Internet on wifi, not on ethernet

I'm sorry! The output was this: eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 inet 192.168.2.75 netmask 255.255.255.0 broadcast 192.168.2.255 ether b8:27:eb:80:3e:de txqueuelen 1000 (Ethernet) RX packets 7581 bytes 983848 (960.7 KiB) RX errors 0 dropped 1 overruns 0 frame 0 TX packets 76...
by Cyroq
Thu Feb 14, 2019 4:05 pm
Forum: Troubleshooting
Topic: Internet on wifi, not on ethernet
Replies: 8
Views: 324

Re: Internet on wifi, not on ethernet

Alright, I commented all information about the static ip: # Example static IP configuration: #interface eth0 #static ip_address=192.168.2.55/24 #static ip6_address=fd51:42f8:caae:d92e::ff/64 #static routers=192.168.2.254 #static domain_name_servers=192.168.2.254 Now the Pi boots with a different ip ...
by Cyroq
Thu Feb 14, 2019 3:46 pm
Forum: Troubleshooting
Topic: Internet on wifi, not on ethernet
Replies: 8
Views: 324

Re: Internet on wifi, not on ethernet

Thanks for your reply. I looks like dhcpcd.conf is the same whether I'm connected by wifi or LAN: # Generated by resolvconf domain home nameserver 192.168.2.254 I added 8.8.8.8 to 'static domain_name_servers' but it didn't make a difference. In fact, I can't seem to reproduce my previous solution so...
by Cyroq
Thu Feb 14, 2019 12:52 pm
Forum: Troubleshooting
Topic: Internet on wifi, not on ethernet
Replies: 8
Views: 324

Internet on wifi, not on ethernet

Hi all, I've been browsing and experimenting for hours but I can't find the solution to my problem. I'm running a Raspberry Pi 3 with Raspbian 9 (Stretch). The IP address should be static. With wifi I am connected to the internet, but as soon as I plug in my ethernet cable, the connection is lost. I...
by Cyroq
Fri Mar 17, 2017 10:23 am
Forum: Automation, sensing and robotics
Topic: Thoughts on RGB led strip RF controller
Replies: 0
Views: 547

Thoughts on RGB led strip RF controller

Hi all, I need some thoughts on this project. As part of my Home Automation project I want to put some RGB leds in the bedroom. Since I already have a Pi that uses RF to control wireless switches (necessary python scripts found on the interwebz) I was thinking: maybe I can also control the RGB leds ...
by Cyroq
Thu Feb 02, 2017 11:27 am
Forum: Automation, sensing and robotics
Topic: PHP executes Python but not GPIO
Replies: 2
Views: 724

Re: PHP executes Python but not GPIO

That was an easy fix. Thanks!
by Cyroq
Fri Jan 27, 2017 9:40 am
Forum: Automation, sensing and robotics
Topic: PHP executes Python but not GPIO
Replies: 2
Views: 724

PHP executes Python but not GPIO

Hi all, For an automation project I'm hooking my catfeeder-system up to a webserver. I've got the server running and by using shell_exec() in the php file, I can execute .py scripts. However, as soon as the script needs to control GPIO functions, the script stops working (or at least, I don't see an...
by Cyroq
Sun Nov 20, 2016 4:11 pm
Forum: Troubleshooting
Topic: Power RasPi and servo with one source
Replies: 3
Views: 2277

Re: Power RasPi and servo with one source

Thanks for your reply. I'm using a 2A power adapter now, I thought that would be sufficient. When I power everything through PC-usb, The LEDs do dim shortly when the servo changes direction, so I'm not sure how happy the Pi is with this setup. Because of this, a setup with the servo powered seperate...
by Cyroq
Sat Nov 19, 2016 5:55 pm
Forum: Troubleshooting
Topic: Power RasPi and servo with one source
Replies: 3
Views: 2277

Power RasPi and servo with one source

Hi all, I have a Raspberry Pi that is controlling LEDs and a servo. When I power the Pi via usb which is connected to a computer, I can control the servo directly without any problems. However, when using a separate usb adapter the Pi shuts down at the moment the servo should be turning. My conclusi...
by Cyroq
Thu May 12, 2016 10:55 am
Forum: Beginners
Topic: 5.3v charger
Replies: 26
Views: 5675

Re: 5.3v charger

I received my new Samsung usb cable and did some tests. My current setup is a Raspberry Pi 3 with external harddrive connected (seperate power supply) and ambilight (50 LEDs) attached to the GPIO (also seperate power supply). - The new usb cable does not make any difference; - Disconnecting the ambi...
by Cyroq
Tue May 10, 2016 11:12 am
Forum: Beginners
Topic: 5.3v charger
Replies: 26
Views: 5675

Re: 5.3v charger

This is how the rainbow icon appears on my screen. It's possible that it is my tv screen which is causing the cropped image, it's an old monitor.
I've ordered a new usb cable (Samsung), hopefully this wil fix the voltage issues. It's still 3ft, couldn't find a shorter one :|
by Cyroq
Mon May 09, 2016 9:06 am
Forum: Beginners
Topic: 5.3v charger
Replies: 26
Views: 5675

Re: 5.3v charger

I was looking for a solution to the rainbow icon when I coincidentally stumbled upon the previous post: I'm also using the HP Touchpad charger. I replaced a 1.5A Samsung for the 2.0A HP charger, hoping that the rainbow icon would be gone, but it's still there. The charger is original, including the ...
by Cyroq
Sat Jan 09, 2016 2:44 pm
Forum: Networking and servers
Topic: Closing OpenVPN connection
Replies: 3
Views: 6798

Re: Closing OpenVPN connection

Thank you for your reply. In the meantime I figured out that not all internet connection is lost when closing the VPN connection. The problem is in Kodi: I can't connect to any radiostream, YouTube video etc when the VPN connection is stopped, but it is still possible to download torrents for exampl...
by Cyroq
Wed Jan 06, 2016 3:38 pm
Forum: Networking and servers
Topic: Closing OpenVPN connection
Replies: 3
Views: 6798

Re: Closing OpenVPN connection

*bump*
Nobody has any experience with this? I'm looking for a method to easily turn on and off my VPN connection, preferably remotely (using a smartphone) so I can keep Kodi running at the same time.
by Cyroq
Thu Dec 17, 2015 4:48 pm
Forum: Networking and servers
Topic: Closing OpenVPN connection
Replies: 3
Views: 6798

Closing OpenVPN connection

Hi all, I successfully connected to a VPN connection using OpenVPN. It starts automatically at boot: @reboot systemctl start openvpn@server.service However, sometimes I need to temporarily disconnect from the VPN, mainly for reaching videostreams that are only available in my own country (the VPN co...
by Cyroq
Sun Nov 01, 2015 11:48 am
Forum: Troubleshooting
Topic: Connection refused on apache
Replies: 13
Views: 7461

Re: Connection refused on apache

Thanks for your help. This is os-release: PRETTY_NAME="Raspbian GNU/Linux 7 (wheezy)" NAME="Raspbian GNU/Linux" VERSION_ID="7" VERSION="7 (wheezy)" ID=raspbian ID_LIKE=debian ANSI_COLOR="1;31" HOME_URL="http://www.raspbian.org/" SUPPORT_URL="http://www.raspbian.org/RaspbianForums" BUG_REPORT_URL="ht...
by Cyroq
Fri Oct 30, 2015 7:16 pm
Forum: Troubleshooting
Topic: Connection refused on apache
Replies: 13
Views: 7461

Re: Connection refused on apache

Oh dear I don't know what happened but apparently it's not good. I had some trouble with the power supply earlier, could this possibly cause missing folders and files? The folder is really called 'baakups', no idea how this happened. Should I change it to 'backups'? How can I find out which folders ...
by Cyroq
Wed Oct 28, 2015 4:03 pm
Forum: Troubleshooting
Topic: Connection refused on apache
Replies: 13
Views: 7461

Re: Connection refused on apache

pi@raspberrypi ~ $ df -h Filesystem Size Used Avail Use% Mounted o n rootfs 2.9G 2.7G 93M 97% / /dev/root 2.9G 2.7G 93M 97% / devtmpfs 56M 0 56M 0% /dev tmpfs 13M 216K 12M 2% /run tmpfs 5.0M 0 5.0M 0% /run/lock tmpfs 25M 0 25M 0% /run/shm /dev/mmcblk0p1 56M 13M 44M 23% /boot //192.168.1.33/Media/Se...
by Cyroq
Wed Oct 28, 2015 3:30 pm
Forum: Troubleshooting
Topic: Connection refused on apache
Replies: 13
Views: 7461

Re: Connection refused on apache

If I reboot, nothing changes. The pi boots normally (as far as I can see, I don't have a monitor plugged in to it) and I can still access the files via ftp. My connection to its IP address is still refused though.
by Cyroq
Tue Oct 27, 2015 9:37 pm
Forum: Troubleshooting
Topic: Connection refused on apache
Replies: 13
Views: 7461

Re: Connection refused on apache

I was thinking it was Raspbian but I'm in doubt, so I tried to install lsb-release. However, that doesn't seem to work... pi@raspberrypi ~ $ sudo apt-get install lsb-release E: Could not open lock file /var/lib/dpkg/lock - open (2: No such file or directory) E: Unable to lock the administration dire...
by Cyroq
Tue Oct 27, 2015 9:06 pm
Forum: Troubleshooting
Topic: Connection refused on apache
Replies: 13
Views: 7461

Re: Connection refused on apache

Thanks for the quick reply!
It seems that the problem lies somewhere else. At step "/etc/init.d/apache2 stop" I get the response "No such file or directory". I can ftp to my Pi and I do see the file.
The log file doesn't show anything since the problem arised (the last log was from before then).

Go to advanced search