Radarspotters Forum
September 06, 2010, 11:01:56 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length

x-click-but21.gif

News: BASESTATION IN 3D  SBS-RESOURCES 6.1  VOLUNTEERS WANTED
 
   Home   Help Contact Login Register RS Mainpage custom Outlines  

ADVERTISE ON RADARSPOTTERS

Pages: [1]   Go Down
  Print  
Author
[NO] [CZ] [PL] [ES] [PT] [IT] [DE] [FR] [NL] [TR] [AR] [RU]
Topic: Script help for Ui-view (APRS) -SBS...  (Read 297 times)
0 Members and 1 Guest are viewing this topic.
IT9YBG
Sqn Ldr
*



Reputation +50/-0
Offline Offline

Date Registerd:December 03, 2009, 12:07:21 PM
Posts: 38


WWW
« on: December 21, 2009, 03:58:13 PM »

Hello, someone is in possession of the script for the program Ui-view (APRS) that shows the aircraft received by SBS as is shown in this photo?

http://www.tech-software.net/sbs1_aprs.jpg

Thank's...


* sbs1_aprs.jpg (388.17 KB, 1684x1020 - viewed 64 times.)
Logged
IT9YBG
Sqn Ldr
*



Reputation +50/-0
Offline Offline

Date Registerd:December 03, 2009, 12:07:21 PM
Posts: 38


WWW
« Reply #1 on: February 05, 2010, 04:06:58 AM »

Anyone can help me?  Lips Sealed
Logged
Hamish McTorsk
Administrator
MRAF
*


Sláinte Mhath
*
*
*

Reputation +3945/-8
Offline Offline

Date Registerd:March 05, 2009, 01:00:00 AM
Posts: 3017


« Reply #2 on: February 05, 2010, 04:58:59 AM »

Sorry, I cant, but you have been very patient before asking again, I am sure someone will be able to help you.
Logged

Cha d'dhuin dorus nach d'fhosgail dorus
Radarspotters Needs Your Support
Hamish McTorsk
Administrator
MRAF
*


Sláinte Mhath
*
*
*

Reputation +3945/-8
Offline Offline

Date Registerd:March 05, 2009, 01:00:00 AM
Posts: 3017


« Reply #3 on: February 05, 2010, 07:20:46 AM »

Is this what you are looking for ??

Code:
import tailer
# Get the last line of the EasyWeater.dat file
# This is a little strange - line[1] holds the data
line = tailer.tail(open('c:\Weather\NewWeather\EasyWeather.dat'), 1)

# f = open('c:\Weather\NewWeather\EasyWeather.las', 'w')
# f.write(line[1])
# f.close()

i=0
for value in line[1].split(','):
    if i == 2:
       stamp = value.strip()
    if i == 6:
       humidity = value.strip()
    if i == 7:
       temperature = value.strip()
    if i == 11:
       pressure = value.strip()
    if i == 12:
       wind_speed = value.strip()
    if i == 14:
       gust = value.strip()
    if i == 16:
       wind_dir = value.strip()
    if i == 21:
       rain_h = value.strip()
    if i == 22:
       rain_d = value.strip()
    i = i + 1

# Constuct timestamp
# Uses current date as that is easier. This could result in an error near midnight
# but UIView should reject that record.
from datetime import date
now = date.today()
stamp_date = now.strftime("%b %d %Y")
stamp_time = stamp[11:16]
UIView_stamp = stamp_date+" "+stamp_time

# Wind direction (convert from 0 - 15 to degrees)
wind = float(wind_dir)
wind = int((wind * 22.5) + 0.5)
wind_dir = str(wind)
wind_dir = wind_dir.zfill(3)

# Wind speed (convert meters/sec to mph)
speed = float(wind_speed)
speed = int((speed * 2.2369) + 0.5)
wind_speed = str(speed)
wind_speed = wind_speed.zfill(3)

# Gust speed (convert meters/sec to mph)
speed = float(gust)
speed = int((speed * 2.2369) + 0.5)
gust  = str(speed)
gust  = gust.zfill(3)

# Temperature (convert C to F)
temp = float(temperature)
temp = int((temp * 9 / 5) + 32.5)
temperature = str(temp)
temperature = temperature.zfill(3)

# Pressure
press = float(pressure)
press = press * 10
press = int(press)
pressure = str(press)

# Rain last hour (convert mm to 1/100 inch)
rain = float(rain_h)
rain = (rain * 3.937) + 0.5
rain = int(rain)
rain_h = str(rain)
rain_h = rain_h.zfill(3)
# Now set it to ... anyway because of the EasyWeather bug
rain_h = '...'

# Rain last 24 hours (convert mm to 1/100 inch)
rain = float(rain_d)
rain = (rain * 3.937) + 0.5
rain = int(rain)
rain_d = str(rain)
rain_d = rain_d.zfill(3)
# Now set it to ... anyway because of the EasyWeather bug
rain_d = '...'

f = open('c:\Weather\NewWeather\wx_ext.txt', 'w')

f.write(UIView_stamp+'\n')

second_line = wind_dir.zfill(3)+'/'+wind_speed+'g'+gust+'t'+temperature+'r'+rain_h+'p'+rain_d+'P...h'+humidity.zfill(2)+ 'b'+ pressure.zfill(5)
f.write(second_line)

f.close()
Logged

Cha d'dhuin dorus nach d'fhosgail dorus
Radarspotters Needs Your Support
IT9YBG
Sqn Ldr
*



Reputation +50/-0
Offline Offline

Date Registerd:December 03, 2009, 12:07:21 PM
Posts: 38


WWW
« Reply #4 on: February 05, 2010, 07:26:42 AM »

I do not know if this is it. I try to do a script to talk Ui-view with SBS-1. I try to understand how it works, but by the content that I read I think not. Thanks anyway
« Last Edit: February 05, 2010, 07:32:46 AM by IT9YBG » Logged
junglejet
Gp Capt
*

*

Reputation +429/-4
Offline Offline

Date Registerd:March 20, 2009, 10:52:47 PM
Posts: 251


« Reply #5 on: February 05, 2010, 08:08:43 AM »

Try VK4TEC on the Kinetic forum, he is the author.
Logged

3NM - a very good friend of Boris

ADVERTISE ON RADARSPOTTERS

Pages: [1]   Go Up
  Print  
 
Jump to:  

Locations of visitors to this page
Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!