Go to advanced search

by mmkw43
Mon Nov 16, 2020 3:15 pm
Forum: General discussion
Topic: US timezone expert -- timedatectl and PI
Replies: 13
Views: 1187

US timezone expert -- timedatectl and PI

Seems to me rather than the huge amount of timezones listed, if you gave someone the choice of just these cities to set timezone using timeatectl, wouldn't you have all the timezones covered, 365 days a year? New York -- Chicago -- Denver -- Los Angeles -- Anchorage -- Honolulu And the PI's ntp sync...
by mmkw43
Sat Nov 14, 2020 10:44 pm
Forum: Python
Topic: Setting a timezone
Replies: 14
Views: 550

Re: Setting a timezone

Spent all day on it to find out --

timedatectl set-timezone "America/City"

pretty god damn easy.
I'm not pro like you guys -- just a hobbyist. looking for simple answers.
by mmkw43
Sat Nov 14, 2020 10:11 pm
Forum: Python
Topic: Setting a timezone
Replies: 14
Views: 550

Re: Setting a timezone

I'm simply trying to allow a user (who can live anywhere in the US) to change the timezone. Guess I didn't communicate that. Using PI3 and Jessie and python3.4 -- and did this, pip install pytz (tzdata was already installed). It installed but I can't even get this done in python -- import pytz for t...
by mmkw43
Sat Nov 14, 2020 12:38 am
Forum: General discussion
Topic: NTP enabled? NTP sychronized?
Replies: 2
Views: 171

Re: NTP enabled? NTP sychronized?

Got it. thanks !
by mmkw43
Fri Nov 13, 2020 10:09 pm
Forum: Python
Topic: Setting a timezone
Replies: 14
Views: 550

Re: Setting a timezone

Just one simple thing I need to understand before I proceed as this is new territory. When I'm using Python with Raspian and I manipulate the time zone setting through my code, does it overwrite (permanently) how I set up time with raspi-config? May sound like a dumb question but stranger things hav...
by mmkw43
Fri Nov 13, 2020 9:06 pm
Forum: General discussion
Topic: NTP enabled? NTP sychronized?
Replies: 2
Views: 171

NTP enabled? NTP sychronized?

What is the difference between these? And should I "enable" NTP on my PI? Many thanks.
I wouldn't ask if I hadn't searched an hour for an answer.
by mmkw43
Fri Nov 13, 2020 7:46 pm
Forum: Python
Topic: Setting a timezone
Replies: 14
Views: 550

Re: Setting a timezone

Many thanks Doug. Yeah, I may have users in different time zones. I'll study that info. -- thanks again.
by mmkw43
Fri Nov 13, 2020 7:10 pm
Forum: Python
Topic: Setting a timezone
Replies: 14
Views: 550

Setting a timezone

Is there any way to set a timezone from within a python script? Naively I tried a subprocess call to raspi-config thinking it might display but the script crashed. Is there any way to do this? BIG THANKS. I'm wanting to do it in a preliminary tkinter with button window that pops up before the actual...
by mmkw43
Sun Nov 08, 2020 3:51 pm
Forum: Python
Topic: SMTP email -- worked fine, now nothing
Replies: 4
Views: 224

Re: SMTP email -- worked fine, now nothing

thanks very much.
by mmkw43
Sat Nov 07, 2020 10:04 pm
Forum: Python
Topic: SMTP email -- worked fine, now nothing
Replies: 4
Views: 224

Re: SMTP email -- worked fine, now nothing

Haven't touched the code -- thought a quick question regarding any other possible factors is a place to start.

Maybe.

I may have to check the gmail security settings again -- I'm sure that still gets in the way? If so, my bad.
by mmkw43
Sat Nov 07, 2020 9:08 pm
Forum: Python
Topic: SMTP email -- worked fine, now nothing
Replies: 4
Views: 224

SMTP email -- worked fine, now nothing

I had a python script I wrote a few years ago that sends email and it always worked flawlessly. My password is right, using gmail and port 587. Now, I tried to use it today (did NOT touch the code whatsoever) and it doesn't work at all.

Has "something" changed?
-- thanks
by mmkw43
Fri Nov 06, 2020 6:15 pm
Forum: Python
Topic: MPG321 and short files
Replies: 10
Views: 391

Re: MPG321 and short files

I'm wondering also if there are any command line options with mpg123 that may make a difference? And other command line audio players to try? And listen to this -- I installed Alsaplayer, played the short file and it does the complete opposite. Plays the beginning perfectly and chops off the end. ? ...
by mmkw43
Fri Nov 06, 2020 3:40 pm
Forum: Python
Topic: MPG321 and short files
Replies: 10
Views: 391

Re: MPG321 and short files

