Go to advanced search

by StangPi
Sun Apr 14, 2019 8:58 pm
Forum: Python
Topic: Program not running
Replies: 63
Views: 5440

Re: Program not running

Now i am working on encrypting my passwords. Here:https://blog.tecladocode.com/learn-python-encrypting-passwords-python-flask-and-passlib/ is where i found something i think work. It shows to install passlib which uses CryptContext. Once CryptContext is installed i can encrypt or decrypt my password...
by StangPi
Sun Nov 11, 2018 10:59 pm
Forum: Troubleshooting
Topic: RFID w/ RPi2
Replies: 20
Views: 1070

Re: RFID w/ RPi2

@danjperron
I appreciate the link to the github repository. It has helped me to understand a few things.

how is spidev better/spi? This is my first attempt at using spi for anything. Hopefully when i can understand it better, i can integrate it into a security program/device i am building.
by StangPi
Tue Nov 06, 2018 12:59 am
Forum: Troubleshooting
Topic: RFID w/ RPi2
Replies: 20
Views: 1070

Re: RFID w/ RPi2

I couldn't use the examples you gave as I am working with Python2, but they did push me top try a different approach. #if found while status == MIFAREReader.MI_OK: if UID == (uid(str)): print("verified") Now the program does try to compare my UID definition, and the uid that is read. but i get this ...
by StangPi
Tue Nov 06, 2018 12:44 am
Forum: Troubleshooting
Topic: RFID w/ RPi2
Replies: 20
Views: 1070

Re: RFID w/ RPi2

I cut down a total read program (UID and key), to just read and display the UID.
by StangPi
Mon Nov 05, 2018 1:41 am
Forum: Troubleshooting
Topic: RFID w/ RPi2
Replies: 20
Views: 1070

Re: RFID w/ RPi2

Some ''progress'' i think #if found while status == MIFAREReader.MI_OK: if UID == (+str(uid[0])+str(uid[1])+str(uid[2])+str(uid[3])): print(''verified'') i get this error: Traceback (most recent call last): File "atV2.py", line 28, in <module> if UID == (+str(uid[0])+str(uid[1])+str(uid[2])+str(uid[...
by StangPi
Mon Nov 05, 2018 1:20 am
Forum: Troubleshooting
Topic: RFID w/ RPi2
Replies: 20
Views: 1070

Re: RFID w/ RPi2

When it finds the UID, it does get printed as 00,000,000,000.

im working on having it authenticate the card's UID against the predefined one. Once i get that part down, i can move on.
by StangPi
Mon Nov 05, 2018 12:04 am
Forum: Troubleshooting
Topic: RFID w/ RPi2
Replies: 20
Views: 1070

Re: RFID w/ RPi2

I did insert a "try:" before the while true and it worked, but wouldnt scan for the card. Once i reset it back to just finding a card it worked again. After the (status,uid) is where i would like to have it verify the card's UID against a predefined UID hich would obviously be the card's own, and us...
by StangPi
Sun Nov 04, 2018 11:27 pm
Forum: Troubleshooting
Topic: RFID w/ RPi2
Replies: 20
Views: 1070

Re: RFID w/ RPi2

Nope, tried that after post about error.
by StangPi
Sun Nov 04, 2018 10:53 pm
Forum: Troubleshooting
Topic: RFID w/ RPi2
Replies: 20
Views: 1070

Re: RFID w/ RPi2

So i meddled with an example read code that came in a github repository. I modified it to only find the UID and print it if one was found. Working 1st mod #Imports import time import RPi.GPIO as GPIO import MFRC522 #Create Object of Class MFRC522 MIFAREReader = MFRC522.MFRC522() #Welcome Message pri...
by StangPi
Sun Nov 04, 2018 3:27 pm
Forum: Troubleshooting
Topic: RFID w/ RPi2
Replies: 20
Views: 1070

Re: RFID w/ RPi2

So far I can only get the RFID to read the card, but when i try to write it it will not fo anything. Here is the MFRC522 Write Code: import RPi.GPIO as GPIO import MFRC522 import signal continue_reading = True # Capture SIGINT for cleanup when the script is aborted def end_read(signal,frame): global...
by StangPi
Sun Oct 28, 2018 11:14 pm
Forum: Troubleshooting
Topic: RFID w/ RPi2
Replies: 20
Views: 1070

Re: RFID w/ RPi2

So with some help, i did get the MFRC522 working. Using the read and write examples that accompanied the device, i can read the default UID and key. I would like to be able to write a custom UID and key but no idea as to how I would do such a thing since i have yet to mess with hexadecimal coding
by StangPi
Sun Oct 28, 2018 9:39 pm
Forum: Troubleshooting
Topic: RFID w/ RPi2
Replies: 20
Views: 1070

