Go to advanced search

by Zvanochek
Wed May 06, 2020 11:50 am
Forum: Troubleshooting
Topic: Can't stop program from launching after startup
Replies: 5
Views: 197

Re: Can't stop program from launching after startup

thagrol wrote:
Tue May 05, 2020 9:09 pm
Have you looked at your crontabs yet?

Try

Code: Select all

crontab -e
and

Code: Select all

sudo crontab -e
The first is for your normal user, the second is for root's.
I'll take a look tonight. Are there any other options I might have used? Is there some form of search through all files I could use to find the GPIO?
by Zvanochek
Tue May 05, 2020 8:55 pm
Forum: Troubleshooting
Topic: Can't stop program from launching after startup
Replies: 5
Views: 197

Re: Can't stop program from launching after startup

deepo wrote:
Tue May 05, 2020 7:58 pm
Why not park the magic mirror micro SD somewhere safe, and flash a new Raspbian for your new project.

/Mogens
An idea, but I don't have a spare micro Sd card. And I Hadd hoped to be ready for Thursday (daughters ballet and tap lessons...)
by Zvanochek
Tue May 05, 2020 7:27 pm
Forum: Troubleshooting
Topic: Can't stop program from launching after startup
Replies: 5
Views: 197

Can't stop program from launching after startup

So, this is a little stupid of me. A few months ago I set up a magic mirror on my pi, set to load straight into the mirror on boot up. I also connected up a motion sensor to control the power to the monitor, via the pi. So the screen turns off after 20 seconds or so until moiion is detected. All wor...
by Zvanochek
Mon Jun 22, 2015 10:15 am
Forum: General programming discussion
Topic: Sanity check/web server help
Replies: 2
Views: 705

Re: Sanity check/web server help

Thanks for the reply. A quick glance at django looks promising - it would certainly be preferable to stick to a single language where possible/practical.
by Zvanochek
Thu Jun 18, 2015 7:11 pm
Forum: General programming discussion
Topic: Sanity check/web server help
Replies: 2
Views: 705

Sanity check/web server help

Hi, I am familiar with a few languages - Python and Java mostly - and happy with getting programs/classes/processes to interact and perform together, but am clueless with regards to servers etc. As part of larger project, I have written a radio alarm in python with bells and whistles which functions...
by Zvanochek
Sat Aug 24, 2013 8:02 am
Forum: Python
Topic: Odd counter behaviour with Python and GPIO
Replies: 11
Views: 3386

Re: Odd counter behaviour with Python and GPIO

Okay, so that was the un-debugged copy of my code on my PC, and not the debugged RPi copy. Still, the code as follows produces the error: #!/usr/bin/env python import RPi.GPIO as gpio # handle the switch event def buttonEventHandler (pin): if (lane1_lap <= race_length) & (lane2_lap <= race_length): ...
by Zvanochek
Sat Aug 24, 2013 7:15 am
Forum: Python
Topic: Odd counter behaviour with Python and GPIO
Replies: 11
Views: 3386

Re: Odd counter behaviour with Python

I had a crack at following WebPi's suggestion to avoid polling which could be an issue when racing/timing laps, but keep getting the same error message: Traceback (most recent call last): File "LapTimer4.py", line 35, in <module> main() File "LapTimer4.py", line 21, in main gpio.add_event_detect(17,...
by Zvanochek
Sat Aug 24, 2013 6:11 am
Forum: Python
Topic: Odd counter behaviour with Python and GPIO
Replies: 11
Views: 3386

Re: Odd counter behaviour with Python

Perhaps your script is spending time polling input 17 so it's missing events in lane2. You might want to use interrupt driven IO so that you don't have to poll either input. Long term, you are right, I need to write the program properly. I expect the problem is caused by the use of bitwise or '|' r...
by Zvanochek
Sat Aug 24, 2013 5:05 am
Forum: Python
Topic: Odd counter behaviour with Python and GPIO
Replies: 11
Views: 3386

Odd counter behaviour with Python and GPIO

I am in the process of hastily cobbling together a scalectrix lap counter (and timer once the counter is working) using a couple of reed switches connected to pins 17 and 21 of the GPIO. Below is my hastily written script, but for some reason I don't understand, whilst the lane1_lap counter can reac...
by Zvanochek
Tue Apr 23, 2013 11:51 am
Forum: Beginners
Topic: Accessing Internet and SSH through Ethernet from Windows
Replies: 3
Views: 13918

Re: Accessing Internet and SSH through Ethernet from Windows

This works fine for Win7 as well.

Just a point of note to anyone who cannot see the sharing tab (see step 1): make sure that internet sharing is not enabled for the ethernet connection already. If it is, you will not be able to enable it for the wifi connection (in my experience).
by Zvanochek
Fri Apr 19, 2013 7:24 pm
Forum: Troubleshooting
Topic: No internet connection through ethernet connection
Replies: 6
Views: 2918

Re: No internet connection through ethernet connection

So should I just leave that part out then?
by Zvanochek
Fri Apr 19, 2013 1:41 pm
Forum: Troubleshooting
Topic: No internet connection through ethernet connection
Replies: 6
Views: 2918

Re: No internet connection through ethernet connection

Okay, stupid question:
remsnet wrote: dns-search your.net.name
dns-nameservers 192.168.250.1
Do you mean to literally put that into the interfaces file? If I do that, then I loose the SSH connectivity to the Pi.
by Zvanochek
Fri Apr 19, 2013 12:48 pm
Forum: Troubleshooting
Topic: No internet connection through ethernet connection
Replies: 6
Views: 2918

No internet connection through ethernet connection

Hi, Sure this has been covered many times but the few previous posts on here I went through didn't help. I'm using the Pi to use my Pi headless, accessing it through SSH on my Win7 desktop. I connected the Pi to my router and all was fine and dandy, expect the router is downstairs. I went through a ...
by Zvanochek
Thu Jan 05, 2012 3:52 pm
Forum: General discussion
Topic: Battery power
Replies: 68
Views: 24967

Re: Battery power

<r>So if I had something along the lines of the following:<br/> <br/> <URL url="http://cgi.ebay.co.uk/ws/eBayI.....0392422292">http://cgi.ebay.co.uk/ws/eBayI.....0392422292</URL><br/> <br/> How easy would it be to wire it into a micro-usb? Ultimately I plan to hook up my Pi  power supply to a solar ...
by Zvanochek
Thu Jan 05, 2012 2:13 pm
Forum: General discussion
Topic: Battery power
Replies: 68
Views: 24967

Re: Battery power

<t>It is great to see that the Pi can be run from 4xAA batteries, but could someone point me in the right direction to connect it up? Is there an off the shelf cable that I can clip into my battery pack or will I need to do some bodging/DIY soldering?<br/> <br/> Sorry if this has come up before, but...

Go to advanced search