Subversion Repositories heating

Rev

Rev 5 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 5 Rev 17
Line 60... Line 60...
60
	strcpy(Configure.heatconf, "/etc/heating.d/heatconf.conf");
60
	strcpy(Configure.heatconf, "/etc/heating.d/heatconf.conf");
61
	strcpy(Configure.home, "/var/lib/heating/heating.db");
61
	strcpy(Configure.home, "/var/lib/heating/heating.db");
62
	strcpy(Configure.pidfile, "/var/run/heating.run");
62
	strcpy(Configure.pidfile, "/var/run/heating.run");
63
	strcpy(Configure.serial, "/dev/ttyAMA0");
63
	strcpy(Configure.serial, "/dev/ttyAMA0");
64
	Configure.port = 11006;
64
	Configure.port = 11006;
-
 
65
	Configure.html_port = 8080;
65
	Configure.debug = true;
66
	Configure.debug = true;
66
	enableDebug(Configure.debug);
67
	enableDebug(Configure.debug);
67
	// Try to find a config file
68
	// Try to find a config file
68
	home = getenv("HOME");
69
	home = getenv("HOME");
69
 
70
 
Line 142... Line 143...
142
			strncpy (Configure.user, hv1, sizeof(Configure.user));
143
			strncpy (Configure.user, hv1, sizeof(Configure.user));
143
 
144
 
144
		if (!compcase(hv0, "Group"))
145
		if (!compcase(hv0, "Group"))
145
			strncpy (Configure.group, hv1, sizeof(Configure.group));
146
			strncpy (Configure.group, hv1, sizeof(Configure.group));
146
 
147
 
-
 
148
		if (!compcase(hv0, "HTMLport"))
-
 
149
			Configure.html_port = atoi(hv1);
-
 
150
 
147
		if (!compcase(hv0, "HeatConf"))
151
		if (!compcase(hv0, "HeatConf"))
148
			strncpy(Configure.heatconf, hv1, sizeof(Configure.heatconf));
152
			strncpy(Configure.heatconf, hv1, sizeof(Configure.heatconf));
149
 
153
 
150
		if (!compcase(hv0, "Home"))
154
		if (!compcase(hv0, "Home"))
151
			strncpy(Configure.home, hv1, sizeof(Configure.home));
155
			strncpy(Configure.home, hv1, sizeof(Configure.home));