Go to advanced search

by klintkrossa
Thu Aug 01, 2019 9:07 pm
Forum: Python
Topic: accessing a fifo file
Replies: 6
Views: 317

Re: accessing a fifo file

I would like to access the aprs.fifo with a quick look to see if there is new info on the file. Do you want to access it from a bash script, python script, c code etc etc? From bash the "tail" command can be used to read the last few lines of a file and the number of lines read is configurable. Rea...
by klintkrossa
Wed Jul 31, 2019 12:38 am
Forum: Python
Topic: accessing a fifo file
Replies: 6
Views: 317

accessing a fifo file

Hello I am making a fake radar. I have setup a a fifo. mkfifo -m a=rw aprs.fifo nano aprs.fifo rtl_fm -p 7.826 -f 144.390M -s 22050|multimon-ng -t raw -a AFSK1200 -f alpha -A /dev/stdin > aprs.fifo I would like to access the aprs.fifo with a quick look to see if there is new info on the file. There ...
by klintkrossa
Fri Jan 25, 2019 10:12 pm
Forum: General discussion
Topic: Are app raspberry pi PoE safe?
Replies: 6
Views: 366

Are app raspberry pi PoE safe?

I have a pi supply pipoe. I have a inline PoE extractor.
I was wondering if all raspberry pi's are PoE safe?
by klintkrossa
Sat Aug 04, 2018 4:20 am
Forum: Advanced users
Topic: Turn RPi into a python3 kiosk when usb bar-code reader is plugged in
Replies: 3
Views: 535

Re: Turn RPi into a python3 kiosk when usb bar-code reader is plugged in

Thanks for the reply

I am looking to make the scanner focus on an input for a python3 script to log the upc. That way I can log the food in and use. I was hopping that when i plug in the upc reader It would bring up the python3 script and run the logging. there is a upc look up part to the script to.
by klintkrossa
Tue Jul 31, 2018 7:57 pm
Forum: Advanced users
Topic: Turn RPi into a python3 kiosk when usb bar-code reader is plugged in
Replies: 3
Views: 535

Turn RPi into a python3 kiosk when usb bar-code reader is plugged in

Hello How to turn RPi into a python3 kiosk when usb bar-code reader is plugged in? I have the bar code reader program that I would like to test. Where I have the problem is that if the program is not running if the bar code reader reads a bar code it put it where ever the text can go. A web page wou...
by klintkrossa
Wed Apr 18, 2018 9:12 pm
Forum: Python
Topic: Help with class():
Replies: 0
Views: 168

Help with class():

Hello I have two WiFi (wlan) on one raspberry pi and would like to look up and see if another RPI WIFI is working. I came across this code and I have changed some of it. I would like to choose which WiFi (wlan) I am using with out changing the whole base code. Is there a way to make a class that wil...
by klintkrossa
Wed Apr 11, 2018 12:53 am
Forum: Python
Topic: Web page control from gpio or piface?
Replies: 6
Views: 812

Re: Web page control from gpio or piface?

Now that I have the button working. I'd use AJAX firing a CGI request (POST) for the controls from the buttons, so that you never re-direct away from the home page. #!/usr/bin/python3 # -*- coding: utf-8 -*- #imports import cgi import cgitb cgitb.enable() input_code = formdata.getfirst('input_code',...
by klintkrossa
Sun Apr 08, 2018 6:22 pm
Forum: Python
Topic: Web page control from gpio or piface?
Replies: 6
Views: 812

Re: Web page control from gpio or piface?

uggg,
LOL

I think i may have a way. i am going to have the main page update ever second or enter. Then the CGI/python3 is going to redirect to the page according to the botton.
by klintkrossa
Sun Apr 08, 2018 4:09 am
Forum: Python
Topic: Web page control from gpio or piface?
Replies: 6
Views: 812

Re: Web page control from gpio or piface?

@DougieLawson Hello, There is a lot of infomation on how to control the gpio's from a web page. I am trying to go the other way around. I hope to have 4 or more web pages, I would like to press a botton and have the only page that you can view is page 2 not page one. table: s1 s2 s3 s4 web page 0 0 ...
by klintkrossa
Sat Apr 07, 2018 1:34 am
Forum: Python
Topic: Web page control from gpio or piface?
Replies: 6
Views: 812

Web page control from gpio or piface?

Hello, It has been a while sense I have been on. All the Google searches have just been able to confuse me. Like the titles said was I would like to use an input to control a web page. I have a bunch of code to use for this in Python3. I have installed and got cgi working in apache2. Is there a way ...
by klintkrossa
Fri Apr 06, 2018 6:10 am
Forum: Beginners
Topic: Auto open browser on boot
Replies: 25
Views: 186233

Re: Auto open browser on boot

What about an if command in the .bashrc script?
by klintkrossa
Tue Oct 31, 2017 7:40 am
Forum: Other projects
Topic: teensy usb keypad
Replies: 9
Views: 1794

Re: teensy usb keypad

