Go to advanced search

by n6vmo
Thu Sep 20, 2018 7:38 pm
Forum: Networking and servers
Topic: RPi OpenVPN server and ipvanish
Replies: 0
Views: 1004

RPi OpenVPN server and ipvanish

My cable modem is operating in bridge mode and I have a Netgear AC1900 running DD-WRT that automatically establishes and maintains an OpenVPN tunnel to IPvanish upon boot. This works great, as all my equipment on the network use this IPvanish tunnel. When I travel, I want to establish a VPN tunnel t...
by n6vmo
Thu Sep 07, 2017 12:45 am
Forum: Networking and servers
Topic: Help configuring my Pi OpenElec to use my Pi OpenVPN server.
Replies: 1
Views: 533

Help configuring my Pi OpenElec to use my Pi OpenVPN server.

I have a Pi3 running as an OpenVPN server and would like to have my other OpenElec Pi3 use this VPN server. There are plenty of instructions out there to install OpenVPN on the OpenElec Pi box, but they all show how to use the VPN servers in the 'canned' list of VPN servers. I need to point the Open...
by n6vmo
Thu May 18, 2017 10:00 am
Forum: Beginners
Topic: Need this to run at boot.....
Replies: 4
Views: 729

Re: Need this to run at boot.....

RaTTuS wrote:are these running jessie ?
if so write a systemd.service

if you want to do a quick hack then stuff the commands into /etc/rc.local [this is not the way to do it as you will get issues]
Yes, both of these machines are running jessie. I am looking into writing a systemd.service.
by n6vmo
Wed May 17, 2017 6:42 am
Forum: Beginners
Topic: Need this to run at boot.....
Replies: 4
Views: 729

Need this to run at boot.....

I need this 'netcat' command to run at boot:

nc 192.168.xxx.xxx 30002 | nc 192.168.xxx.xxx 30001

Both these RPi's are located on remote mountain tops. I need to get it right and not lock anything up, or it is a long trip to correct it.

Thanks,

John
by n6vmo
Thu May 04, 2017 1:39 pm
Forum: Other projects
Topic: Sharing ADS-B data
Replies: 2
Views: 1708

Sharing ADS-B data

Hello, As an experiment, I am looking for a couple ADS-B receivers, located anywhere outside California to send their dump1090 ADS-B data with my receiver or for me to send my ADS-B data to your receiver. I have been experimenting with dump1090's built-in ADSBHUB function and find it can be useful i...
by n6vmo
Sat Nov 21, 2015 1:51 am
Forum: Troubleshooting
Topic: RPi 2 won't install fbi (framebuffer imageviewer)
Replies: 3
Views: 2061

Re: RPi 2 won't install fbi (framebuffer imageviewer)

I get the same response....

pi@raspberrypiII ~ $ sudo apt-get update
Err http://raspberrypi.collabora.com wheezy Release.gpg
Something wicked happened resolving 'raspberrypi.collabora.com:http' (-5 - No address associated with hostname)
by n6vmo
Sat Nov 21, 2015 1:05 am
Forum: Troubleshooting
Topic: RPi 2 won't install fbi (framebuffer imageviewer)
Replies: 3
Views: 2061

RPi 2 won't install fbi (framebuffer imageviewer)

I am trying to setup my RPi2 as a video kiosk, but it won't let me install fbi (framebuffer imageviewer). The current OS is 2015-05-05-raspbian-wheezy. I can successfully install fbi on my two RPi B+ machines. Thanks. John Here is the results of my attempts: pi@raspberrypiII ~ $ sudo apt-get install...
by n6vmo
Sat Jun 27, 2015 8:25 pm
Forum: Python
Topic: Parse data from serial port
Replies: 4
Views: 2660

Re: Parse data from serial port

Yup, use readline(). Also check that the line starts with '!!' in case you start reading in the middle of a line. Yes, I need to parse for the header '!!'. The Ultimeter send the header, data and then a carriage return and linefeed. port.readline() starts in the middle of the line. Is there a way t...
by n6vmo
Sat Jun 27, 2015 3:37 pm
Forum: Python
Topic: Parse data from serial port
Replies: 4
Views: 2660

Parse data from serial port

Hello, I am trying to parse data from my Peet Brothers Ultimeter 100 weather station. The 48 byte data stream is automatically provided via the U100 serial port and is output 20 times a minute at 2400 baud, 8/N/1. Each 4 bytes of data, after the header, consists of wind-speed, direction, temperature...
by n6vmo
Thu Oct 30, 2014 12:38 pm
Forum: Troubleshooting
Topic: Executing a Python program at boot
Replies: 8
Views: 1350

Re: Executing a Python program at boot

Got it working by placing the tbolt.sh script in /usr/sbin instead of /usr/bin. Then modify rc.local to point to /usr/sbin.

The Python program starts at boot and continuously updates the html text file.

Thanks everyone.
by n6vmo
Wed Oct 29, 2014 10:21 pm
Forum: Troubleshooting
Topic: Executing a Python program at boot
Replies: 8
Views: 1350

Re: Executing a Python program at boot

Maybe the code would help. Because you have 2 choices : an inifinite loop in your python code, or setup a 3 seconds cron job. EDIT : you can also check if your script is still alive with : ps aux | grep tbolthtml4.py by doing this you'll be sure whether the code is faulty or is just runned once. Th...
by n6vmo
Wed Oct 29, 2014 6:49 pm
Forum: Troubleshooting
Topic: Executing a Python program at boot
Replies: 8
Views: 1350

Re: Executing a Python program at boot

