Go to advanced search

by squiregeek
Tue Oct 29, 2019 8:21 pm
Forum: Python
Topic: Python script at boot can't find pytz
Replies: 2
Views: 273

Re: Python script at boot can't find pytz

Thank you ghp. I'm on a different computer and can't curt and paste. The lack of '/usr...' was a typo on my part. It should read:

Code: Select all

ExecStart=/usr/bin/python3 /home/pi/XXXX-ctrl.py
Good catch. I'm proofreading more carefully. And I'm learning how to properly format these posts.
by squiregeek
Tue Oct 29, 2019 7:17 pm
Forum: Python
Topic: Python script at boot can't find pytz
Replies: 2
Views: 273

Python script at boot can't find pytz

I have a script that starts at boot. In systemd I have: ExecStart=usr/bin/python3 /home/pi/XXXX-ctrl.py Start fails with error, no module named 'pytz' I've tried it with rc.local with the same result. If I start the program in the terminal with python3 XXXX-ctrl.py, it works fine. pytz was installed...
by squiregeek
Sat Jun 02, 2018 9:55 pm
Forum: Automation, sensing and robotics
Topic: Software to control a watering system
Replies: 7
Views: 835

Re: Software to control a watering system

You might check opensprinkler.com. They started with RPi controllers and have branched out. You'll find a wealth of information on the open source project. I installed one a few years ago as a replacement for an existing controller. Worked well from the start and my wife loved being able to program ...
by squiregeek
Sun Mar 11, 2018 3:19 pm
Forum: Python
Topic: Input() without stopping the program
Replies: 2
Views: 311

Re: Input() without stopping the program

Here is a suggestion for a non-blocking read loop I found at Stack Overflow: while (True): if (ser.inWaiting()>0): #if incoming bytes are waiting to be read from the serial input buffer data_str = ser.read(ser.inWaiting()).decode('ascii') #read the bytes and convert from binary array to ASCII print(...
by squiregeek
Tue Mar 06, 2018 5:03 pm
Forum: Python
Topic: Flask(_name_) error please
Replies: 5
Views: 3246

Re: Flask(_name_) error please

I'm fairly new with Flask, but you might consider adding if ___name == "__main__": before app.run(). Has to do with decorators which I'm still learning about.

I've run a couple of simple scripts that way without problems. Hope this helps.
by squiregeek
Thu Jun 08, 2017 8:17 pm
Forum: Troubleshooting
Topic: Desktop image doesn't return
Replies: 0
Views: 205

Desktop image doesn't return

I have a Pi Zero W programmed as a webserver running Python Flask. After the HDMI screen times out and goes to black, pressing a key only brings back a few random-seeming picture elements. Moving the cursor will reveal other pieces, and if I can find an open window, I can grab the top and drag it ar...
by squiregeek
Tue Jun 28, 2016 7:52 pm
Forum: Networking and servers
Topic: RPI-3 onboard Wifi w/hostapd - Can't hide SSID
Replies: 9
Views: 6014

Re: RPI-3 onboard Wifi w/hostapd - Can't hide SSID

I've been told that hiding the SSID can be useful if there are a large number of possible users in the area. In my case, there is a horse park where various shows are conducted. When ten thousand or more attendees show up with their smartphones and tablets turned on, the attempts by their computers ...
by squiregeek
Fri Jul 25, 2014 6:56 pm
Forum: Graphics, sound and multimedia
Topic: [Tutorial] Squeezelite up and running on Raspbian
Replies: 282
Views: 191746

Re: [Tutorial] Squeezelite up and running on Raspbian

Well, it's worked for over a day in the past, but only rarely. It's twenty-three hours and counting, so I'm hopeful. I read you note on using more than one DAC on a Pi and will likely give it a try. I measured current draw on two of the DACs I use and you might be surprised by the results. The Odroi...
by squiregeek
Fri Jul 25, 2014 12:18 pm
Forum: Graphics, sound and multimedia
Topic: [Tutorial] Squeezelite up and running on Raspbian
Replies: 282
Views: 191746

Re: [Tutorial] Squeezelite up and running on Raspbian

gerrelt, No, I'm hardwired on all devices. My current experiment involves four R-Pis. One is running LMS via Squeezeplug 7.09, and the other three are provisioned with squeezelite per your tutorial. Two of them are streaming Internet audio and one is playing music from the local library. Since they ...
by squiregeek
Thu Jul 24, 2014 5:38 pm
Forum: Graphics, sound and multimedia
Topic: [Tutorial] Squeezelite up and running on Raspbian
Replies: 282
Views: 191746

Re: [Tutorial] Squeezelite up and running on Raspbian

