Go to advanced search

by RPJG51
Wed Feb 17, 2016 10:28 am
Forum: Python
Topic: Merge two while loops
Replies: 3
Views: 882

Re: Merge two while loops

Thanks for your help. I am unable to import threading, any idea why? My version of python is 2.7.3 and I can import thread OK, but not threading for some reason.
by RPJG51
Sun Feb 14, 2016 8:57 pm
Forum: Python
Topic: Merge two while loops
Replies: 3
Views: 882

Merge two while loops

I have two scripts using GPIO ports to operate LEDs for various signals on my OO model railway. Each script uses a while loop and works well. I wish to combine them into one script to run simultaneously, but hours of reading and trawling through the web has been fruitless. Here are my two scripts an...
by RPJG51
Sat Feb 28, 2015 6:56 pm
Forum: Beginners
Topic: Naming files with current date
Replies: 4
Views: 647

Re: Naming files with current date

Joe Schmoe wrote:You are using shell syntax, not Python syntax. Therefore, you should put the code into a shell script, not a Python script.

When in Rome...

That is most helpful. Thank you so much.
by RPJG51
Fri Feb 27, 2015 5:12 pm
Forum: Beginners
Topic: Naming files with current date
Replies: 4
Views: 647

Naming files with current date

I'm trying to set up a gps tracker with my raspberry pi and a usb globalsat gps. I want to save the data for each trip in a file with a date stamp. All goes well and I get exactly what I want when I run the following in terminal. filename=(date -u +"%Y%m%d_%H%M%S").nmea #save a nmea file of gps data...
by RPJG51
Fri Jan 31, 2014 10:45 am
Forum: Beginners
Topic: pywws usb connection
Replies: 2
Views: 556

Re: pywws usb connection

Thank you for your help. I have tried reversing the leads but it made no difference. It seems to only like connection through the hub! I like your suggestion though. I'm going to see if I can purchase a brand new USB lead.
by RPJG51
Thu Jan 30, 2014 6:27 pm
Forum: Beginners
Topic: pywws usb connection
Replies: 2
Views: 556

pywws usb connection

If I may ask for some help to solve a mysterious problem. when I originally connected my weather station to my Raspberry Pi I did it through an old USB 1 hub and then to the Pi. (Can't think why I did this now). Everything works fine with the pywws software. However, when I connect the weather stati...
by RPJG51
Fri Jan 24, 2014 9:02 pm
Forum: Camera board
Topic: Webcam output upload problem
Replies: 2
Views: 560

Re: Webcam output upload problem

What efforts and how did they fail? Well this could be part of the problem. I should have kept some kind of log. I don't fully understand what is going on with my ftp. I have been using pywss to run my weather station. All fine and dandy. And using the weather.ini to upload the latest weather data....
by RPJG51
Fri Jan 24, 2014 12:41 pm
Forum: Camera board
Topic: Webcam output upload problem
Replies: 2
Views: 560

Webcam output upload problem

I've been trying for sometime now to get the output from my webcam (which works well on my LAN) to be incorporated into a page on my website. The webcam is an R Pi camera board and I used http://www.dronkert.net/rpi/webcam.html brilliant script to get it working as a webcam. All works well as long a...

Go to advanced search