Go to advanced search

by model 14
Fri Oct 18, 2019 12:03 am
Forum: Raspbian
Topic: Why am I getting this syntax error?
Replies: 3
Views: 463

Re: Why am I getting this syntax error?

You solved my issue, thank you. I still needed sudo because these are write protected files, so I moved it in front of ffmpeg and it worked fine.
by model 14
Thu Oct 17, 2019 9:17 pm
Forum: Raspbian
Topic: Why am I getting this syntax error?
Replies: 3
Views: 463

Why am I getting this syntax error?

When I run the following from the terminal of Raspbian in my Pi 4B I get a "syntax error near unexpected token 'do'": sudo for f in *.flac; do ffmpeg -i "$f" "${f%.flac}.wav"; done rm *.flac This batch file statement comes from the GPIO Music Box example. Its purpose is to convert .flac files to .wa...
by model 14
Tue Oct 08, 2019 9:23 pm
Forum: Python
Topic: Can't open .wav files using pygame.mixer
Replies: 3
Views: 335

Re: Can't open .wav files using pygame.mixer

I'm in the Pi directory of Raspbian when I run the python3 interpreter or script. I import pygames just fine. Why wouldn't the .wav files be there also? I'm really confused. I've run find in every directory and I still can't find .wave files.
by model 14
Tue Oct 08, 2019 4:34 pm
Forum: Python
Topic: Can't open .wav files using pygame.mixer
Replies: 3
Views: 335

Can't open .wav files using pygame.mixer

I'm just starting out playing with audio using example programs to make sounds. When I run this script using Python3 on my Pi 4B: import pygame.mixer pygame.mixer.init(48000,-16,1,1024) audio1 = pygame.mixer.Sound("buzzer.wav") I get a "no such file exists error" I can't open any .wav file. Please h...
by model 14
Mon Sep 23, 2019 1:39 am
Forum: Python
Topic: using the datetime module in python3
Replies: 2
Views: 181

Re: using the datetime module in python3

Please disregard my last post concerning datetime.
by model 14
Mon Sep 23, 2019 1:28 am
Forum: Python
Topic: using the datetime module in python3
Replies: 2
Views: 181

using the datetime module in python3

I am running Raspbian full on my pi 4B with wifi to the internet. When I run datetime.datetime.now() in a script or in the interpreter line I get random values out (except it does always say 2019). Is Raspbian keeping track of date and time via the internet connection? Would appreciate some help, th...
by model 14
Thu Sep 12, 2019 12:18 pm
Forum: Python
Topic: Python in Raspbian Lite treats input() as a number.
Replies: 7
Views: 358

Re: Python in Raspbian Lite treats input() as a number.

Thanks for the help. I am now using Python3.
by model 14
Wed Sep 11, 2019 11:43 pm
Forum: Python
Topic: Python in Raspbian Lite treats input() as a number.
Replies: 7
Views: 358

Re: Python in Raspbian Lite treats input() as a number.

I use Idle on my Windows computer. My results are as you show. n is a str.
For the Pi I get: >>>> n 3, type(n) 'int'

Crazy, huh?
by model 14
Wed Sep 11, 2019 10:18 pm
Forum: Troubleshooting
Topic: Keyboard setup in Raspbian Lite
Replies: 8
Views: 343

Re: Keyboard setup in Raspbian Lite

Why would the Raspberry keyboard not be in the OS list distributed by Raspberry?
by model 14
Wed Sep 11, 2019 10:16 pm
Forum: Python
Topic: Python in Raspbian Lite treats input() as a number.
Replies: 7
Views: 358

Python in Raspbian Lite treats input() as a number.

I have been learning Python on my Windows computer (V 3.7.4). I just started working with Python on my new RPi 4B (V 2.7.16) using Raspbian Lite. The windows version treats a variable input from input() as a string, the version on my Pi treats it as a number. I ran the following code on each version...
by model 14
Wed Sep 11, 2019 9:46 pm
Forum: Troubleshooting
Topic: Keyboard setup in Raspbian Lite
Replies: 8
Views: 343

Re: Keyboard setup in Raspbian Lite

I can't find a keyboard with those specs in the list. I have the latest version of Rasbian Lite installed. I found out the hard way that if I select the wrong keyboard it becomes unuseable (key meanings all change) and I have no way of entering config again to try a different keyboard. This is crazy...
by model 14
Wed Sep 11, 2019 1:40 pm
Forum: Troubleshooting
Topic: Keyboard setup in Raspbian Lite
Replies: 8
Views: 343

Re: Keyboard setup in Raspbian Lite

Thanks sir. However, in the keyboard selection list in config the raspberry keyboard is not listed. I don't know what it emulates WRT common boards. I tried a couple of the plain vanilla looking selections and none of them corrected the problem.
by model 14
Tue Sep 10, 2019 9:20 pm
Forum: Troubleshooting
Topic: Keyboard setup in Raspbian Lite
Replies: 8
Views: 343

Re: Keyboard setup in Raspbian Lite

I just verified with DigiKey that I have the U.S. keyboard.
by model 14
Tue Sep 10, 2019 7:45 pm
Forum: Troubleshooting
Topic: Keyboard setup in Raspbian Lite
Replies: 8
Views: 343

Keyboard setup in Raspbian Lite

I just got started using my new Pi-4B with a Raspberry keyboard. I want to stay with just Linux so I am using the Lite OS. Problem is my keyboard responses in the terminal are not correct for the key pressed. For example, if I press the shift+" I get an @ on the terminal screen. A shift+~ gives me a...
by model 14
Sat Aug 24, 2019 7:53 pm
Forum: Beginners
Topic: Pi 3B+ remote video transmission & camera question
Replies: 2
Views: 158

Pi 3B+ remote video transmission & camera question

I need remote video camera access thru a LAN cable. Can I send video from one Pi 3 camera to a second (remote) Pi 3 and monitor?
Is it possible to use a third party video camera with the Pi 3B+ using other than the ribbon interface connection?
Thank you,
Richard

Go to advanced search