forked from domoblog/comptage-eau-eedomus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
parametres.php
64 lines (57 loc) · 2.21 KB
/
parametres.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
<?php
/*************************************************************************************/
/* ### Report conso d'eau eedomus SQL V1.0 ### */
/* */
/* Developpement par [email protected] */
/* */
/*************************************************************************************/
//*************************************** API eedomus *********************************
// Identifiants de l'API eeDomus
$api_user = "CollezVotreApiUserEedomus";
$api_secret = "CollezVotreCleApiEedomus";
//*************************************** Param network *******************************
//@IP eedomus
$IPeedomus="AdresseIpBoxEedomus";
//server MySQL
$server='localhost';
//MySQL login
$sqllogin='IndiquezLeCompteSQL';
//MySQL password
$sqlpass='IndiquezLeMotDePasseSQL';
//*************************************** codes api couts eau *************************
//numero du peripherique relevé hebdo
$periph_hebdo=11111;
//numero du peripherique relevé mensuel
$periph_mensuel=22222;
//numero du peripherique relevé annuel
$periph_annuel=33333;
//*************************************** codes api m3 eau ****************************
//hebdo m3
$periph_annuel=44444;
//hebdo m3
$periph_hebdom3=55555;
//mensuel m3
$periph_mensuelm3=66666;
//annuel m3
$periph_annuelm3=77777;
//*************************************** codes api relevé eau *************************
//numero du peripherique de relevé d'eau
$periph_rlv_elec=88888;
//tarif du m3
$prix_m3=5.39;
//bilan conso
$etatbilan=99999;
//******************************************** API set up*******************************************************
$protocol = 'http';
$apiPath = $IPeedomus.'/api';
$method = 'set';
$action = 'periph.value';
$bind = array(
'protocol' => $protocol,
'url' => $apiPath,
'method' => $method,
'action' => $action,
'user' => $api_user,
'secret' => $api_secret,
);
$apiUrlWithPattern = ':protocol//:url/:method?action=:action&api_user:user&api_secret:secret&periph_id:periphId&value:value';