Go to advanced search

by scruss
Fri Sep 22, 2017 12:25 pm
Forum: Python
Topic: Python change sudenly the name of usb stick. Getting crazy!!!
Replies: 8
Views: 165

Re: Python change sudenly the name of usb stick. Getting crazy!!!

please post the output of df -h with the USB drive plugged in. It does what your Python code seems to do, but in consistent way. Files under /media are links to mounted filesystems. If you explicitly create folders under /media, your files are likely somewhere on your SD card. I'm guessing that both...
by scruss
Tue Sep 19, 2017 3:56 pm
Forum: Networking and servers
Topic: Conect Raspberry Pi 3 with Arduinos UNO Wifi
Replies: 1
Views: 61

Re: Conect Raspberry Pi 3 with Arduinos UNO Wifi

If I remember right, the "official" way to talk to an Arduino Uno Wifi is via MQTT. The ESP8266 on the Uno Wifi has a web/MQTT interface installed into it, and that might be hard to change.

Doesn't look like Arduino will be selling or updating these boards any more.
by scruss
Mon Sep 18, 2017 4:26 pm
Forum: General discussion
Topic: unreadable font at https://www.raspberrypi.org/products/
Replies: 6
Views: 254

Re: unreadable font at https://www.raspberrypi.org/products/

Thin fonts look great on high resolution screens — like the ones designers typically have. Thin fonts look pretty bad as one's eyes age, as the contrast us olds need just isn't there.
by scruss
Thu Sep 07, 2017 1:14 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: RB-Wav-20 on a Pi
Replies: 1
Views: 112

Re: RB-Wav-20 on a Pi

Looks like the same screen that's in the Adafruit PiTFT Plus
by scruss
Thu Sep 07, 2017 1:09 pm
Forum: Advanced users
Topic: Use an RCA to USB cable for button input off rca end.
Replies: 10
Views: 422

Re: Use an RCA to USB cable for button input off rca end.

Sounds like you're modifying an existing quiz panel system. RCA plugs for switches is kinda custom, but if it's part of an A/V event might make sense. FWIW my go-to switches for Raspberry Pi projects are surplus ATX power switches. Dirt cheap, nicely clicky, and come with a decent pigtail and connec...
by scruss
Wed Sep 06, 2017 8:18 pm
Forum: General discussion
Topic: Python update to 3.6.2 on pi3 stretch
Replies: 3
Views: 208

Re: Python update to 3.6.2 on pi3 stretch

My question 1: how to have only the Python 3.6.2 when I type "python". That would likely break stuff. On most systems, the python command is Python 2. If you really want to use your version, put this at the top of your scripts: #!/usr/bin/env python3.6 There's also the whole virtualenv/venv thing, ...
by scruss
Wed Sep 06, 2017 8:09 pm
Forum: Python
Topic: Building Python 3.6.0 on RPi 3 from sources (clean Raspbian)
Replies: 8
Views: 3318

Re: Building Python 3.6.0 on RPi 3 from sources (clean Raspbian)

One has to wonder what Python 3.6 provides that caprojects so desperately needs.

The newest version I have on any machine in the house is 3.5.3, so to use 3.6, I'd have to build from source. This puts off a lot of users.
by scruss
Mon Sep 04, 2017 5:12 pm
Forum: Advanced users
Topic: "For loop" error in terminal with avconv
Replies: 4
Views: 179

Re: "For loop" error in terminal with avconv

Correct use of for in a terminal. for((i=0;i<12;i++)); do echo "Test $i"; done; Not if you're globbing filenames like the OP wanted to do. Apart from the sudo error, they had the syntax correct: for i in 04*; do avconv -i "$i" -s:v hd480 -acodec mp3 "$i-480"; done In bash, you can do your range exa...
by scruss
Mon Sep 04, 2017 4:24 pm
Forum: Beginners
Topic: Request: a DUMB access point. (No DHCP.)
Replies: 18
Views: 519

Re: Request: a DUMB access point. (No DHCP.)

SurferTim wrote:
Mon Sep 04, 2017 1:23 pm

Insure you have the latest updates.

Code: Select all

…
sudo rpi-update
Don't do rpi-update unless you need the bleeding edge kernel features. It shouldn't be required here.
by scruss
Wed Aug 23, 2017 2:45 pm
Forum: General discussion
Topic: Shortest possible male GPIO header?
Replies: 3
Views: 182

Re: Shortest possible male GPIO header?

Most Raspberry Pi TFTs have long female headers so they'll clear the ports on a Raspberry Pi 3. What screen are you trying to modify?
by scruss
Wed Aug 23, 2017 2:39 pm
Forum: Troubleshooting
Topic: [SOLVED] Raspbian mirror hash sum mismatch
Replies: 4
Views: 263

Re: Raspbian mirror hash sum mismatch

Looks like access to the NUS - National University of Singapore mirror is limited only to those inside the campus. When I tried to download the file from Canada using wget, it would pause every 8 KB or so and restart. Looking inside the file (using the strings command) I see it's trying to redirect ...
by scruss
Wed Aug 23, 2017 2:09 pm
Forum: General discussion
Topic: Serial ESP8266 Remote Serial Port WIFI wireless, WiFi Serial Transceiver Module , ESP32 Wifi Bluetooth Board
Replies: 4
Views: 265

Re: Serial ESP8266 Remote Serial Port WIFI wireless, WiFi Serial Transceiver Module , ESP32 Wifi Bluetooth Board

