Go to advanced search

by memjr
Thu Aug 19, 2021 5:01 pm
Forum: Python
Topic: Try to update the Python version
Replies: 14
Views: 595

Re: Try to update the Python version

Are you saying that Ubuntu LTS is more likely to break? Yes, and also more likely to be patched faster. But YMMV. I don't think so: What is the difference between Ubuntu LTS and Ubuntu? 9 Answers Profile photo for Michael Harden Michael Harden , IT Computer Repair at Personal Business (2010-present...
by memjr
Thu Aug 19, 2021 3:22 pm
Forum: Python
Topic: Try to update the Python version
Replies: 14
Views: 595

Re: Try to update the Python version

Hi i tried to update the python 3 version but i receve the message "not permited" with the command "./configure --enable-optimizations" What is the problem ? Can you explain what you did and what platform you did it on? otherwise people cannot diagnose your problem. Please list ...
by memjr
Thu Aug 19, 2021 3:21 pm
Forum: Python
Topic: Try to update the Python version
Replies: 14
Views: 595

Re: Try to update the Python version

Why do we use such an outdated version of python? Blame DebIan and their extremely conservative process for only doing version/release changes with their biennial DebIan releases. If you don't like that switch to Ubuntu (which is more dynamic and agile, but also more likely to break because of that...
by memjr
Thu Aug 19, 2021 3:17 pm
Forum: Python
Topic: control bluetooth dongle with python
Replies: 1
Views: 174

Re: control bluetooth dongle with python

Easiest way is to use BT as a serial adapter.
by memjr
Thu Aug 19, 2021 3:07 pm
Forum: General discussion
Topic: WebCamera mic not working
Replies: 1
Views: 86

Re: WebCamera mic not working

Try to determine if the microphone is working by trying to record sounds with it. If it works for that, then it's likely an issue with the teleconferencing program being used.
by memjr
Tue Aug 17, 2021 9:54 pm
Forum: Troubleshooting
Topic: Turning off Etherned LEDs
Replies: 14
Views: 554

Re: Turning off Etherned LEDs

Such an attempt to hide the status lights would be even more conspicuous. Have you tried it? I have not, just thought it's a tiny led, it would be a tiny permanent marker dot. You can even use nail polish of the same color as the surrounding area, or the same color as the LED when it's off. I actua...
by memjr
Tue Aug 17, 2021 5:19 pm
Forum: Troubleshooting
Topic: Turning off Etherned LEDs
Replies: 14
Views: 554

Re: Turning off Etherned LEDs

Paint it with a black marker, or put a piece of painter's tape over it. Such an attempt to hide the status lights would be even more conspicuous. Have you tried it? I have not, just thought it's a tiny led, it would be a tiny permanent marker dot. You can even use nail polish of the same color as t...
by memjr
Tue Aug 17, 2021 4:53 pm
Forum: Troubleshooting
Topic: Turning off Etherned LEDs
Replies: 14
Views: 554

Re: Turning off Etherned LEDs

Paint it with a black marker, or put a piece of painter's tape over it.
by memjr
Mon Aug 16, 2021 5:08 pm
Forum: Python
Topic: Temp sensor on Pi Zero
Replies: 18
Views: 984

Re: Temp sensor on Pi Zero

lastsaneman wrote:
Fri Aug 13, 2021 11:48 pm
FYI, all. I got it to run. Thank you for your input!

What was the problem?
by memjr
Thu Aug 12, 2021 12:38 am
Forum: Advanced users
Topic: microSD Endurance (TBW) and Monitoring
Replies: 18
Views: 1142

Re: microSD Endurance (TBW) and Monitoring

Take a look at Log2Ram

No idea about where to find specs, but if that's a concern for a design and you can't find that, buy a few cards and "burn them in" until you get enough data about the failures.
by memjr
Thu Aug 12, 2021 12:30 am
Forum: Beginners
Topic: GPIO pin when pulled down is not 0V!!! NEED HELP
Replies: 8
Views: 501

Re: GPIO pin when pulled down is not 0V!!! NEED HELP

Many of those relay modules are on when supplied 0V and off when supplied 5V (not idea why, seems a bit weird!). IIRC, the reason I was given was that if the ICs had to source current for all possible outputs to be on at the same time, then the IC would have to be designed to handle quite a bit of ...
by memjr
Wed Aug 11, 2021 6:42 pm
Forum: Python
Topic: Temp sensor on Pi Zero
Replies: 18
Views: 984

Re: Temp sensor on Pi Zero

Some other program might already be using it or has it open, but that is also being done by their own library, via the "import board" line in your code. Their forums would likely be the best place to help with that.
by memjr
Tue Aug 10, 2021 11:12 pm
Forum: General discussion
Topic: Raspberry PI External Case Connector
Replies: 14
Views: 616

Re: Raspberry PI External Case Connector

Any connector containing the number of pins you need will work well. You just need to define for yourself the specs, like does need to be water proof/resistant? Will it fit where you want? Too big/small for your linking?

It's really up to you.
by memjr
Mon Aug 09, 2021 2:52 pm
Forum: Python
Topic: Looking for Criticism of Code, Python3 starter.
Replies: 3
Views: 220

