Go to advanced search

by David613
Thu Aug 09, 2018 4:27 am
Forum: Other projects
Topic: navigation computer
Replies: 11
Views: 6420

Re: navigation computer

I was fiddling with a similar idea for a bit, it was fairly easy to get everything set up, and at least competitive with the prices of lower end products (about 45$ for GPS chip from Adafruit, 5$ pi zero from anywhere, gpio attached screen 25-60$ depending on various qualities of the screen). The en...
by David613
Wed Aug 02, 2017 2:00 pm
Forum: Python
Topic: Clear screen and variable issues with basic Python script
Replies: 7
Views: 1813

Re: Clear screen and variable issues with basic Python script

Quotes around the variable in the if statement made raw _ input() work just fine!! Hooray!
by David613
Wed Aug 02, 2017 1:50 pm
Forum: Python
Topic: Clear screen and variable issues with basic Python script
Replies: 7
Views: 1813

Re: Clear screen and variable issues with basic Python script

Actually now print("\x1b[H\x1b[2J") seems to be working. I actually typed it in instead is cut and paste and it worked. Maybe I accidently cut a blank space at the beginning or something. The only reason I'm using Python 2 is that it's what's on my desktop at the moment, but it doesn't have internet...
by David613
Wed Aug 02, 2017 2:29 am
Forum: Python
Topic: Clear screen and variable issues with basic Python script
Replies: 7
Views: 1813

Re: Clear screen and variable issues with basic Python script