I have it working two problems with the Teensy code. First was that the baud rate was not to be set. second was that the key did not know what to do. here is the code that is in it now. to see if it will work. I plan to use it for other projects later on. like getting information on setting a ardren...
by klintkrossa
Mon Oct 30, 2017 5:52 pm
Forum: Other projects
Topic: teensy usb keypad
Replies: 9
Views: 1794

Re: teensy usb keypad

I have it wired up and the LEDs work once I rearranged the pin sequence properly. I am running headless so I vnc in to the RPi and open up a text editor there is no input from the key pad. The question is: Is there some driver for the RPi to make it read the Teensy in a key pad type of use? or is th...
by klintkrossa
Fri Oct 27, 2017 7:06 pm
Forum: Device Tree
Topic: Two or more RTC
Replies: 1
Views: 1071

Two or more RTC

If there is no conflict with the I2C. can there be more that one RTC?
The more PiHats are adding RTC. I think that this may be a common question, I did not find it.
by klintkrossa
Thu Oct 26, 2017 4:34 pm
Forum: Raspbian
Topic: apt-get update error
Replies: 13
Views: 38760

Re: apt-get update error

Check the Date against the UCT.!!!!!!!!! thaspius said to do this and it worked. sudo /etc/init.d/ntp stop sudo ntpd -q -g sudo /etc/init.d/ntp start on this URL https://raspberrypi.stackexchange.com/questions/8231/how-to-force-ntpd-to-update-date-time-after-boot/47346#47346?newreg=dde4730ddc5b423fb...
by klintkrossa
Thu Oct 26, 2017 2:23 am
Forum: Other projects
Topic: teensy usb keypad
Replies: 9
Views: 1794

Re: teensy usb keypad

this is the re write: /* @file EventSerialKeypad.pde || @version 1.0 || @author Alexander Brevig || @contact alexanderbrevig@gmail.com || || @description || | Demonstrates using the KeypadEvent. || # */ #include <Keypad.h> const byte ROWS = 4; //four rows const byte COLS = 4; //three columns char ke...
by klintkrossa
Wed Oct 25, 2017 6:59 pm
Forum: Other projects
Topic: teensy usb keypad
Replies: 9
Views: 1794

Re: teensy usb keypad

Hello, I was just trying to use a 4x4 keypad. I seen a game console for a online game that I thought would be fun to make, then changed my mind to 'would it be possible to make a "steam punk keyboard" for a Case Raspberry Pi'. A 4x4 pad is the best place to start. There are a lot of uses for a USB k...
by klintkrossa
Wed Oct 25, 2017 2:47 pm
Forum: Other projects
Topic: teensy usb keypad
Replies: 9
Views: 1794

teensy usb keypad

How do I setup an Arduino/Teensy USB keypad so that it works as a keypad/keyboard on a RPi? I have done a google on it there is one reference, it was saying that it was flacky at best. I thought that RPi was capable of using a PS2 keyboards?
by klintkrossa
Thu Sep 14, 2017 2:32 pm
Forum: Python
Topic: What to do with “Unexpected indent” in python 3? "while True:
Replies: 7
Views: 2746

Re: What to do with “Unexpected indent” in python 3? "while True:

I have had this problem when using a file edited in window. if you are using window to edit try edit it through Geany or python IDLE.
by klintkrossa
Thu Jun 15, 2017 2:50 pm
Forum: Automation, sensing and robotics
Topic: Make golf not war
Replies: 0
Views: 670

Make golf not war

Make golf not war Please excuse the indents the tab is not translating properly for me. Trebuchet Golf/ Medieval Golf This idea I have had for about 6+ years. It is a set of rules for allowing robots on golf courses. Why? It is for paraplegic’s/quadriplegic’s, and to excite inventers/children to bui...
by klintkrossa
Thu May 11, 2017 8:22 pm
Forum: Python
Topic: learning Python
Replies: 2
Views: 444

Re: learning Python

Hello,
I like:
Python Programming for Raspberry Pi, Sams Teach Yourself in 24 Hours (2nd Edition)
by klintkrossa
Fri Apr 28, 2017 4:07 pm
Forum: Python
Topic: Ugg timezone :<
Replies: 6
Views: 824

Re: Ugg timezone :<

If you want to try something spectacularly ill-advised that works without a reboot, take your js['time_zone'] value and stick it in the equivalent of a system call in Python. I don't know the exact syntax, nor do I care to learn, but something like: sudo ln -fs /usr/share/zoneinfo/js['time_zone'] /...
by klintkrossa
Fri Apr 28, 2017 4:03 pm
Forum: Python
Topic: imports 2 to 3
Replies: 4
Views: 726

Re: imports 2 to 3

scotty101 wrote:Python modules that are written for Python2 won't work with Python3 unless you rewrite them (or someone else has rewritten it). There is no magic command.
I though so. Now there would be a python script.
by klintkrossa
Thu Apr 27, 2017 10:15 pm
Forum: Python
Topic: imports 2 to 3
Replies: 4
Views: 726

imports 2 to 3

Hello,

Is there a way that python3.X.X able to import any python import either a python2 or python3 import?

For you guru's can it be made?

Go to advanced search