Re: Looking for Criticism of Code, Python3 starter.

To begin, this code should be heavily commented so we know what exactly we're looking at.

A bunch of if else statements is fine, but with comments as to what the code is supposed to do we could maybe find other ways of doing it (or not).
by memjr
Mon Aug 09, 2021 4:43 am
Forum: Python
Topic: python+django remote domotic system
Replies: 1
Views: 200

Re: python+django remote domotic system

I assume that put, get , post means REST API. There are many Django rest API tutorials out there. Here are some https://www.google.com/search?q=django+rest+api+tutorial+for+beginners&client=tablet-android-google&sxsrf=ALeKk02xNblQzyT8jyR4f5LwO5ENffARyQ%3A1628484259279&ei=o7IQYci5EPvT5NoP...
by memjr
Mon Aug 09, 2021 4:36 am
Forum: Advanced users
Topic: External storage without USB, for RPi4?
Replies: 22
Views: 1199

Re: External storage without USB, for RPi4?

Why not use an USB drive, but unsolder the USB socket from the board and solder the drive's USB wires directly to the board?

Can't get any closer than that and still keep the speed.
by memjr
Mon Aug 09, 2021 4:27 am
Forum: Troubleshooting
Topic: Can't get Docker to install
Replies: 5
Views: 451

Re: Can't get Docker to install

Install instructions that work, AFAIK https://docs.docker.com/engine/install/debian/ well hey, that worked! used: curl -fsSL https://get.docker.com -o get-docker.sh sudo sh get-docker.sh am i correct in guessing that it didnt work before because of the lack of the sudo command when it was piped dir...
by memjr
Sun Aug 08, 2021 4:14 am
Forum: Python
Topic: Temp sensor on Pi Zero
Replies: 18
Views: 984

Re: Temp sensor on Pi Zero

humidity = dhtSensor.humidity temp_c = dhtSensor.temperature Those 2 calls, return None, which is they Python's way of saying, nothing got returned. When you try to print None or use None in strings, as you're trying to do, that is what happens, python put nothing (what None really is) in the strin...
by memjr
Sun Aug 08, 2021 3:53 am
Forum: Beginners
Topic: Kegerator automation with webhook. Problem.
Replies: 1
Views: 77

Re: Kegerator automation with webhook. Problem.

Try this: import urllib3 # import RPi.GPIO as GPIO import time http = urllib3.PoolManager() # GPIO.setmode(GPIO.BCM) # GPIO.setwarnings(False) # GPIO.setup(3, GPIO.OUT, initial=GPIO.LOW) url = 'https://ebmacshost.com/khan/api/readdata' while True: resp = http.request('GET', url) gen = resp.data.deco...
by memjr
Fri Aug 06, 2021 2:48 pm
Forum: Python
Topic: Temp sensor on Pi Zero
Replies: 18
Views: 984

Re: Temp sensor on Pi Zero

I switched over to 3V3, and used a different GPIO pin. Same thing. So at this point, it could be a few things, including your Pi's gpio are fried. That is easy to check by connecting a resistor and led to each of the GPIOs (basically, do this to each pin to confirm they still work https://projects....
by memjr
Fri Aug 06, 2021 3:56 am
Forum: Python
Topic: Storing Tuples in Config File? [SOLVED]
Replies: 4
Views: 341

Re: Storing Tuples in Config File?

There a as many ways to save information in a file as there are stars in the sky. Csv, ini, json, yml, xml, etc, etc, etc.

Pick a format you like working with and use the corresponding python package to handle it.
by memjr
Fri Aug 06, 2021 3:43 am
Forum: Beginners
Topic: Ds18b20 temperature sensor layout
Replies: 5
Views: 321

Re: Ds18b20 temperature sensor layout

The 5k resistor is a pull up resistor. It is connected from the data pin to vcc. The capacitor is a filter cap, it's connected between vcc and the. No need to any other resistors. The pi is a 3.3v system. Connect the sensors vcc to the Pi's 3.3v pin, not the 5v pin. Connect the sensor data pin to wh...
by memjr
Thu Aug 05, 2021 4:07 pm
Forum: Beginners
Topic: WS 2812 led volume bar
Replies: 6
Views: 319

Re: WS 2812 led volume bar

Since you're polling the volume level, you could sleep as much as 1 whole second instead of 0.1 seconds and it would not feel too bad (as far as a delay). That would alleviate the cpu hit. If 1 second is too much, then play with the values between 1 and 0.1 until you hit a sweet spot. The other pote...
by memjr
Thu Aug 05, 2021 3:56 pm
Forum: Python
Topic: Temp sensor on Pi Zero
Replies: 18
Views: 984

Re: Temp sensor on Pi Zero

I changed True to False as you suggested. I got the following: RuntimeError, trying again... Traceback (most recent call last): File "/home/pi/tempsensor1.py", line 29, in <module> temp_f = format(temp_c * 9.0 / 5.0 + 32.0, ".2f") TypeError: unsupported operand type(s) for *: 'N...

Go to advanced search