gautrais 4 years ago
parent
commit
ab668b95f5
2 changed files with 4 additions and 30 deletions
  1. 4 3
      config.c
  2. 0 27
      config.cfg

+ 4 - 3
config.c

@@ -1,5 +1,6 @@
 #include "config.h"
 
+
 void config_load_default(config_t *cfg)
 {
 	config_add_int(cfg, "pin.data", 2); 
@@ -13,8 +14,8 @@ void config_load_default(config_t *cfg)
 	config_add_string(cfg, "mount.file", "192.168.0.88");
 	config_add_string(cfg, "mount.src", "//192.168.0.88/nas");
 	config_add_string(cfg, "mount.dst", "/media/nas");
-	config_add_string(cfg, "mount.username", "ptitcois");
-	config_add_string(cfg, "mount.password", "e1010898");
+	config_add_string(cfg, "mount.username", "your user");
+	config_add_string(cfg, "mount.password", "your password");
 	
 	config_add_string(cfg, "storage.location", "/media/samba");
 	config_add_string(cfg, "storage.data", "data");
@@ -22,7 +23,7 @@ void config_load_default(config_t *cfg)
 	config_add_string(cfg, "storage.monthes", "monthes");
 	config_add_string(cfg, "storage.days", "days");
 	
-	config_add_string(cfg, "misc.pidfile", "/tmp/compteur_elec.cache");
+	config_add_string(cfg, "misc.pidfile", "/tmp/compteur_elec.pid");
 }
 
 opt_t* _config_get(config_t* cfg, const char* name)

+ 0 - 27
config.cfg

@@ -1,27 +0,0 @@
-#pins
-pin.data=2;
-pin.clk = 3;   
-pin.ack= 4;
-
-#cache
-#en secondes
-cache.flush_interval = 86400; # 1 journee
-cache.file="/tmp/compteur_elec.cache";
-
-#Samba mount
-mount=1;
-mount.ip="192.168.1.2";
-mount.src="//192.168.1.2/Partage coloc/fanch/compteur";
-mount.dst="/media/samba";
-mount.username="re";
-mount.password="mi";
-
-#storage
-storage.location="/media/test";
-storage.data="data";
-storage.years="years";
-storage.monthes="monthes";
-storage.days="days";
-
-
-misc.pidfile="/tmp/compteur_elec.pid";