Go to advanced search

by cmazzoli
Wed May 09, 2018 12:09 pm
Forum: Troubleshooting
Topic: adventures in pi 9 jukebox
Replies: 20
Views: 980

Re: adventures in pi 9 jukebox

GOT IT! sort of. ok so if i go to "run module" in python 3 i get that "please specify folder with mp3 files" BUT if i go into terminal and type python3 jukebox.py mymusic it then works and I can control the music via the 1234 buttons. so in terminal I had to add the folder to play the music from. bu...
by cmazzoli
Wed May 09, 2018 11:55 am
Forum: Troubleshooting
Topic: adventures in pi 9 jukebox
Replies: 20
Views: 980

Re: adventures in pi 9 jukebox

neilgl

i get the same message as other one. where in this code do you specify the name of the folder to go to? I know the glob.glob is supposed to do that, but its not.
by cmazzoli
Wed May 09, 2018 11:49 am
Forum: Troubleshooting
Topic: adventures in pi 9 jukebox
Replies: 20
Views: 980

Re: adventures in pi 9 jukebox

the last comment I dont believe is correct as here is the first set of complete instructions will all code. when i run it I should be able to play mp3s and change the songs or stop my pressing 1,2,3,4. when I run it I get no errors other than the "please specify a folder with mp3 files". this is ver...
by cmazzoli
Tue May 08, 2018 8:36 pm
Forum: Troubleshooting
Topic: adventures in pi 9 jukebox
Replies: 20
Views: 980

Re: adventures in pi 9 jukebox

Thanks school is over for the day so I will try it when I get back into the classroom in the morning and get back to you any other ideas please send them my way thanks again
by cmazzoli
Tue May 08, 2018 7:46 pm
Forum: Troubleshooting
Topic: adventures in pi 9 jukebox
Replies: 20
Views: 980

Re: adventures in pi 9 jukebox

yeah i did that from the terminal it just goes to another empty terminal line when i hit enter.

i mean the code is the same as her tutorial video here

https://www.wiley.com/WileyCDA/Section/id-830642.html

its at 10:12
by cmazzoli
Tue May 08, 2018 6:58 pm
Forum: Troubleshooting
Topic: adventures in pi 9 jukebox
Replies: 20
Views: 980

Re: adventures in pi 9 jukebox

yes sorry it is not indented. everything is exactly as indicated on the tutorial. page 209 here https://tentacle.net/~prophet/raspberrypi/Raspberry%20Pi/1118751256%20%7B78A8094C%7D%20Adventures%20in%20Raspberry%20Pi%20%5BPhilbin%202014-01-07%5D.pdf everything is the same. i have tried changing folde...
by cmazzoli
Tue May 08, 2018 6:48 pm
Forum: Troubleshooting
Topic: adventures in pi 9 jukebox
Replies: 20
Views: 980

Re: adventures in pi 9 jukebox

import glob, random, sys, vlc if len(sys.argv) <= 1: print(“Please specify a folder with mp3 files”) sys.exit(1) folder = sys.argv[1] files = glob.glob(folder+”/*.mp3”) if len(files) == 0: print(“No mp3 files in directory”, folder, “..exiting”) sys.exit(1) random.shuffle(files) that is the actual c...
by cmazzoli
Tue May 08, 2018 6:30 pm
Forum: Troubleshooting
Topic: adventures in pi 9 jukebox
Replies: 20
Views: 980

Re: adventures in pi 9 jukebox

so i think the problem is here
files = glob.glob(folder+"/*.mp3")

should it read files=glob.glob(mp3+"/*.mp3")

i tried that and it still didnt work. I know its something simple so its driving me crazy.
by cmazzoli
Tue May 08, 2018 6:27 pm
Forum: Troubleshooting
Topic: adventures in pi 9 jukebox
Replies: 20
Views: 980

Re: adventures in pi 9 jukebox

sorry the code took out the indents when i pasted it. i have the indents, and everything looks exactly as in the tutorial but still get that error. I did replace the folder with the actual folder name mp3 but got the same error.

if someone has working code on this could they paste theirs?
by cmazzoli
Tue May 08, 2018 4:57 pm
Forum: Troubleshooting
Topic: adventures in pi 9 jukebox
Replies: 20
Views: 980

adventures in pi 9 jukebox

hello all! I am working on the adventures in pi lesson 9 making a jukebox and running into "please specify folder with mp3 files" message when we run the first chunk of code. I have the jukebox.py file, the adafruitcharlcd.py file and the vlc.py file in the documents folder. I also have a folder cal...
by cmazzoli
Sat Feb 17, 2018 8:30 pm
Forum: Python
Topic: laser tripwire project change
Replies: 9
Views: 688

Re: laser tripwire project change

well, all I can tell you is the project has been out there for some time. Now, I am working with high school students and in this project we are using found materials to make it work. after the build we will review to how to make a mark 2 with improvements which very well may move us into infrared k...
by cmazzoli
Sat Feb 17, 2018 4:09 pm
Forum: Python
Topic: laser tripwire project change
Replies: 9
Views: 688

Re: laser tripwire project change

thank you so much!

i will test this and let you know.
by cmazzoli
Fri Feb 16, 2018 5:03 pm
Forum: Python
Topic: laser tripwire project change
Replies: 9
Views: 688

Re: laser tripwire project change

ok sorry about that. so its this project https://projects.raspberrypi.org/en/projects/laser-tripwire here is the starter code. From gpiozero import LightSensor, Buzzer Ldr = LightSensor (4) buzz = Buzzer(24) Ldr.when_dark = lambda: buzz.beep(0.2, 0.2, 20) we are using a laser pointer for it and it w...
by cmazzoli
Fri Feb 16, 2018 4:41 pm
Forum: Python
Topic: laser tripwire project change
Replies: 9
Views: 688

laser tripwire project change

hello!

i need some code help. we completed the laser tripwire build and it works fine.

but now we want to change the code so that it counts up by 1 each time the laser is tripped. I am having a hard time with the code and could use some help. can someone help with that?

thanks!
by cmazzoli
Tue Oct 10, 2017 2:55 pm
Forum: Staffroom, classroom and projects
Topic: Pi desktop version does not have minecraft?
Replies: 6
Views: 4195

Re: Pi desktop version does not have minecraft?

ok then, i thought since it was a vr install that i would be able to do so.
by cmazzoli
Tue Oct 10, 2017 2:37 pm
Forum: Staffroom, classroom and projects
Topic: Pi desktop version does not have minecraft?
Replies: 6
Views: 4195

Pi desktop version does not have minecraft?

Hello! I wanted to use the desktop version alongside the oracle virtualbox for my students to practice coding in minecraft, but after installing it i noticed that it is not there. I tried to install it and got the ./minecraft-pi: cannot execute binary file: exec format error. anyway I can get this t...
by cmazzoli
Thu May 18, 2017 5:57 pm
Forum: Troubleshooting
Topic: all seeing Pi syntax error with twitter
Replies: 2
Views: 289

Re: all seeing Pi syntax error with twitter

thanks we got it. it was actually formatted correctly, however the actual keys did not need to be in there.
by cmazzoli
Thu May 18, 2017 3:32 pm
Forum: Troubleshooting
Topic: all seeing Pi syntax error with twitter
Replies: 2
Views: 289

all seeing Pi syntax error with twitter

hey all. i have some students trying the allseeingpi project and we are getting an invalid syntax error after installing all the keys. after the consumer_key the next line the consumer_secret is highlighted red and it states it is a syntax error. if you remove that line and run it again access_token...

Go to advanced search