-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathsettings.h
65 lines (57 loc) · 1.76 KB
/
settings.h
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
/**************************************************************
Settings
**************************************************************/
#include "wifi_credentials.h" // see ReadMe
/*
Blynk Auth Code
*/
#define AUTH "9739e5f9d95941c99ca2b96526e70d5e"
/*
Over The Air Hostname
*/
#define OTA_UPDATES
#define OTA_HOSTNAME "POWER-MONITOR"
/*
Local Server Settings (uncomment to use local server)
*/
#define USE_LOCAL_SERVER
#define SERVER IPAddress(192, 168, 1, 2)
/*
Energy Cost per kWh in cents. (comment out to use API method)
*/
//#define FIXED_ENERGY_PRICE 9.934
#define ENERGY_API "http://192.168.1.2:3000/"
/*
Value Average Settings.
Set the number of samples to take for the average values.
Value = Seconds (default 5 seconds)
*/
#define AVG_DEPTH_VOLTAGE 5
#define AVG_DEPTH_CURRENT 5
#define AVG_DEPTH_POWER 5
/*
Virtual Pins - Base
*/
#define vPIN_VOLTAGE_REAL V1
#define vPIN_VOLTAGE_AVG V2
#define vPIN_VOLTAGE_PEAK V3
#define vPIN_CURRENT_REAL V4
#define vPIN_CURRENT_AVG V5
#define vPIN_CURRENT_PEAK V6
#define vPIN_GRAPH V7
#define vPIN_POWER_REAL V8
#define vPIN_POWER_AVG V9
#define vPIN_POWER_PEAK V10
#define vPIN_ENERGY_USED V11
#define vPIN_ENERGY_COST V12
#define vPIN_ENERGY_PRICE V13
#define vPIN_ENERGY_API V14
#define vPIN_ENERGY_TIME V15
#define vPIN_BUTTON_AUTORANGE V16
#define vPIN_BUTTON_HOLD V17
#define vPIN_BUTTON_RESET_AVG V18
#define vPIN_BUTTON_RESET_MAX V19
/*
Debugging
*/
#define DEBUG