Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: ftp script issues
Post: ftp script issues

I'm getting stuck with my ftp.. tried to include an FTP script in with mine that uploads all files in the folder, but fails after the first one with an error 550. if I run the ftp script on it's on i...
bowen73 General Coding Help 0 2,570 Aug-23-2017, 07:11 PM
    Thread: Timestamp doesn't change with each loop
Post: RE: Timestamp doesn't change with each loop

(Aug-23-2017, 05:36 PM)ichabod801 Wrote: You have to call datetime.datetime.now() each time through the loop. definitely this.... I came across it the other day too. I called the time towards the ...
bowen73 General Coding Help 2 6,822 Aug-23-2017, 06:58 PM
    Thread: how to watch for file in folder
Post: RE: how to watch for file in folder

just a quick update, I've decided to cheat with the filename. rather than using the same filename, I'm just going to create a new timestamp rather than trying to figure out how to get just the filena...
bowen73 General Coding Help 11 18,392 Aug-22-2017, 11:53 AM
    Thread: how to watch for file in folder
Post: RE: how to watch for file in folder

I changed it to what the line above was, it had the %s then at the end of the line it follows with '% event.src_path' and somehow that made it work. I was expecting a definition somewhere too, like s...
bowen73 General Coding Help 11 18,392 Aug-22-2017, 07:36 AM
    Thread: how to watch for file in folder
Post: RE: how to watch for file in folder

I eventually found out how to install 3.6.2, but when I run it, it still references 2.7? I've copied what you did and changed the self.dir to my path and I'm getting an error that 's' isn't defined. A...
bowen73 General Coding Help 11 18,392 Aug-21-2017, 11:51 PM
    Thread: how to watch for file in folder
Post: RE: how to watch for file in folder

ok, i've found another sample script based on the watchdog as i could really understand the first on, so it sees the file arriving, prints the filename and path to screen but wont carry through to ffm...
bowen73 General Coding Help 11 18,392 Aug-21-2017, 03:53 PM
    Thread: how to watch for file in folder
Post: RE: how to watch for file in folder

(Aug-21-2017, 02:32 PM)Larz60+ Wrote: Take a look at: http://brunorocha.org/python/watching-a-...ython.html that looks pretty cool, expect follow ups 'with how do I?' haha i was thinking of using ...
bowen73 General Coding Help 11 18,392 Aug-21-2017, 02:39 PM
    Thread: how to watch for file in folder
Post: how to watch for file in folder

i have a video file landing in a folder (mp4) on my raspberry pi that im overlaying with an image with ffmpeg which i want to automate. i.e. mp4 arrives in folder and the autoscript sees the new fil...
bowen73 General Coding Help 11 18,392 Aug-21-2017, 09:52 AM
    Thread: timestamp not updating
Post: RE: timestamp not updating

I think i have it. oddly just a matter of placement. at the top i am defining the timestamp, so its called when the script starts. if its placed in the 'While true loop' so, when it's called from t...
bowen73 General Coding Help 3 7,249 Aug-20-2017, 11:13 PM
    Thread: timestamp not updating
Post: RE: timestamp not updating

(Aug-20-2017, 09:51 PM)Larz60+ Wrote: try this: import time import datetime def get_timestamp():     t = time.time()     return t, datetime.date.fromtimestamp(t) t, ts = get_timestamp() print('t...
bowen73 General Coding Help 3 7,249 Aug-20-2017, 10:06 PM
    Thread: timestamp not updating
Post: timestamp not updating

I've got a script running from startup on my raspberry pi using import time and timestamp = time.strftime("%Y-%m-%d_%H:%M:%S") but when I grab a video and timestamps the filename it uses the same time...
bowen73 General Coding Help 3 7,249 Aug-20-2017, 09:36 PM
    Thread: stepper motor with raspberry pi
Post: RE: stepper motor with raspberry pi

(Aug-14-2017, 07:39 PM)nilamo Wrote: while True is an infinite loop. If you never break from it, then myStepper.step(400 #etc will be called, over and over, forever. I'm not sure what step(400) me...
bowen73 General Coding Help 3 4,673 Aug-14-2017, 09:30 PM
    Thread: stepper motor with raspberry pi
Post: stepper motor with raspberry pi

I’ve had my 1st stepper hat delivered and all is working fine and have it turning a bipolar stepper motor, but need help getting more from the demo script. I’ve used the instructions from the link on...
bowen73 General Coding Help 3 4,673 Aug-14-2017, 06:56 PM
    Thread: help with showing wifi symbol when connected
Post: RE: help with showing wifi symbol when connected

Thanks all, i'll have a look at the suggestions and see where i get to. the 3 networked pc's oould work but would prefer the wifi symbol as im using a pi zero w. i think i definately need to get my...
bowen73 General Coding Help 8 6,354 Aug-02-2017, 02:23 PM
    Thread: help with showing wifi symbol when connected
Post: help with showing wifi symbol when connected

Ive got a pi zero w and a ssd1306 128x64 screen and have managed to eventually get something showing up on the screen for examples (yey) ive got a little project on doing various things which i'll tr...
bowen73 General Coding Help 8 6,354 Aug-02-2017, 11:25 AM

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020