Proxy Usage

HAMweather needs to be able to connect to the NWS servers so that it can get the latest weather information.  When HAMweather is used on an intranet you may need to perform this connection using a proxy server.  HAMweather now has basic proxy server support.   You can set the proxy servers name (or IP address) and port it is listening on.   However, HAMweather does not support proxy servers that require a username/password authorization.

Poxy Usage : Setup

To set up the proxy server settings, goto the web based admin, click the 'System Settings' link.  Then you can enter the proxy server address or IP.  It may look similiar to: proxy.your domain.com.

Under this setting you can set the proxy port number.  This is the port number that your proxy server is listening on.  This is usually something similiar to '80' or '8080'. 

Note: If you do not have a proxy server you should  set the port number to '80';

Alternatively if you do not want ot use the web based admin you can make a couple modifications to the hwconfig.txt file. 

In this file look for the lines that looks similar to:

$proxy_server = '';
$port = 80;

If the $proxy_server variable is left blank then HAMweather will not use a proxy server, but if set to either the proxy server name or IP address it will then use the proxy server when fetching the weather data. The $port variable is used to set the port that the proxy server is listening on.

To set up HAMweather to work with a proxy server at proxy.yourdomain.com that is listenign on port 80 then you would use the following settings:

$proxy_server = 'proxy.yourdomain.com';
$port = 80;

Another example would be to set HAMweather to use a proxy at the IP addres 123.123.123.123 listening on port 8080 you would use the following settings:

$proxy_server = '123.123.123.123;
$port = 8080;

If you need to stop using proxy support simply set $proxy_server to a blank string as follows:

$proxy_server = '';
$port = 80;