Re: RFID w/ RPi2

Thanks, must've missed that in my searching.

Have you tinkered with RFID coding projects before?
by StangPi
Sun Oct 28, 2018 8:26 pm
Forum: Troubleshooting
Topic: RFID w/ RPi2
Replies: 20
Views: 1070

RFID w/ RPi2

I recently purchased an RFID read/write module which i have been trying to use with my RPi2 running Jessie. I went into raspi-config and enabled SPI cloned SPI-Py cloned MFRC522 to my Pi I go to install SPI-Py and it gives me an error: running install running build running built_ext building 'spi' e...
by StangPi
Thu Sep 27, 2018 1:55 am
Forum: Python
Topic: Program not running
Replies: 63
Views: 5440

Re: Program not running

-.- thanks lol i retyped that whole error message and didnt realize i copied the mistakes lol
by StangPi
Thu Sep 27, 2018 1:46 am
Forum: Troubleshooting
Topic: eSpeak Problems
Replies: 20
Views: 3615

Re: eSpeak Problems

So...is it a bad thing that i have not upgraded to stretch?
by StangPi
Thu Sep 27, 2018 1:03 am
Forum: Python
Topic: Program not running
Replies: 63
Views: 5440

Re: Program not running

Hello everyone, it has been quite awhile since i posted in this thread. Hope everyone is well, and doing good things :) So far I have made significant progress on my project. It now talks back to me telling me what choice i have made, nd various greetings to each user. All via flite Currently my new...
by StangPi
Mon Sep 24, 2018 11:00 pm
Forum: Troubleshooting
Topic: eSpeak Problems
Replies: 20
Views: 3615

Re: eSpeak Problems

I understood what obsolete meant.

I just didnt know that it wasn't receiving firmware updates anymore.
by StangPi
Mon Sep 24, 2018 4:14 pm
Forum: Troubleshooting
Topic: eSpeak Problems
Replies: 20
Views: 3615

Re: eSpeak Problems

What do you mean obsolete
by StangPi
Sat Sep 22, 2018 1:52 am
Forum: Troubleshooting
Topic: eSpeak Problems
Replies: 20
Views: 3615

Re: eSpeak Problems

@scruss I am writing a movie inspired security program/device. The program has selections and I/Os that will have voiced reactions/responses for every choice and action initiated by the user(s). @Joel_McKay Thank you for the advice on using flite. It is working perfectly and is simple to code into m...
by StangPi
Sat Sep 22, 2018 12:24 am
Forum: Troubleshooting
Topic: eSpeak Problems
Replies: 20
Views: 3615

Re: eSpeak Problems

@scuss

same error as mentioned before.

If it helps, i am using Raspbian Jessie.

Will attempt flite now. Update post soon.
by StangPi
Sun Sep 16, 2018 2:20 am
Forum: Troubleshooting
Topic: eSpeak Problems
Replies: 20
Views: 3615

Re: eSpeak Problems

@scruss

tried entering, word for word, the command line. Did not work, even on a fresh install of raspbian.

Gives the error:

Code: Select all

E: Unable to locate package speech-dispatcher-espeak
by StangPi
Sat Sep 15, 2018 2:54 pm
Forum: Troubleshooting
Topic: eSpeak Problems
Replies: 20
Views: 3615

Re: eSpeak Problems

@scruss
That was reply using my phone, and it auto caps.

@ghans

Code: Select all

espeak-python3
espeak-speech
espeak-dispatcher
Like so?
by StangPi
Sat Sep 15, 2018 2:41 am
Forum: Troubleshooting
Topic: eSpeak Problems
Replies: 20
Views: 3615

Re: eSpeak Problems

@scruss

I attempted your solution. I purged my original espeak install, and have tried many variations of your suggestion, but I do not think ive been entering them correctly:

Code: Select all

Sudo apt-get install espeak python3
Sudo apt-get install espeak speech
Sudo apt-get install espeak dispatcher
by StangPi
Mon Sep 10, 2018 4:13 pm
Forum: Troubleshooting
Topic: eSpeak Problems
Replies: 20
Views: 3615

Re: eSpeak Problems

I didnt know there were different packages.

I just installed it via:

Code: Select all

Sudo apt-get install espeak
Will attempt your input when I can, and let ya know.
by StangPi
Sun Sep 09, 2018 9:53 pm
Forum: Troubleshooting
Topic: eSpeak Problems
Replies: 20
Views: 3615

Re: eSpeak Problems

troubleshooting Update:

Did some more reading and attempted text-to-speech through the os import

Code: Select all

os.system('espeak -ven+f3 "{0}" >/dev/null'.format(something))
Still gives me the same errors as described in first posting.

Go to advanced search