Go to advanced search

by uilfut
Tue Jul 23, 2019 12:57 am
Forum: General discussion
Topic: Raspberry Pi as keylogger
Replies: 9
Views: 554

Re: Raspberry Pi as keylogger

Asking for a friend
by uilfut
Tue Jul 16, 2019 9:43 am
Forum: General discussion
Topic: I didn't think the usb c power thing was a big deal...
Replies: 92
Views: 5337

Re: I didn't think the usb c power thing was a big deal...

jamesh wrote:
Tue Jul 16, 2019 9:11 am
My Dell laptop dock - $209.
Figured you more as a ThinkPad user.

Admire your patience dealing with some of the "fatal flaws" flogged to death on here.
by uilfut
Mon Jul 08, 2019 7:44 pm
Forum: General discussion
Topic: [SOLVED] Buster 'apt-get update' issue
Replies: 9
Views: 18367

Re: [SOLVED] Buster 'apt-get update' issue

I was stuck too, and found the answer here - so thanks for asking!
by uilfut
Thu Jun 27, 2019 7:02 pm
Forum: General discussion
Topic: Why is the RPi4 being advertised as a desktop computer?
Replies: 114
Views: 10751

Re: Why is the RPi4 being advertised as a desktop computer?

Think the OP has long gone (his work is done - everyone reacted!).

I think there's decent odds ARM based computers might be the next normal. Apple annoyed with Intel presently - their iOS devices already running ARM - if they switched their "desktop computer"s to ARM it could be huge.
by uilfut
Wed Jun 26, 2019 2:04 pm
Forum: General discussion
Topic: Pi4 Power Requirements
Replies: 2
Views: 354

Re: Pi4 Power Requirements

Great, thanks for this.
by uilfut
Wed Jun 26, 2019 2:01 pm
Forum: General discussion
Topic: Raspberry Pi 4 Thread - general discussion
Replies: 861
Views: 88754

Re: Raspberry Pi 4 Thread - general discussion

I am not angry at rpi group or anything I am just frustrating that it feels the OS is not ready at least from my point of view is a little bit disappointing and I believe it should have been a smoother release is all. Respectfully I think most folk here are happy to get their hands on one sooner, a...
by uilfut
Tue Jun 25, 2019 2:41 pm
Forum: General discussion
Topic: Pi4 Power Requirements
Replies: 2
Views: 354

Pi4 Power Requirements

The only way to buy (pre-order for a week's time) a Pi4 here in Canada was within a kit.

The kit includes a 2.5A micro USB power supply, plus adaptor to USB C.

https://www.buyapi.ca/product/raspberry ... udget-kit/

Is this up to the task? Or should I buy something better on Amazon?

Thanks
by uilfut
Tue Apr 09, 2019 8:46 pm
Forum: General discussion
Topic: Performance Pi Zero W vs. Pi 3 (Homebridge, CUPS, Pi-hole)
Replies: 12
Views: 1052

Re: Performance Pi Zero W vs. Pi 3 (Homebridge, CUPS, Pi-hole)

That's great to hear, I'm gonna try switching back and free up the Pi3b. Thanks!
by uilfut
Tue Apr 09, 2019 4:53 pm
Forum: General discussion
Topic: Performance Pi Zero W vs. Pi 3 (Homebridge, CUPS, Pi-hole)
Replies: 12
Views: 1052

Re: Performance Pi Zero W vs. Pi 3 (Homebridge, CUPS, Pi-hole)

I used a Pi0W for PiHole initially, and it was OK - but sometimes there was internet latency and I never knew if it was PiHole that was causing it. I since switched to a Pi3b for the PiHole server, and my impression is the internet runs better. I would be keen to hear others' experience. Don't have ...
by uilfut
Sun Mar 03, 2019 2:52 pm
Forum: Python
Topic: Reading Data back from a .csv file
Replies: 5
Views: 393

Re: Reading Data back from a .csv file

You could also consider pandas - might be helpful if you're dealing with time series or other panel data.
by uilfut
Thu Feb 14, 2019 10:13 pm
Forum: Python
Topic: waiting for GPIO button press eating resources
Replies: 5
Views: 261

Re: waiting for GPIO button press eating resources

(Thanks both for suggestions!) Can I do anything to make it use less resources? stick a small time.sleep() in the loop Yes I thought of this - but if I had, say a time.sleep(2), would I have to hold the button down for up to 2 seconds before it registered? This fixed it, thank you... I just hold th...
by uilfut
Thu Feb 14, 2019 10:05 pm
Forum: Python
Topic: waiting for GPIO button press eating resources
Replies: 5
Views: 261

Re: waiting for GPIO button press eating resources

(Thanks both for suggestions!) Can I do anything to make it use less resources? stick a small time.sleep() in the loop Yes I thought of this - but if I had, say a time.sleep(2), would I have to hold the button down for up to 2 seconds before it registered? Sorry if this is basic misunderstanding... :)
by uilfut
Thu Feb 14, 2019 9:28 pm
Forum: Python
Topic: waiting for GPIO button press eating resources
Replies: 5
Views: 261

waiting for GPIO button press eating resources

Hey guys Running my script to wait for a GPIO button press (which prints some stats on al oled screen) takes my processor from 2% to 25%. As soon as I press the button it goes down to 2% from 25% for 10 seconds while stats are displayed). I have a simple while loop: while True: if GPIO.input(15): di...
by uilfut
Sat Feb 09, 2019 4:42 pm
Forum: Python
Topic: Finishing list iteration before exception
Replies: 2
Views: 173