You can do a bit more than that. EPS8266 are fully supported under the Arduino IDE, so much of what you can do on an Arduino, you can do on an ESP-8266, with the addition of networking. The ESP-8266 has fewer I/O ports and a very limited ADC (just one, limited to 0..1 V only) compared to an Arduino....
by scruss
Sun Aug 20, 2017 9:55 pm
Forum: Off topic discussion
Topic: Buying a Zero in the US
Replies: 8
Views: 861

Re: Buying a Zero in the US

… A padded envelope and stick it in the mail, seems like it should certainly be under $2 within the US. Yeah, that's the cost of the envelope + the cost of a stamp. But there are many overheads: If you want any sort of tracking, it needs to go Expedited (that's the Canadian name, dunno the US equiv...
by scruss
Fri Aug 18, 2017 1:53 pm
Forum: Beginners
Topic: VNC to pi from Mac screen sharing
Replies: 4
Views: 280

Re: VNC to pi from Mac screen sharing

Curious about the system integrations, can you elaborate? The only major difference I've found is that, as a system user, your are an administrative user able to bypass accept/reject prompts. VNC Password doesn't give you that option. How much of an actual difference that will make, I don't know, a...
by scruss
Fri Aug 18, 2017 1:45 pm
Forum: Troubleshooting
Topic: install drivers
Replies: 3
Views: 174

Re: install drivers

I don't think the MediaTek MT7610U is supported under Raspbian. The only threads I can find are too old to have useful instructions.
by scruss
Fri Aug 18, 2017 1:36 pm
Forum: Troubleshooting
Topic: Raspbian Stretch: Wifi not starting on boot
Replies: 24
Views: 6326

Re: Raspbian Stretch: Wifi not starting on boot

In an upgrade from Jessie to Stretch, one of my Raspberry Pis had /etc/network/interfaces ending at the

Code: Select all

source-directory /etc/network/interfaces.d
line: no iface lines at all. Manually edited it, and it's happy now.
by scruss
Fri Aug 18, 2017 12:11 am
Forum: Troubleshooting
Topic: install drivers
Replies: 3
Views: 174

Re: install drivers

what are you trying to install?
by scruss
Fri Aug 18, 2017 12:05 am
Forum: Beginners
Topic: VNC to pi from Mac screen sharing
Replies: 4
Views: 280

Re: VNC to pi from Mac screen sharing

You don't need to (in fact, shouldn't) disable encryption, but you do need need to set Authentication to VNC Password in RealVNC Server on your Raspberry Pi: 2017-08-17-194222_1024x768_scrot.png When you apply this, it should prompt you for a new VNC password. This will likely mean that you lose som...
by scruss
Thu Aug 17, 2017 11:58 pm
Forum: Python
Topic: Remote controlling a power supply via USB
Replies: 3
Views: 322

Re: Remote controlling a power supply via USB

Did you try

Code: Select all

pip3 install pyvisa-py
?

Not sure what you mean by the "python shell". There's the shell (aka Bash), and there's Python.
by scruss
Thu Aug 17, 2017 11:54 pm
Forum: General discussion
Topic: Houseboat home automation / surveillance system
Replies: 49
Views: 2655

Re: Anyone here with experience of the Monarco Hat?

The only other mention of this product was when they developer showed up (briefly) to announce it: Monarco HAT - analog and digital I/O, RS-485, 1-Wire, RTC... - Raspberry Pi Forums
by scruss
Thu Aug 17, 2017 5:11 pm
Forum: Beginners
Topic: pin numbering: wiringPi website vs. others?
Replies: 9
Views: 436

Re: pin numbering: wiringPi website vs. others?

Use the BCM_GPIO pin numbering scheme, always and everywhere. wiringPI's scheme is looking a little quaint these days. gpiozero's pinout command gives you the right map for the hardware it's running on: raspberry_pi_zero-pinout1.png pinout.xyz has all of the systems. BTW, you were looking at the old...
by scruss
Tue Aug 15, 2017 1:08 pm
Forum: Troubleshooting
Topic: Serial port device is not reading data
Replies: 14
Views: 638

Re: Serial port device is not reading data

That's a slightly non-standard null modem wiring. Most 9-pin null modem cables I've used cross pins 7 & 8 (that is, CTS → RTS and RTS → CTS) but this one loops them back locally. You'll need to do my least favourite thing: mess around with stty 's flow control options. Until this is sorted out, both...
by scruss
Tue Aug 15, 2017 2:10 am
Forum: General programming discussion
Topic: Arduino IDE does not recognize letter 'M' [solved]
Replies: 7
Views: 582

Re: Arduino IDE does not recognize letter 'M' [solved]

Just select and delete the icon. It won't delete your installation.
by scruss
Mon Aug 14, 2017 3:56 pm
Forum: Python
Topic: print a persian file by thermal printer and python-escpos mnodule
Replies: 8
Views: 461

Re: print a persian file by thermal printer and python-escpos module

i have printed jpg and gif images by my printer.so i don't think my printer has problem in printing bitmaps Okay, that's a start, but your first example code at line 46 says: im.save(filename=tmpImage) and tmpImage is defined as my-text.png (line 27). So what I'm asking is: Does the file my-text.pn...
by scruss
Mon Aug 14, 2017 3:36 pm
Forum: General discussion
Topic: Power Switch
Replies: 2
Views: 177

Re: Power Switch

It looks a clever device with its relay to cut power, but the Raspberry Pi 3 is a bit of a power hog, and their flat USB cable may be too long/too thin to pass that kind of current. Personally, a simple “soft” power switch that calls poweroff (like these examples: TonyLHansen/raspberry-pi-safe-off-s...

Go to advanced search