Maybe the code would help. Because you have 2 choices : an inifinite loop in your python code, or setup a 3 seconds cron job. EDIT : you can also check if your script is still alive with : ps aux | grep tbolthtml4.py by doing this you'll be sure whether the code is faulty or is just runned once. Th...
by n6vmo
Wed Oct 29, 2014 12:35 am
Forum: Troubleshooting
Topic: Executing a Python program at boot
Replies: 8
Views: 1350

Re: Executing a Python program at boot

Are you confident in your html code? IMO you have to have javascript to get it running... Javascript is supposed to refresh the browser's window. You're demand is vague, you should post the python code if you want more help... I should have clarified better, I manually have to refresh the browser t...
by n6vmo
Tue Oct 28, 2014 12:43 pm
Forum: Troubleshooting
Topic: Executing a Python program at boot
Replies: 8
Views: 1350

Executing a Python program at boot

The Python program displays text to a browser window and updates the text every 3 seconds. But, when I try to have the program run at boot, it runs once, displays the text and stops. Here is what I have in rc.local: #!/bin/sh -e # # rc.local # # Auto run our application sudo tbolt.sh & Here is my .s...
by n6vmo
Sun Oct 26, 2014 1:34 pm
Forum: Python
Topic: Text file to HTML
Replies: 2
Views: 778

Text file to HTML

My project is coming along fine, thanks to the help I have received here. The project can display data to a terminal window, now its time to get this same data onto a web page. The text file saved is defined above as 'filename3', saved as 'latitude' and contains 'lat' text data. I want to have this ...
by n6vmo
Fri Oct 24, 2014 9:22 pm
Forum: Python
Topic: 32 bit math to determine Radians
Replies: 6
Views: 1401

Re: 32 bit math to determine Radians

I want to thank everyone for their help.

The project is coming along and the math is working.

John
by n6vmo
Thu Oct 09, 2014 1:56 am
Forum: Python
Topic: 32 bit math to determine Radians
Replies: 6
Views: 1401

Re: 32 bit math to determine Radians

Thanks jojopi, your code works great. print struct.unpack(">d", "\x3f\xe3\x58\x63\x28\xf9\x7e\xd5")[0] * 180/math.pi print struct.unpack(">d", "\xc0\x00\xd1\xa6\xddK\x94\x9e")[0] * 180/math.pi They are really 64 bit FP. Now I just have to learn how to parse the bytes from the text file dump and plug...
by n6vmo
Wed Oct 08, 2014 8:23 pm
Forum: Python
Topic: 32 bit math to determine Radians
Replies: 6
Views: 1401

32 bit math to determine Radians

0x3fe35555
0xc000d1a6

I need to convert the hex data above into a radian using 32 bit floating point math.
Then convert the radian to degrees and obtain a latitude and longitude.

Is there a math function that performs 32 bit FP?
by n6vmo
Wed Oct 08, 2014 8:16 pm
Forum: Python
Topic: Parsing a text file
Replies: 3
Views: 699

Re: Parsing a text file

Thanks joan and Paddyg.

I am on the right path now.
by n6vmo
Tue Oct 07, 2014 9:25 pm
Forum: Python
Topic: Parsing a text file
Replies: 3
Views: 699

Parsing a text file

I have a text file of data and need to examine different fields/elements in the file. How do I parse the data?

Here is an example of the text file:

\x10\x8f\xac\x07\x00\x00\x00\x00\x01\x1a\x00\x00\x02\x00\x00\x00\x00\x00\xc4\

I need to examine and then manipulate the data in bold above.
by n6vmo
Tue Oct 07, 2014 7:26 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Erroneous characters from UART
Replies: 4
Views: 1336

Re: Erroneous characters from UART

Hi joan, Thanks for the reply. The GPSDO outputs 68 2x4 bit pieces of data. '\x10\x8f\xac\x07\x00\x00\x00\x00\x01\x1a\x00\x00\x02\x00\x00\x00\x00\x00\xc4\ x8fh \ xe0@ \ xa7P \xf0\x00\x08\x83\x80>\xa4`\ x00A \xfd\xd7\xe5?\ xe3Xc( \ xf9~ \xd5\xc0\x00\xd1 xa6\ xddK \x94\ x9e? \xfc\xd3\x96\ xd7@ \x00\x0...
by n6vmo
Tue Oct 07, 2014 6:26 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Erroneous characters from UART
Replies: 4
Views: 1336

Erroneous characters from UART

I am trying to interface my RPi to a Trimble Thunderbolt GPS disciplined oscillator using the serial port. However, when I receive the 68 bytes of data, some are randomly corrupted. See sample capture below: '\x10\x8f\xac\x07\x00\x00\x00\x00\x01\x1a\x00\x00\x02\x00\x00\x00\x00\x00\xc4\x8fh \xe0@\xa7...
by n6vmo
Mon Mar 17, 2014 3:32 am
Forum: Python
Topic: Help with subprocess.call error
Replies: 3
Views: 2631

Re: Help with subprocess.call error

Seperate your arguments. ie. subprocess.call("curl", "-u", "username:password", "etc") Dave This format worked, except I had to turn off the authentication on the camera server for LAN access only. Not a problem inside my LAN, because this is where the RPi will do its work. The WAN authentication r...
by n6vmo
Sat Mar 15, 2014 1:58 am
Forum: Python
Topic: Help with subprocess.call error
Replies: 3
Views: 2631

Help with subprocess.call error

Hello, I want to have my RPi detect a signal for a PIR sensor and send an http command to my security system and trigger cameras. #!/usr/bin/python import RPi.GPIO as GPIO import subprocess GPIO.setwarnings(False) GPIO.setmode(GPIO.BCM) # Note - using the BCM naming method GPIO.setup(7, GPIO.IN) # P...

Go to advanced search