OK, so none of that worked, the print() to clear the terminal printed [2J (or whatever the last 3 characters were, I copied and pasted into the script) and then placed the next line of text over the previous so the first block was all still visible except the first line and what had been covered by ...
by David613
Tue Aug 01, 2017 7:20 pm
Forum: Python
Topic: Clear screen and variable issues with basic Python script
Replies: 7
Views: 1813

Re: Clear screen and variable issues with basic Python script

I've got Python 2.7.something on the computer I'm using, although I'm not at the computer now.
The
import OS
Clear()
Is what closed the terminal window before running the rest of what's in the block...
I'll try raw _ input, and the other clear screen method this evening when I get home!
by David613
Tue Aug 01, 2017 3:27 pm
Forum: Python
Topic: Clear screen and variable issues with basic Python script
Replies: 7
Views: 1813

Clear screen and variable issues with basic Python script

Hi all, I'm having a couple minor issues with a Python script I'm working on. It displays with the Linux terminal, not any sort of GUI. It has the basic format Choice=input(""" 1 2 3 Select """) if Choice==x: Different options based on selection The first issue I'd had is that I'd like it if the lis...
by David613
Sun Jul 02, 2017 6:42 pm
Forum: Other projects
Topic: Topographic map source?
Replies: 7
Views: 1726

Re: Topographic map source?

Actually open topo map looks pretty good, open cycle map looks OK. I had been looking at some of the usgs maps but that was getting beyond my knowledge level at this point since I'm not at all up on what data formats are used etc. I found one site that has beautiful maps with free downloads but it's...
by David613
Sun Jul 02, 2017 2:49 pm
Forum: Other projects
Topic: Topographic map source?
Replies: 7
Views: 1726

Re: Topographic map source?

Yeah, being able to use offline is a must there's not even cell phone service in many of the areas where I'd be using it.
Open topo maps looks promising, I'll see if I can get it to load in foxtrot!
David
by David613
Sun Jul 02, 2017 3:59 am
Forum: Other projects
Topic: Topographic map source?
Replies: 7
Views: 1726

Re: Topographic map source?

Oops! Yeah country would be helpful! I'm looking for the southwest region of USA. Open street maps is the default for foxtrot, but with it the areas in that I'm primarily interested in are just grey. I'm not sure about the format it uses, I either didn't see our didn't understand what I saw about th...
by David613
Sun Jul 02, 2017 12:22 am
Forum: Other projects
Topic: Topographic map source?
Replies: 7
Views: 1726

Topographic map source?

Hi all, I've been tinkering with a pi zero GPS project for quite some time now and I seem to be stuck finding a source for good topographic maps. I'm not sure the hardware is particularity important for this question but I'm using a pi zero with the adafruit ultimate GPS and some random brand HDMI 4...
by David613
Mon Jun 05, 2017 2:46 pm
Forum: Off topic discussion
Topic: Lol- The joking thread
Replies: 316
Views: 65973

Re: Lol- The joking thread

This may be more depressing than funny but I've found log entries at work that include -0 (negative zero, not indicating subtraction) and -2-1=1. It has given one of my co-workers and I some amusement deciding whether zero is positive or negative. Several, if not most of the ways to represent signe...
by David613
Sun Apr 30, 2017 4:56 pm
Forum: Troubleshooting
Topic: Gpsd with a small screen
Replies: 2
Views: 451

Re: Gpsd with a small screen

My end goal is using foxtrot GPS, I haven't tried running that yet because of download issues. In general I like cgps because it's an easy way to display info. I just don't understand the display issue it's having, this may not be completely accurate because it's off the top of my head but the scree...
by David613
Sun Apr 30, 2017 4:17 pm
Forum: Troubleshooting
Topic: Gpsd with a small screen
Replies: 2
Views: 451

Gpsd with a small screen

Hi all, I've been working on a GPS project and run into an issue. I've got the adafruit ultimate GPS running on a pi zero through gpsd with no trouble over SSH, but when I tried the same setup using the adafruit 2.8"pitft screen and call cgps it says "your screen must be at least 80x10 to run cgps"....
by David613
Thu Mar 09, 2017 4:02 pm
Forum: Python
Topic: Stop Python script at shutdown
Replies: 3
Views: 1041

Stop Python script at shutdown

Hi all, I've written a small Python script to set some LEDs based on CPU load and temp, using the blinkit led strip. It works well but when I shut the system down the LEDs stay on. I think what needs to happen is it should be told that the sys is shutting down and run the clear() and show() function...
by David613
Mon Feb 06, 2017 4:11 pm
Forum: Beginners
Topic: Network permissions for folders
Replies: 0
Views: 223

Network permissions for folders

Hi all, I've been trying of and on to get things set so that I can have read write access to a headless pi via wifi. I don't have any trouble with ssh,i can read and write as expected. But when i open a folder on the pi from my desktop it will not allow me to create or edit any files. I can copy and...
by David613
Mon Jan 30, 2017 6:11 am
Forum: General discussion
Topic: HDD boot pi 3
Replies: 2
Views: 830

Re: HDD boot pi 3

Huh I'd missed that one in my searches, probably because I was including Ubuntu. I was also wondering if it should be at least theoretically possible to write the full file sys to HDD add then just use a small SD with a fresh image of the same OS with the edited cmdline.txt & /etc/fstab. I know I'm ...
by David613
Mon Jan 30, 2017 4:07 am
Forum: General discussion
Topic: HDD boot pi 3
Replies: 2
Views: 830

HDD boot pi 3

Hi all, I'm slowly working on the second incarnation of my pi laptop and I've been thinking about setting it up to boot from a WD pi drive. I know this has been well documented for Raspbian but I've been using Ubuntu for about a year on the current version of my pi laptop. What I'd like to be able t...
by David613
Mon Oct 31, 2016 1:56 am
Forum: Other programming languages
Topic: Time parameter in bash?
Replies: 2
Views: 865

Re: Time parameter in bash?

I haven't gotten around to trying the code suggested, but while I was working on my calculus homework a solution popped into my head that seems to work well #!/bin/bash #H=$(date +%H) #if (( 16 <= $H < 17 )) # then # redshift -O 3500K #if (( 18 <= $H )) # then # redshift -O 3000K #fi redshift -O $(e...
by David613
Fri Oct 28, 2016 4:22 am
Forum: Other programming languages
Topic: Time parameter in bash?
Replies: 2
Views: 865

Time parameter in bash?

Hi all, I know my application is not on a pi (I haven't been able to get redshift or alternative to work on the pi :( ). But I think the function I'm hoping for would still have use on a pi, or anything else for that matter. What I'm trying to do is run redshift with different parameters for a few h...
by David613
Thu Oct 27, 2016 9:04 pm
Forum: Off topic discussion
Topic: Lol- The joking thread
Replies: 316
Views: 65973

Re: Lol- The joking thread

rurwin wrote:I hate all those misuses of the English language, but the one that throws me way off is when a young man is said to put his arm lovingly around his sweetheart's waste.


I know that one is old. But I still have to say, that's disgusting. Hope he took a shower
by David613
Thu Oct 27, 2016 1:30 am
Forum: Off topic discussion
Topic: Why are 4-6" capacitive screens unavailable at any price?
Replies: 4
Views: 1310

Re: Why are 4-6" capacitive screens unavailable at any price

Not sure if there's still interest in this, but adafruit has at least 4 5"and 1 4.3" touch screens, I didn't check to see if they're specifically capacitive or not. There seemed pricey to me at $85+ for some of the five inch screens. Occasionally I've found similar items on some of the more"bare" pa...
by David613
Thu Oct 27, 2016 12:55 am
Forum: Off topic discussion
Topic: What role did Rpi play in "Mr Robot"?
Replies: 17
Views: 2686

Re: What role did Rpi play in "Mr Robot"?

I think I'm too young to have seen that video / public information film. It was made when I was two years old. (I'm a mere youth at 53 years old.) I remember the nonsense Gov't propaganda "Protect & Survive" booklet (from 1980) that told us to whitewash the windows and hide under our dinning table....
by David613
Thu Oct 27, 2016 12:42 am
Forum: Off topic discussion
Topic: Calculate Pi in the Command Line
Replies: 22
Views: 15272

Re: Calculate Pi in the Command Line

And because I'm avoiding my calculus homework, scale=1500; 16*a(1/5)-4*a(1/239)
Linux mint 17.2 AMD X4 860K
real 0m0. 424s

And Raspbian pi zero
real 0m3.271s

scale=15000; 16*a(1/5)-4*a(1/239)
Linux mint 17.2 AMD X4 860K
real 1m45.601s
by David613
Wed Oct 26, 2016 11:45 pm
Forum: Off topic discussion
Topic: Calculate Pi in the Command Line
Replies: 22
Views: 15272

Re: Calculate Pi in the Command Line

Just because I had to try, with scale=1500; 4*a(1)
Linux mint 17.2 AMD X4 860K
real 0m1.116s

And Raspbian pi zero
real 0m7.951s
by David613
Wed Oct 26, 2016 10:49 pm
Forum: Off topic discussion
Topic: Lol- The joking thread
Replies: 316
Views: 65973

Re: Lol- The joking thread

This may be more depressing than funny but I've found log entries at work that include -0 (negative zero, not indicating subtraction) and -2-1=1. It has given one of my co-workers and I some amusement deciding whether zero is positive or negative.

Go to advanced search