Hi Herr Truehl, (I'm a donor!) No, I've only used outboard DACs, given the complaints about the sound quality. I use optical interfaces to keep hum down as well, but tried the Behringer's line out for testing. So many users are getting reliable results that I'm sure that I'm doing something wrong. B...
by squiregeek
Thu Jul 24, 2014 2:52 pm
Forum: Graphics, sound and multimedia
Topic: [Tutorial] Squeezelite up and running on Raspbian
Replies: 282
Views: 191746

Re: [Tutorial] Squeezelite up and running on Raspbian

Thanks, Paul. That's a great idea.

I've installed Squeezelite on a Raspi B+ using gerrelt's indispensable tutorial. I'll see how long it works.
by squiregeek
Thu Jul 24, 2014 12:45 pm
Forum: Graphics, sound and multimedia
Topic: [Tutorial] Squeezelite up and running on Raspbian
Replies: 282
Views: 191746

Re: [Tutorial] Squeezelite up and running on Raspbian

Thanks for the help Gerrelt. I may try Squeezlite by myself if I can't make the 'plug' version stable. I have Odroids and Cubox-i's yet to try. I've used Wolfson, Behringer, Odroid, Startech and ADSTech modules with success, at least until Squeezelite goes offline. I'm still trying to get HDMI to wo...
by squiregeek
Wed Jul 23, 2014 9:43 pm
Forum: Graphics, sound and multimedia
Topic: [Tutorial] Squeezelite up and running on Raspbian
Replies: 282
Views: 191746

Squeezelite stopping

I have been trying to get reliable operation from my Raspi systems, but having no luck. Today I provisioned three Pi's to stream from a fourth Pi running LMS. All are Squeezeplug 7.09. After several hours, all three players stopped, though at different times. Running 'service squeezelite status' sho...
by squiregeek
Thu Aug 22, 2013 12:43 am
Forum: Graphics, sound and multimedia
Topic: Squeezeslave up and running
Replies: 48
Views: 38328

Re: Squeezeslave up and running

I use Squeeze Commander on my Android phone to control SqueezeLite. I can select MP3 files or change Internet radio stations with ease. I can even adjust volume. With regard to DACs, I've used the Behringer UCA-202 and 222 (RPi doesn't know the difference). It has both analog and digital optical out...
by squiregeek
Thu Aug 22, 2013 12:24 am
Forum: Graphics, sound and multimedia
Topic: Squeezelite won't spool local USB
Replies: 1
Views: 471

Re: Squeezelite won't spool local USB

I finally found the problem. It seems that the music library has to be synced in some fashion with mysqueezebox.com. It's been so long since I set up the original system that I quite forgot. SqueezePlug and SqueezeLite are working well and the wife is thrilled to be able to control her music library...
by squiregeek
Sun Aug 18, 2013 11:54 pm
Forum: Graphics, sound and multimedia
Topic: Squeezelite won't spool local USB
Replies: 1
Views: 471

Squeezelite won't spool local USB

I have SqueezePlug and SqueezeLite working on my RPi. But I can't get the source I want. I have been using a Logitech server spooling music files from my desktop over the network. I can't get the Pi to access the same files on its USB flash drive so i can shut the old machine down. SqueezLite insist...
by squiregeek
Sat Feb 09, 2013 1:47 pm
Forum: Beginners
Topic: Defeating daylight time
Replies: 3
Views: 1215

Re: Defeating daylight time

Thanks for the help, DBryant. I learned of this file and was wondering how I might alter it to force the time to stay standard. You've given me the head start I needed.
by squiregeek
Fri Feb 08, 2013 11:51 pm
Forum: General programming discussion
Topic: How can I run a MI-FI via USB
Replies: 8
Views: 1527

Re: How can I run a MI-FI via USB

In my case, the dongle is from the cell carrier. I canceled the service months ago when I figured out that it's cheaper to use wifi to my smartphone as a hot spot. But I got to keep the modem. Even if you use the carrier's dongle, I'm not aware of any who support Linux. Fortunately there are some gu...
by squiregeek
Fri Feb 08, 2013 7:29 pm
Forum: General programming discussion
Topic: How can I run a MI-FI via USB
Replies: 8
Views: 1527

Re: How can I run a MI-FI via USB

I plan on using one but haven't fully tried it out yet. But I just plugged my US Cellular EVDO modem into the Pi's USB hub, ran dmesg and saw that the Pantech UM185 was on the list. I have read elsewhere that modems for cellular data services (Verizon, US Cellular and others) are compatible with Lin...
by squiregeek
Fri Feb 08, 2013 5:09 pm
Forum: Beginners
Topic: Defeating daylight time
Replies: 3
Views: 1215

Defeating daylight time

I have an application in mind that requires that the Pi stay in standard time year-round. Although a lot of mentions are found for a TZ variable (EST-5 for instance), Raspian seems to use 'timezone' (America/New_York).

Is there a way to keep local time in 'standard' for cron and crontab?
by squiregeek
Sun Feb 03, 2013 1:12 am
Forum: Python
Topic: Python GPIO timing
Replies: 3
Views: 782

Re: Python GPIO timing

Thanks, Grumpy, that's good to know.
by squiregeek
Fri Feb 01, 2013 4:26 pm
Forum: Python
Topic: Python GPIO timing
Replies: 3
Views: 782

Python GPIO timing

I see warnings about real-time operations using Python/GPIO. How much error should I expect in say, an alarm clock app? I have in mind tripping one of three relays four times a day. A few seconds delay would be no problem, but if the system wanders off to do other things for more than that, I would ...
by squiregeek
Mon Jan 21, 2013 9:04 pm
Forum: Media centres
Topic: Audio streamer
Replies: 11
Views: 9055

Re: Audio streamer

This may be what you're looking for. I haven't tried it yet, but it's on my list:

http://jamesharrison.github.com/openob/

Go to advanced search