Re: Finishing list iteration before exception

Thank you!
by uilfut
Fri Feb 08, 2019 11:55 pm
Forum: General discussion
Topic: Is Raspberry Pi capable of replacing 2 wire thermostat
Replies: 8
Views: 693

Re: Is Raspberry Pi capable of replacing 2 wire thermostat

You could consider two pis (Pi0Ws would do). One in the boiler cupboard where there's presumably power, one out in the hallway or wherever you want to measure temperature. This way they could both be located near power outlets. The one next to the boiler could have an extra wire run from the thermos...
by uilfut
Fri Feb 08, 2019 11:46 pm
Forum: Python
Topic: Finishing list iteration before exception
Replies: 2
Views: 173

Finishing list iteration before exception

Hi there I'm trying to "try" clicking a number of URLs before refreshing the page and trying again. But when the first one doesn't work, it will go straight to the "except" clause. Is there a way to rewrite my loop so that it tries the whole list first, please? (currently it will try value 12, then ...
by uilfut
Fri Feb 01, 2019 3:48 am
Forum: Python
Topic: Connect python website with remote SQL Server Database
Replies: 2
Views: 331

Re: Connect python website with remote SQL Server Database

You will set up some sort of webserver on your pi (Apache/ nginx/ flask built in). The html (and html generated by python or your framework, eg flask or Django) are your front end. Your backend will be your mysql database (mariadb on pi) and potentially another external server. You can connect to th...
by uilfut
Tue Jan 29, 2019 4:40 am
Forum: Beginners
Topic: GPIO: mixing i2c with GPIO simple button
Replies: 4
Views: 314

Re: GPIO: mixing i2c with GPIO simple button

I figured it out don't worry.
by uilfut
Mon Jan 28, 2019 5:09 pm
Forum: Beginners
Topic: GPIO: mixing i2c with GPIO simple button
Replies: 4
Views: 314

Re: GPIO: mixing i2c with GPIO simple button

Error Message: [email protected]:~ $ python3 display_temp.py Traceback (most recent call last): File "display_temp.py", line 34, in <module> disp = Adafruit_SSD1306.SSD1306_128_32(rst=RST) File "/usr/local/lib/python3.5/dist-packages/Adafruit_SSD1306-1.6.2-py3.5.egg/Adafruit_SSD1306/SSD1306.py", line 2...
by uilfut
Mon Jan 28, 2019 4:33 pm
Forum: Beginners
Topic: GPIO: mixing i2c with GPIO simple button
Replies: 4
Views: 314

Re: GPIO: mixing i2c with GPIO simple button

import Adafruit_GPIO.SPI as SPI import Adafruit_SSD1306 import Adafruit_GFX from PIL import Image from PIL import ImageDraw from PIL import ImageFont import subprocess import mysql.connector as mariadb import RPi.GPIO as GPIO import time # button setup - GPIO.setwarnings(False) GPIO.setmode(GPIO.BO...
by uilfut
Mon Jan 28, 2019 4:25 pm
Forum: Beginners
Topic: GPIO: mixing i2c with GPIO simple button
Replies: 4
Views: 314

Re: GPIO: mixing i2c with GPIO simple button

Picture attached
by uilfut
Mon Jan 28, 2019 4:15 pm
Forum: Beginners
Topic: GPIO: mixing i2c with GPIO simple button
Replies: 4
Views: 314

GPIO: mixing i2c with GPIO simple button

Hey guys I have a pi that I'd like to connect three things to: collecting temp / humidity readings from DHT22 sensor (Adafruit_DHT library handles pins) - working! displaying temp on 128x32 oled (Adafruit_SSD1306 handles pins - i2c I believe) - working! push-button to launch script to display latest...
by uilfut
Thu Jan 17, 2019 5:06 pm
Forum: Python
Topic: Using multiple mariaDB queries in Flask webpage
Replies: 6
Views: 394

Re: Using multiple mariaDB queries in Flask webpage

OK calling TempSensor1[0] removes the other elements

Probably talking to myself at this point :)

Would still like to combine the three queries into one though... Probably call the one query Current = cur.fetchall() and call {{ Current[0] }}, {{ Current[1] }} etc...
by uilfut
Thu Jan 17, 2019 4:49 pm
Forum: Python
Topic: Using multiple mariaDB queries in Flask webpage
Replies: 6
Views: 394

Re: Using multiple mariaDB queries in Flask webpage

Think I got there in the end! Prob more elegant way, but thanks. Now to figure out why variable is appearing in html as (Decimal('22.2999992371'),) And not just the number - looks like a tuple? from flask import Flask, render_template, request import mysql.connector as mariadb app = Flask(__name__) ...
by uilfut
Thu Jan 17, 2019 4:11 pm
Forum: Python
Topic: Using multiple mariaDB queries in Flask webpage
Replies: 6
Views: 394

Re: Using multiple mariaDB queries in Flask webpage

rows = cur.fetchall() - I'm pretty sure this is what needs to change (to cur.fetchone??) - something like - TempSensor1 = cur.fetchone() HumidSensor1 = cur.fetchone() *Then new Query for max Temp* MaxTemp = cur.fetchone() *Then new Query for max Humid* MaxHumid = cur.fetchone() Then pass {{ TempSens...

Go to advanced search