Go to advanced search

by pfletch101
Sat Apr 28, 2018 3:37 am
Forum: Beginners
Topic: Capturing audio - is there anything that works?
Replies: 4
Views: 431

Re: Capturing audio - is there anything that works?

Looks like a faulty installation, with some files either missing or not where the program expects to find them. Unfortunately, I don't know this particular application so I can't be of more help.
by pfletch101
Sat Apr 28, 2018 1:17 am
Forum: Python
Topic: Installing Program requiring Python 2.7 when default is 3.x
Replies: 17
Views: 4673

Re: Installing Program requiring Python 2.7 when default is 3.x

Weewx may not be the only application that depends on Python 2 as default. If you want to keep system compatibility then IMO change the default back to python 2 and use python3 to start Python 3 code and either python or python 2 to start Python 2 code...... and when Python 4 comes out use python4 ...
by pfletch101
Sat Apr 28, 2018 12:08 am
Forum: Python
Topic: Installing Program requiring Python 2.7 when default is 3.x
Replies: 17
Views: 4673

Re: Installing Program requiring Python 2.7 when default is 3.x

I have both (2.x and 3.x) versions of Python installed on my Pi 3B+, but I have it set up to default to 3.x. I want to install Weewx, which requires 2.7, and I know that the install will work if I temporarily make the older version the default, but I suspect that if I subsequently set the default b...
by pfletch101
Sat Apr 28, 2018 12:04 am
Forum: Python
Topic: Installing Program requiring Python 2.7 when default is 3.x
Replies: 17
Views: 4673

Re: Installing Program requiring Python 2.7 when default is 3.x

DougieLawson wrote:
Fri Apr 27, 2018 10:39 pm
Python 2.7 is still the default in Raspbian Stretch. You have to jump through a small hoop to run python3.
As I noted, I have set my installation up to default to Python 3.x.
by pfletch101
Fri Apr 27, 2018 10:35 pm
Forum: Python
Topic: Installing Program requiring Python 2.7 when default is 3.x
Replies: 17
Views: 4673

Installing Program requiring Python 2.7 when default is 3.x

I have both (2.x and 3.x) versions of Python installed on my Pi 3B+, but I have it set up to default to 3.x. I want to install Weewx, which requires 2.7, and I know that the install will work if I temporarily make the older version the default, but I suspect that if I subsequently set the default ba...
by pfletch101
Fri Apr 27, 2018 7:17 pm
Forum: Beginners
Topic: How to read solar panel input and battery output
Replies: 5
Views: 1473

Re: How to read solar panel input and battery output

You don't give a lot of detail of the setup you want to monitor. In particular, you don't say whether the system is all DC or includes inverters, so that your batteries and solar array are ultimately supplying AC power to your load(s). It is (relatively) easy to measure AC current and power without ...
by pfletch101
Fri Apr 27, 2018 3:16 pm
Forum: Beginners
Topic: Capturing audio - is there anything that works?
Replies: 4
Views: 431

Re: Capturing audio - is there anything that works?

If this is a power issue, you should be seeing flashing or other disturbances of the power light on the Pi board. If you can't normally see this, it would be worth checking it while running your software, before looking for other causes.
by pfletch101
Wed Apr 25, 2018 9:40 pm
Forum: Advanced users
Topic: Mean of 60 temperature sensors
Replies: 17
Views: 1823

Re: Mean of 60 temperature sensors

I suspect that the OP's question may have more to do with gathering the data than with the trivial problem of calculating the mean of 3*60 values! I can't immediately think of a (wired or wireless) approach that would be likely to work without using a fair number of Pis as data collection hubs. Does...
by pfletch101
Wed Apr 25, 2018 6:08 pm
Forum: Beginners
Topic: Ipad to TV through RPi (Ipad-wifi-Rpi-HDMI-TV)
Replies: 17
Views: 8679

Re: Ipad to TV through RPi (Ipad-wifi-Rpi-HDMI-TV)

Another approach would be to use the Pi to stream Netflix and YouTube videos directly. It can't handle Netflix natively, but here again Google ("rasp pi Netflix") is your friend!
by pfletch101
Wed Apr 25, 2018 3:37 pm
Forum: Beginners
Topic: Ipad to TV through RPi (Ipad-wifi-Rpi-HDMI-TV)
Replies: 17
Views: 8679

Re: Ipad to TV through RPi (Ipad-wifi-Rpi-HDMI-TV)

