Browse Source

[issue #25] rajout du fichier de configuration par défaut

Maxime Alves LIRMM@home 3 years ago
parent
commit
5a3d3202ef
2 changed files with 26 additions and 1 deletions
  1. 1
    1
      config/pre-exec.sh
  2. 25
    0
      config/pyheatpump.prod.ini.dist

+ 1
- 1
config/pre-exec.sh View File

@@ -11,5 +11,5 @@ sqlite3 -init /opt/pyHeatpump/pyheatpump.sql /var/run/pyheatpump/pyheatpump.sqli
11 11
     || (echo "Failed to initialize database" && exit 1);
12 12
 
13 13
 # Default configuration setup
14
-cp /opt/pyHeatpump/pyheatpump.ini /var/run/pyheatpump/pyheatpump.ini \
14
+cp /opt/pyHeatpump/config/pyheatpump.prod.ini.dist /var/run/pyheatpump/pyheatpump.ini \
15 15
     || (echo "Failed to initialized configuration file" && exit 1);

+ 25
- 0
config/pyheatpump.prod.ini.dist View File

@@ -0,0 +1,25 @@
1
+[heatpump]
2
+serial_port = /dev/rs485
3
+baudrate = 19200
4
+mac_address = None
5
+ip_address = dhcp
6
+read_only = True
7
+database = /run/pyheatpump/pyheatpump.sqlite3
8
+
9
+[supervisor]
10
+scheme = https
11
+host = supervision.gteo.fr
12
+port = 8081
13
+certificate = None
14
+get_path = /Symfony/web/app_dev.php/boardws/orders
15
+post_path = /Symfony/web/app_dev.php/boardws/insert
16
+interval = 10000
17
+auth = None
18
+initialization = None
19
+heatpump_id = None
20
+last_update = 0
21
+
22
+[api]
23
+host = 127.0.0.1
24
+port = 8008
25
+

Loading…
Cancel
Save