Credits


Thanks to all the people who have helped me getting this server to what it is now. I couldn’t have done it without these people:

Greg Ament
John Eisenhour
Jason Grooms
Joe Jurecka
David Kings
Mladen Kmetic
Lyndon Nerenberg

And ofcourse:

All server operators
All people who sent me bug reports
All members of the SB/PC beta mailing list
All members of the FSFAN team Dordrecht
Marty Bochane

METAR information in metar.txt


In the file metar.txt the downloaded metar information from the NOAA server is written. When the file is smaller then 1 MB the file is rejected and no new information is saved. A regular file size is approx. 1.5 MB +

In several circumstances the NOAA server won’t let you download the metar data. You may want to ftp yourself to 205.156.51.233

You can easily check the date/time of refreshment with Windows explorer or opening the log.txt file. If there is no refreshment, change the name of the server=weather.apollo3.com
You must have an IP address in hostname=

Some sample lines:

2013/06/25 08:45
K5SM 250845Z AUTO 00000KT 7SM CLR 10/M05 A3028 RMK AO2 TSNO

2013/06/25 08:45
K5SM 250845Z AUTO 00000KT 7SM CLR 10/M05 A3028 RMK AO2 TSNO

2013/06/25 09:35
KBBF 250935Z AUTO 20019KT 10SM FEW017 SCT022 BKN040 29/25 A2998 RMK A01

2013/06/25 09:35
KEMK 250935Z AUTO 16016KT 9SM CLR 28/24 A3003 RMK A01

2013/06/25 09:35
KBBF 250935Z AUTO 20019KT 10SM FEW017 SCT022 BKN040 29/25 A2998 RMK A01

Done. Get back here for Windows and here for Linux.

Logging the server activities: log.txt


In the file log.txt the activities of the FSD server are logged. See the sample below. You can deleted an existing log file. It will be replaced automatically when the server is started.

OK? Get back here.

12-01-2013 09:56:32 : Booting server
12-01-2013 09:56:32 FSD01: Reading certificates from ‘cert.txt’
12-01-2013 09:56:32 FSD01: Booting port 6809 (client interface)
12-01-2013 09:56:32 FSD01: Booting port 3011 (server interface)
12-01-2013 09:56:32 FSD01: Booting port 3010 (system management interface)
12-01-2013 09:56:33 FSD01: ** Connection to 111.111.111.111 port 3011 failed!
12-01-2013 09:56:33 FSD01: We are up
12-01-2013 09:56:34 FSD01: Reading certificates from ‘cert.txt’
12-01-2013 09:56:35 FSD01: METAR: Starting download of METAR data
12-01-2013 09:56:42 FSD01: METAR: Installed new METAR data.
12-01-2013 10:10:01 FSD01: METAR: Starting download of METAR data
12-01-2013 10:10:07 FSD01: METAR: Installed new METAR data.

FSD configuration file: fsd.conf


################################################################
# Sample configuration file for FSD
# Attention : WINDOWS-format : required CR in this file!
# Use Notepad++ or Notepad for changes.
################################################################

# The [system group] holds information about your server.
# The ports where clients and servers will connect to are:
# [system]
# clientport=6809
# serverport=3011
# The port where the system management services will be located
# systemport=3010

# ident=FSD01
# The ident of your server. This ident has to be unique. It is used to
# identify your server in the global network. It should not contain spaces.
# Please use a small ident code, it will be sent in every packet

# email=yourname@yourhost.com
# The email address that can be used to mail the maintainer of this server.

# name=FSD Windows server
# The name(description) of your server. It may contain spaces.

# hostname=localhost
# The hostname that can be used to reach this server.

# password=disable
# The password you need to specify before you can execute privileged
# commands on the system port.

# location=City Country
# The (physical) location of the server in the world, and the internet.
# Example: ‘Amsterdam, The netherlands’

# mode=normal
# The mode of the server; can be ‘normal’ or ‘silent’. Use ‘normal’
# for normal operation.

# certificates=cert.txt
# The file to read certificates from.

# maxclients=100
# The maximum amount of clients this server will allow.

# whazzup=whazzup.txt
# The file to put WhazzUp data in.

################################################################
# The [connections] group holds information about the (server) connections that the
# server will establish and accept.
#
# connectto=
# Contains the hostname and port numbers of the servers to connect to.
# Multiple servers can be used here. For example:
# connectto=server.flightsim.com:4006
# allowfrom=
# Contains the IP addresses from which servers can connect to this server.
# Multiple IP addresses can be used, separated by commas. For example:
# allowfrom=server.flightsim.com,atc.aol.com

################################################################
# The [hosts] group contains a list of hosts that are trusted for some activity.
# There are 2 entries:
# certificates= contains a list of server ID’s that are allowed to change
# weather=  contains a list of server ID’s that are allowed to change weather profiles

################################################################
# This group [weather] controls the weather system.
# The ‘source’ variable determines the source of the METAR data.
# For normal operation, set this to ‘network’.
# There are 3 possible values here:
# ‘file’ : Read the METAR data from the file ‘metar.txt’
# and allow weather requests from other servers.
# ‘download’ : Like ‘file’, but refresh metar.txt every hour by downloading
# the latest weather observations from metlab. The server has
# to be connected to the internet for this to work.
# ‘network’ : Relay weather requests to the closest METAR capable server.
#
# ‘server’,’dir’ and ‘ftpmode’ are only used when the METAR source is ‘download’. These
# fields determine the host name and the directory from where metar data is
# read. FSD uses the FTP protocol to get the data. ftpmode can have the value ‘active’
# ‘passive’ that are Active and Passive FTP protocol mode, default is ‘passive’.
# If you use FSD on a computer having a private IP, only use passive mode.

In fact this is all that remains after removing the text above. When done and understood, get back here for Windows and here for Linux.

[system]
clientport=6809
serverport=3011
systemport=3010
ident=FSD01
email=yourname@yourhost.com
name=FSD Windows server
hostname=localhost
password=disable
location=City Country
mode=normal
certificates=cert.txt
maxclients=200
whazzup=c:whazzup.txt
[connections]
#connectto=
#allowfrom=
[hosts]
#certificates=
weather=http://weather.noaa.gov/cgi-bin/mgetmetar.pl
[weather]
source=download
server=tgftp.nws.noaa.gov
dir=data/observations/metar/cycles/
ftpmode=passive