yeah scruss, that seems like it may be it and probably is in many cases but this is weird. first of all, if I use mpg123 rather than 321 -- there is slightly better performance playing the very same file on the very same tv. if it was the tv alc, it wouldn't show a difference like that. one would th...
by mmkw43
Fri Nov 06, 2020 1:57 pm
Forum: Python
Topic: MPG321 and short files
Replies: 10
Views: 391

Re: MPG321 and short files

Ok -- thank you so much. I really appreciate it when someone says something that you never read anywhere like to not use sudo in a script. (I'm an amateur and hobbyist) I'm doing this -- time.sleep(2) subprocess.call ('sudo mpg321 -q /home/pi/AUDIO/ch1.mp3',shell=True) time.sleep(2) It's been a whil...
by mmkw43
Fri Nov 06, 2020 12:49 am
Forum: Python
Topic: MPG321 and short files
Replies: 10
Views: 391

Re: MPG321 and short files

Ok. That's a new one -- Sox? Thanks, I'll research that -- at least you understood my question. Have you encountered other PI users with this problem I wonder? And -- tried MPG123 playing short files and just a slight improvement over MPG321 -- which in itself, when you think about it, says "so...
by mmkw43
Thu Nov 05, 2020 10:55 pm
Forum: Python
Topic: MPG321 and short files
Replies: 10
Views: 391

MPG321 and short files

I have a real problem. You can mimic it I suppose by calling MPG321 (and now I hear there's an MPG123? ! wtf?) and trying to play short (2 to 3 second) audio files in a script. Anyway -- this has been driving me crazy as "some" TV's will play the audio -- some do not, I have an audio extra...
by mmkw43
Tue Nov 03, 2020 12:45 am
Forum: General discussion
Topic: PI3 HDMI audio -- only "some" tv's?
Replies: 4
Views: 148

Re: PI3 HDMI audio -- only "some" tv's?

I've come to the conclusion that it has something to do with a poorly designed HDMI section in some TV's. Some TV's work just fine -- some don't but will for a bit manipulating the connector and that's using the same cable but it's not just mechanical -- you can hear it's the flawed HDMI electronic...
by mmkw43
Tue Nov 03, 2020 12:00 am
Forum: General discussion
Topic: PI3 HDMI audio -- only "some" tv's?
Replies: 4
Views: 148

Re: PI3 HDMI audio -- only "some" tv's?

ok thanks will check it out -- yes, these are just 2 or 3 second files.
by mmkw43
Mon Nov 02, 2020 10:52 pm
Forum: General discussion
Topic: PI3 HDMI audio -- only "some" tv's?
Replies: 4
Views: 148

Re: PI3 HDMI audio -- only "some" tv's?

and no it's not a cable issue.
by mmkw43
Mon Nov 02, 2020 10:49 pm
Forum: General discussion
Topic: PI3 HDMI audio -- only "some" tv's?
Replies: 4
Views: 148

PI3 HDMI audio -- only "some" tv's?

It's been a long while so it's hard to remember but I have a python script that calls mpg321 to play some files and when I was doing this, (if I remember right) I was having problems with the HDMI audio on some televisions (as I'm having right now). The audio is cut off considerably and I only hear ...
by mmkw43
Sun Nov 01, 2020 5:54 pm
Forum: Graphics programming
Topic: Tkinter -- pack with place?
Replies: 2
Views: 197

Re: Tkinter -- pack with place?

well, I'm doing something rather hard to explain -- I'll just try it and see what happens.
by mmkw43
Sun Nov 01, 2020 4:35 pm
Forum: Graphics programming
Topic: Tkinter -- pack with place?
Replies: 2
Views: 197

Tkinter -- pack with place?

Maybe someone knows offhand to save me time trying it but if I have some labels that I have written with place at specific points, if I add another label with pack, what happens? Does it somehow find a place to put itself? -- thanks
by mmkw43
Fri Oct 23, 2020 6:39 pm
Forum: Raspberry Pi OS
Topic: Dear Raspian....
Replies: 8
Views: 620

Re: Dear Raspian....

KDE is a browser? Is that what it's called? Just KDE? -- thanks
by mmkw43
Thu Oct 22, 2020 7:20 pm
Forum: Raspberry Pi OS
Topic: Dear Raspian....
Replies: 8
Views: 620

Re: Dear Raspian....

I want to go to my desktop and do it one click.

open chrome -- look for the bookmark and where the hell did I put it? -- click it.

Have my reasons for wanting a simpler process. In fact I want to do have a desktop with nothing but
internet shortcuts on one of my PI's.
by mmkw43
Thu Oct 22, 2020 6:55 pm
Forum: Raspberry Pi OS
Topic: Dear Raspian....
Replies: 8
Views: 620

Dear Raspian....

What I wouldn't give for this -- you right click in the address bar of a web site and you have the option to create a shortcut on the desktop with ONE click? AND, clicking on that shortcut opens your browser and takes you there. maybe not possible? and yes I know I can write a shortcut myself I gues...

Go to advanced search