Go to advanced search

by purloi
Thu Jul 28, 2016 12:15 pm
Forum: Automation, sensing and robotics
Topic: Analog Resolution below 0.1 volts
Replies: 2
Views: 697

Re: Analog Resolution below 0.1 volts

em - there is no analog input on the Pi :( Ah crap! I'll go into Arduino, or a hat, then into then Pi. I forgot about that. Thanks! And current transformers are quite dangerous devices to me playing around with if new (or even if your old) to electronics/electrical engineering A current transformer...
by purloi
Thu Jul 28, 2016 2:51 am
Forum: Automation, sensing and robotics
Topic: Analog Resolution below 0.1 volts
Replies: 2
Views: 697

Analog Resolution below 0.1 volts

Does the analog input on the Pi have enough resolution to be able to accurately tell the difference between 0.1, 0.05 and 0.075 volts? I have 3 lights I need to monitor. One of the lights uses 10 amps, the other 2 lights use 5 amps each. When all 3 are on, they use 20 amps total. I plan to have a Pi...
by purloi
Tue Jul 28, 2015 8:56 pm
Forum: Raspberry Pi OS
Topic: was libav compiled with an mp2 input filter?
Replies: 1
Views: 502

was libav compiled with an mp2 input filter?

I installed libav for avconv. However, I get an error when trying to convert mp2's. It works great for WAV and MP3, but not MP2 input. I first tried: avconv -y -i file1.mp2 -acodec mp2 -b 256k converted_file.mp2 avconv version 9.14-6:9.14-1rpi1rpi1, Copyright (c) 2000-2014 the Libav developers built...
by purloi
Sat May 16, 2015 3:23 pm
Forum: Troubleshooting
Topic: Rasbian Symlinks
Replies: 1
Views: 403

Rasbian Symlinks

One of my Raspberry Pi 2 B+ operates as an FTP server. Using Python, files uploaded to the FTP server are moved to /mnt/windows/share/ over the LAN. Our power went out last night. The Pi would have booted much faster than the windows machines and probably failed to mount /mnt/windows/share/ which wa...
by purloi
Wed Apr 22, 2015 4:39 pm
Forum: Python
Topic: Subprocess Call + logging output
Replies: 6
Views: 3814

Re: Subprocess Call + logging output

That looks beautiful! I will try to make use of that right now! Thank you for sharing!!
by purloi
Wed Apr 22, 2015 3:48 pm
Forum: Python
Topic: Subprocess Call + logging output
Replies: 6
Views: 3814

Subprocess Call + logging output

With my Pi's, I always create logs and have them emailed to me IF it runs into a problem. The one problem I ran into was using subprocess calls. How do you save output as a variable? Here's an example. Converting stereo MP3 to mono WAV I use this code: # convert file to WAV log = log + "Converting t...
by purloi
Sat Apr 18, 2015 11:02 pm
Forum: Troubleshooting
Topic: ffmpeg recipe on Pi 2
Replies: 0
Views: 779

ffmpeg recipe on Pi 2

Has anyone had luck compiling ffmpeg on the Pi 2? I love that it doesn't take 3 hours any more. Only 1 hour 9 minutes. Or maybe that's just when it fails. First I compiled x264, AAC, and MP3 with success. Following one guide says: ./configure --enable-shared --enable-gpl --prefix=/usr --enable-nonfr...
by purloi
Fri Apr 17, 2015 12:52 am
Forum: Troubleshooting
Topic: GPIO trouble SOLVED
Replies: 5
Views: 631

Re: GPIO trouble SOLVED

dtoverlay=w1-gpio-pullup,gpiopin=4
That was the fix!
Unfortunately, Im a blind idiot. I entered it as:
dtoverlay=w1-gpio-pullup.gpiopin=4

Now it has the proper dot and all is well.

Thank you!!! :D
by purloi
Thu Apr 16, 2015 8:44 pm
Forum: Troubleshooting
Topic: GPIO trouble SOLVED
Replies: 5
Views: 631

Re: GPIO trouble

Correct. I am using Pin 7 (GPIO 4). I did not write that very well in my original post. Sorry about that.
by purloi
Thu Apr 16, 2015 7:46 pm
Forum: Troubleshooting
Topic: GPIO trouble SOLVED
Replies: 5
Views: 631

Re: GPIO trouble

Add the following line to /boot/config.txt and reboot. dtoverlay=w1-gpio-pullup,gpiopin=4 The modules should be auto loaded. Thank you. I did add that line. I feel like I am still forgetting something. I did solve the LED issue. It was a typo on my part. LED's working great now, but still no temp. ...
by purloi
Thu Apr 16, 2015 4:41 pm
Forum: Troubleshooting
Topic: GPIO trouble SOLVED
Replies: 5
Views: 631

GPIO trouble SOLVED

Using my brand new B+ boards with brand new fresh install of the latest Raspbian, updated and upgraded. I am not able to access my DS18B20 temperature sensors. I'm guessing I missed a step that I completed already on my old boards. Here's what I did so far. Connected pin 3 on the sensor to the 3.3V ...
by purloi
Sun Mar 29, 2015 11:10 pm
Forum: Python
Topic: printing white space to a file
Replies: 7
Views: 1045

Re: printing white space to a file

AndyD wrote:Yes, 20 (hexadecimal) is 32 (decimal).
Well I feel silly. Thanks Andy!

It must not be the spaces. For some reason notepad's two spaces and a line break are different from mine. I should be able to track it down now. Thank you all for the help!
by purloi
Sun Mar 29, 2015 10:42 pm
Forum: Python
Topic: printing white space to a file
Replies: 7
Views: 1045

Re: printing white space to a file

What a great tool! It looks like spaces are there. 20 is space? using SSH to the pi, the file seems to have no space. Also in notepad on the windows server there seems to be no spaces. Hmm. :? 000000 20 0a 20 20 0d 0a 4d 6f 6e 64 61 79 0d 0a 4e 69 > . ..Monday.. I may be crazy, but I'm going to try ...
by purloi
Sun Mar 29, 2015 10:14 pm
Forum: Python
Topic: printing white space to a file
Replies: 7
Views: 1045

printing white space to a file

One of the machines, that reads reports, requires a blank line to have at least one character of whitespace. Otherwise, the line gets deleted and the report looks bad. I thought that would be simple, but writing a blank line with 2 characters of white space is proving to be difficult. Here's what I...
by purloi
Mon Feb 23, 2015 2:02 am
Forum: Python
Topic: A better way?
Replies: 4
Views: 880

Re: A better way?

Thank you both very much! Two very good lessons for me. I was trying to put each line inside parenthesis, instead of separating by period. I'm still learning how python formatting works. I thought my Pi was slowing down because it was running out of ram. It was actually just stalling on slow web pag...
by purloi
Sun Feb 22, 2015 6:40 pm
Forum: Python
Topic: A better way?
Replies: 4
Views: 880

A better way?

The following code works perfectly but, I assume there must be a better way. Would making this all one line use less ram, or are there hidden variables created anyway? Each line creates a new variable. If the website is large, the variables become large. import html2text import urllib2 req = urllib2...
by purloi
Thu Dec 25, 2014 5:40 pm
Forum: Python
Topic: reading files in directories
Replies: 1
Views: 539

reading files in directories

Currently, I have a Windows based FTP server which moves the files that users upload to other computers on the LAN. Depending on the names or types of files, and the users name, determine where my batch file moves the files. I want to replace this setup with a Pi. One problem I occasionally run into...
by purloi
Tue Dec 16, 2014 10:48 pm
Forum: Raspberry Pi OS
Topic: restrict user account
Replies: 4
Views: 1036

Re: restrict user account

Thanks Joe!

This is probably why others seem to add a program for multiple users to sftp? I thought that was silly since sftp was already running on Raspbian by default. My first thought was just add users. Now I know better. I have learned much today!

Thank you all!
by purloi
Tue Dec 16, 2014 10:24 pm
Forum: Raspberry Pi OS
Topic: restrict user account
Replies: 4
Views: 1036

Re: restrict user account

that is normal, that a new created user can browse into many folders. some of them are necessary to be able to access, to execute programs. some folders can be browsed by the user, but is not able to open the files itself. you can remove some group memberships to reduce access privileges... the nob...
by purloi
Tue Dec 16, 2014 9:37 pm
Forum: Raspberry Pi OS
Topic: restrict user account
Replies: 4
Views: 1036

restrict user account

I'm still learning Linux (Raspbian) I'm used to dealing with windows accounts and permissions, so perhaps I am making this much harder than it needs to be. I want to create accounts for sftp that will not be able to browse, read, and download nearly the entire file system. Creating a new account by ...
by purloi
Sat Nov 15, 2014 1:46 pm
Forum: Troubleshooting
Topic: apt-get workaround?
Replies: 4
Views: 939

Re: apt-get workaround?

1. Download http://mirrordirector.raspbian.org/rasp ... .1_all.deb 2. Copy it to the first partition of the SD card. 3. Boot up your Pi. If not using NOOBS: 4. sudo dpkg -i /boot/firmware-ralink_0.36+wheezy.1_all.deb That looks like the solution! Thank you!!! I will try this the second I get home! ...
by purloi
Fri Nov 14, 2014 11:39 pm
Forum: Troubleshooting
Topic: apt-get workaround?
Replies: 4
Views: 939

apt-get workaround?

Is there a way to load drivers/firmware on the SD card from another computer and have the Pi pick them up and use them? Google keeps turning up the same unhelpful line over and over: SMCWUSBS-N: Hardware detected as rt2800, but it is missing firmware; "sudo apt-get install firmware-ralink" fixed it ...
by purloi
Thu Nov 13, 2014 10:10 pm
Forum: Troubleshooting
Topic: WIFI on Model A
Replies: 1
Views: 700

WIFI on Model A

I am attempting to get a SMC "SMCWUSB-N2" working on a Raspberry Pi which only has 1 USB, and no LAN connector. I believe this is the model A. I installed a fresh Raspbian, which even came with Minecraft! That was cool! Anyway, I typed lsusb and my device was listed as: ID 0cf3:1002 Atheros Communic...

Go to advanced search