How feasible this will be depends on exactly what you want to display. Duplicating the iPad's screen on a TV, irrespective of what it is doing, is likely to be non-trivial, but there appear to be a lot of working approaches to duplicating the function of Google's Chromecast device (which allows more...
by pfletch101
Wed Apr 25, 2018 12:53 am
Forum: Beginners
Topic: Raspberry Pi audio distribution amplifier
Replies: 1
Views: 131

Re: Raspberry Pi audio distribution amplifier

The short answer to your question is 'No'. Computers can only handle analog signals (which is what audio signals are) by converting them to digital formats first, processing them in digital form, and then converting them back to analog form. Although the audio output of your laptop is obviously prod...
by pfletch101
Sun Apr 22, 2018 3:02 pm
Forum: Beginners
Topic: Memtester?
Replies: 8
Views: 1247

Re: Memtester?

I am less familiar with the details of power draws in the Pi world than I am in the world of desktop computers, but the power draws when you do see signs of your power supply being inadequate seem likely to be higher than I would expect even with the CPU transiently maxed out, but no other devices d...
by pfletch101
Sat Apr 21, 2018 8:46 pm
Forum: Beginners
Topic: Memtester?
Replies: 8
Views: 1247

Re: Memtester?

But just to be clear, it is or isn't normal for web pages to freeze and crash chromium as soon as they are opened or a little movement or scrolling is done on the page? I load and use some very resource intensive web pages regularly, and have never seen this - they just load much slower than they d...
by pfletch101
Sat Apr 21, 2018 2:04 pm
Forum: Beginners
Topic: Power Supply recommendations wanted
Replies: 7
Views: 521

Re: Power Supply recommendations wanted

Thanks to all! I have ordered a couple (in case one of my other 'kit' supplies also fails).
by pfletch101
Fri Apr 20, 2018 11:18 pm
Forum: Beginners
Topic: Power Supply recommendations wanted
Replies: 7
Views: 521

Power Supply recommendations wanted

Has anyone got any (positive or negative) thoughts on particular makes/types of power supplies for Pi 3s, run under reasonably light working conditions. One 2.5A power supply which I bought with a kit only a month ago seems to be on its way out (power LED flashing and even going off under relatively...
by pfletch101
Fri Apr 20, 2018 3:02 pm
Forum: Beginners
Topic: General approach saving sensor data to database at interval
Replies: 6
Views: 1701

Re: General approach saving sensor data to database at interval

I learned not to have a Python program running all the time, use cron to call it and then exit it. What did you learn about having a Python program running all the time that led you to stop doing that? Save up a day and then write to file on card, it saves wear on the card. You might lose a day of ...
by pfletch101
Thu Apr 19, 2018 1:11 am
Forum: Beginners
Topic: Sharing sensor data
Replies: 17
Views: 1568

Re: Sharing sensor data

Shadow_Saunter wrote:
Wed Apr 18, 2018 6:35 pm
pfletch101 wrote: ...A separate application on the Pi serves the data to the main program, which runs on a Windows desktop.
What is the separate application?
It is a custom TCP server, written in Python. A dedicated TCP client within the desktop application (which is written in VB.Net) communicates with it.
by pfletch101
Tue Apr 17, 2018 7:47 pm
Forum: Beginners
Topic: Sharing sensor data
Replies: 17
Views: 1568

Re: Sharing sensor data

MariaDB is a great database application, but it may be overkill for something like this. I use SQLite to store the data from my sensors for my whole-house energy control and monitoring program. A separate application on the Pi serves the data to the main program, which runs on a Windows desktop.
by pfletch101
Tue Apr 17, 2018 1:49 pm
Forum: Beginners
Topic: How to print once on switch activation
Replies: 3
Views: 296

Re: How to print once on switch activation

You're welcome! It could be argued that the else: clause should also be modified similarly, i.e.: ... if not wasoff: wasoff = True GPIO.output(38, 0) time.sleep(.5) ... The revised code is marginally more efficient, and it is probably better practice only to 'touch' an output port if you need to.
by pfletch101
Mon Apr 16, 2018 1:42 pm
Forum: Beginners
Topic: How to print once on switch activation
Replies: 3
Views: 296

Re: How to print once on switch activation

It is a little difficult to read Python code without the necessary indentation! This is one of the many reasons to put code in a code block. You probably want something like: import RPi.GPIO as GPIO import time GPIO.setmode(GPIO.BOARD) GPIO.setup(7, GPIO.IN, pull_up_down=GPIO.PUD_DOWN) GPIO.setup(38...
by pfletch101
Sun Apr 15, 2018 9:43 pm
Forum: Beginners
Topic: Ssmtp cannot open mailhub 25
Replies: 8
Views: 4114

Re: Ssmtp cannot open mailhub 25

In the course of googling it seems that ssmtp is depreciated and there are other programs that have taken its place? Should I just be moving to one of those? If so its not clear to me which is the best choice. After a little bit of fiddling getting it installed and set up, postfix is working well f...
by pfletch101
Wed Apr 11, 2018 5:14 pm
Forum: Beginners
Topic: How often to run 'sudo apt-get dist-upgrade'
Replies: 12
Views: 2899

Re: How often to run 'sudo apt-get dist-upgrade'

apt and apt-get are equivalent*. There's not need to run apt-get update AND apt update, it's enough to just run apt update. That's what I thought (that they were equivalent) until a couple of days ago. After installing the latest Raspbian distro SD on my new 3B+, I duly ran apt-get update and apt-g...
by pfletch101
Wed Apr 11, 2018 2:47 pm
Forum: Beginners
Topic: How often to run 'sudo apt-get dist-upgrade'
Replies: 12
Views: 2899

How often to run 'sudo apt-get dist-upgrade'

It seems to be generally agreed that you should run 'sudo apt-get update' and 'sudo apt-get upgrade' before installing new utility software. I have also learnt that it is (at least) sometimes also necessary to run 'sudo apt update' as well, under those circumstances. Is there a reliable guideline as...
by pfletch101
Tue Apr 10, 2018 12:37 am
Forum: Beginners
Topic: access pi 3 from windows 7 or from Linux (headless)
Replies: 3
Views: 551

Re: access pi 3 from windows 7 or from Linux (headless)

All the 'nice simple' ways of setting up a Pi for headless access require you to spend a few minutes talking to it with a directly attached keyboard and monitor first! Do you really not have a TV with a DVI input or a friend who will lend you a keyboard and mouse for 10 minutes? It really doesn't ta...
by pfletch101
Sun Apr 08, 2018 2:38 pm
Forum: Networking and servers
Topic: Pi 3+ - apt-get can't find Postfix
Replies: 4
Views: 1079

Re: Pi 3+ - apt-get can't find Postfix

Thanks again! I will know to do that In future.

Go to advanced search