set { _min_button_height = set_int("min_button_height", value); }
}
+ private string _gpsd_host;
+ public string gpsd_host
+ {
+ get { return _gpsd_host; }
+ set { _gpsd_host = set_string("gpsd_host", value); }
+ }
+
+ private string _gpsd_port;
+ public string gpsd_port
+ {
+ get { return _gpsd_port; }
+ set { _gpsd_port = set_string("gpsd_port", value); }
+ }
+
private string _gprs_apn;
public string gprs_apn
{
_homedir = get_string("homedir");
_icondir = get_string("icondir");
_min_button_height = get_int("min_button_height");
+ _gpsd_host = get_string("gpsd_host");
+ _gpsd_port = get_string("gpsd_port");
_gprs_apn = get_string("gprs_apn");
_gprs_user = get_string("gprs_user");
_gprs_pass = get_string("gprs_pass");
if (icondir == null)
icondir = "/usr/share/zavai/icons";
min_button_height = 80;
+ gpsd_host = "localhost";
+ gpsd_port = "gpsd";
gprs_apn = "general.t-mobile.uk";
gprs_user = "x";
gprs_pass = "x";
return;
}
- int res = libgps.open_r("localhost", "gpsd", ref data);
+ zavai.log.info("Connecting to gpsd at " + config.gpsd_host + ":" + config.gpsd_port);
+ int res = libgps.open_r(config.gpsd_host, config.gpsd_port, ref data);
if (res != 0)
{
zavai.log.error(libgps.errstr(res));