Go to advanced search

by danieljay
Tue Dec 24, 2013 7:16 pm
Forum: Python
Topic: twython and updating contents of txt file
Replies: 4
Views: 1445

Re: twython and updating contents of txt file

Thanks for the response. do you have a small example in script by chance?

The txt file is constantly being deleted/rewritten. I just need a way to use the printed out message in the twython post function
by danieljay
Tue Dec 24, 2013 5:58 pm
Forum: Python
Topic: twython and updating contents of txt file
Replies: 4
Views: 1445

Re: twython and updating contents of txt file

Thanks for the reply.

the thing is the text file will be dynamic, as in its always changing. I will be creating more structured loops, but as for simply just updating with the characters inside a text file, im at a loss.
by danieljay
Tue Dec 24, 2013 11:11 am
Forum: Python
Topic: twython and updating contents of txt file
Replies: 4
Views: 1445

twython and updating contents of txt file

Hey all, I have twython working fine with the standard sketches. What I am trying to do is update with the contents of a .txt file I am reading into Python. Im not sure what adjustments need to be made to work with the "update_status" functions variables, but here is what I have (obviously not worki...
by danieljay
Sun Dec 22, 2013 6:41 pm
Forum: General discussion
Topic: Bash script conditional test system tool condition
Replies: 7
Views: 2611

Re: Bash script conditional test system tool condition

Thank you so much for the detailed explanation. i've learned that getting good answers to problems involves asking good (detailed) questions :)
by danieljay
Sun Dec 22, 2013 6:21 pm
Forum: General discussion
Topic: Bash script conditional test system tool condition
Replies: 7
Views: 2611

Re: Bash script conditional test system tool condition

also a side note. I am referencing this script here: http://blog.oscarliang.net/raspberry-pi-voice-recognition-works-like-siri/#comment-1076 the script calls for stopping a record with the control C. my issue is I am instantiating this script in a python script everytime it reaches a certain time, a...
by danieljay
Sun Dec 22, 2013 6:05 pm
Forum: General discussion
Topic: Bash script conditional test system tool condition
Replies: 7
Views: 2611

Re: Bash script conditional test system tool condition

Just a small not verry usefull correction to your statement not your bash script Everything compiles, In bash Everything interprets , Thanks everyone for the suggestions! Also, could you elaborate what the term "interprets" means in this context as oppose to the latter? and jojopi... I obviously do...
by danieljay
Sun Dec 22, 2013 2:57 am
Forum: Advanced users
Topic: Automatically extract specific files usb drive
Replies: 2
Views: 1423

Re: Automatically extract specific files usb drive

great! thanks so much!
by danieljay
Sun Dec 22, 2013 2:56 am
Forum: General discussion
Topic: Bash script conditional test system tool condition
Replies: 7
Views: 2611

Bash script conditional test system tool condition

Hey all , I am writing a bash script that is reading the amount of characters in a text file, outputting the information, then testing the condition if the character quantity meets the condition. Everything compiles, but I seem to not be implementing it correctly, as the first condition is always me...
by danieljay
Sun Dec 01, 2013 7:29 am
Forum: Advanced users
Topic: Automatically extract specific files usb drive
Replies: 2
Views: 1423

Automatically extract specific files usb drive

Hey all,

I'm trying to find a simple script (or other suggestions welcome) to automatically extract specific files with specific file extensions from any inserted USB thumb drive into a directory on the Pi. I'm a bit lost on figuring out the best approach
by danieljay
Tue Nov 19, 2013 3:26 am
Forum: Other projects
Topic: Lap dock and Y cable
Replies: 0
Views: 391

Lap dock and Y cable

So I had seen numerous alternative ways to use the Motorola Lap Dock with the Raspberry Pi. Many required a "butt ton" of adaptors, some splicing, etc. Anyways, I had a general question pertaining to the power supplied from the lapdock to the Pi. I own a USB micro male / USB male to USB male Y cable...
by danieljay
Mon Jul 15, 2013 2:29 am
Forum: Other projects
Topic: reacTIVision tutorial for the Pi
Replies: 0
Views: 991

reacTIVision tutorial for the Pi

Hello! I have created a tutorial for compiling the open source tracking software reacTIVision on the Pi illustrated here:

http://danbertner.com/researchstudies/r ... on-the-pi/

all tips and suggestions greatly appreciated!
by danieljay
Tue Jun 04, 2013 11:27 pm
Forum: Graphics, sound and multimedia
Topic: Weak webcam performance
Replies: 7
Views: 3940

Re: Weak webcam performance

I am also curious the specific distro/how to configured it to compile on Raspberry Pi.
by danieljay
Fri Apr 19, 2013 5:31 pm
Forum: Python
Topic: Conditional Statements and Strings
Replies: 6
Views: 1730

Re: Conditional Statements and Strings

This works great! You have been a tremendous help.

If you have time, can you clarify logically how this is converting the string to an integer?
by danieljay
Fri Apr 19, 2013 4:59 pm
Forum: Python
Topic: Conditional Statements and Strings
Replies: 6
Views: 1730

Re: Conditional Statements and Strings

I somewhat understand, but really am at a standstill. The main chunk before the conditional statements (excluding temperature variable) was the default code which is printing out a number fine.

Im just stuck at comparing the string 'temp'
by danieljay
Fri Apr 19, 2013 4:32 pm
Forum: Python
Topic: Conditional Statements and Strings
Replies: 6
Views: 1730

Conditional Statements and Strings

I am using pywapi (https://code.google.com/p/python-weather-api/), a library to gather xml data from weather hosts. I am using the default code, with some minor adjustments, but am having difficulty testing the condition of a string. Here is my attempt: import pywapi import string yahoo_result= pywa...
by danieljay
Fri Apr 19, 2013 4:27 am
Forum: General discussion
Topic: Current draw from Raspberry Pi
Replies: 4
Views: 17348

Re: Current draw from Raspberry Pi

to clarify also, this is a usb power supply. I understand though what you mean with using a separate power source (since the more items you add, the more current). I want my setup to solely use a single power supply.
by danieljay
Fri Apr 19, 2013 4:22 am
Forum: General discussion
Topic: Current draw from Raspberry Pi
Replies: 4
Views: 17348

Re: Current draw from Raspberry Pi

understood;

so to clarify; a setup using a USB Y cable that originates at main power source, then feeds one end to the main board, then the other end powering an external USB hub (to power usb peripherals) could be a reliable setup?
by danieljay
Fri Apr 19, 2013 3:18 am
Forum: General discussion
Topic: Current draw from Raspberry Pi
Replies: 4
Views: 17348

Current draw from Raspberry Pi

Greetings all! I have a quick question about current draw from the raspberry pi with input peripherals/hardware through GPIO pins; So thumbing through the basic documentation, I found this bit of information: Power pins The maximum permitted current draw from the 3.3 V pins is 50 mA. Maximum permitt...
by danieljay
Wed Mar 20, 2013 10:46 pm
Forum: Python
Topic: OpenCV save first frame
Replies: 1
Views: 867

OpenCV save first frame

Greetings all! So I have a Python sketch using opencv that saves an image when a face is detected (within cv.getSubRect) and thats working jolly. The issue is, it keeps saving each frame! I solely want to capture the first frame when a new face is detected, save it, then rinse and repeat. here is a ...
by danieljay
Mon Mar 18, 2013 9:41 pm
Forum: Python
Topic: Simple State Machine
Replies: 9
Views: 2567

Re: Simple State Machine

I cant thank you enough for your help. it works perfectly. thank you for breaking down each chunk of code and explaining. it was very insightful
by danieljay
Mon Mar 18, 2013 7:03 pm
Forum: Python
Topic: Simple State Machine
Replies: 9
Views: 2567

Re: Simple State Machine

your code seems to not access the second function. i modified it, but it runs through it and then gives me a runtime error. here are my modifications: #!/usr/bin/python # forum post: http://www.raspberrypi.org/phpBB3/viewtopic.php?f=32&t=37510&p=312501#p312501 import sys import RPi.GPIO as GPIO impo...
by danieljay
Mon Mar 18, 2013 6:27 pm
Forum: Python
Topic: Simple State Machine
Replies: 9
Views: 2567

Re: Simple State Machine

I really appreciate you taking the time to rewrite it for me. Iive corrected my indentation errors but the code seems to be stuck and not accessing the loops.
by danieljay
Mon Mar 18, 2013 4:56 pm
Forum: Python
Topic: Simple State Machine
Replies: 9
Views: 2567

Re: Simple State Machine

That makes sense but im having a difficult time applying it to my code. i might be unclear what you mean
by danieljay
Mon Mar 18, 2013 5:25 am
Forum: Python
Topic: Simple State Machine
Replies: 9
Views: 2567

Simple State Machine

Hello world! I wanted to implement a "simple" state machine to a larger python sketch I am writing. I decided to backtrack and start from the ground up. So after much trolling around, I found a few similar suggestions to make a state machine. Problem is, nothing is resulting/printing. I am using a c...
by danieljay
Fri Mar 15, 2013 6:56 pm
Forum: Python
Topic: functions in Python
Replies: 8
Views: 1353

Re: functions in Python

thanks for all the advice. I know (well....ASSUME) since the code compiles fine, when I press the button, nothing is happening. I am not recieving indention errors or and others in the IDE or terminal

Go to advanced search