forked from britkat1980/giv_tcp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
settings.py
49 lines (49 loc) · 2.32 KB
/
settings.py
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
# version 2022.01.31
class GiV_Settings:
invertorIP="192.168.2.3" #Required - IP address of Invertor on local network
numBatteries=2 #Required - The number of batteries connected this invertor
HA_Auto_D=True #Optional - Bool - Publishes Home assistant MQTT Auto Discovery messages to push data into HA automagically (requires MQTT to be enabled below)
ha_device_prefix="" #Required - This is the prefix used at the start of every Home Assistant device created
#Debug Settings
Log_Level="info" #Optional - Enables logging level. Default is "Error", but can be "Info" or "Debug"
Debug_File_Location="C:/Users/mark/Code-Dev/givtcp/dev/giv_tcp/log_inv_1.log" #Optional - Location of logs (Default is console)
Print_Raw_Registers=True #Optional - Bool - True publishes all available registers.
#MQTT Output Settings
MQTT_Output= True #Optional - Bool - True or False
MQTT_Address="192.168.2.83" #Optional - (Required is above set to True) IP address of MQTT broker (local or remote)
MQTT_Username="mqtt" #Optional - Username for MQTT broker
MQTT_Password="mqtt2020" #Optional - Password for MQTT broker
MQTT_Topic="" #Optional - Root topic for all MQTT messages. Defaults to "GivEnergy/<SerialNumber>
MQTT_Port=1883 #Optional - Int - define port that MQTT broker is listening on (default 1883)
#Influx Settings - Only works with Influx v2
Influx_Output= False #True or False
influxURL="http://localhost:8086"
influxToken=""
influxBucket="GivEnergy"
influxOrg="GivTCP"
first_run= False
serial_number = "SA2047G098"
Web_Dash = True
Web_Dash_Port = 3000
self_run = True
self_run_timer = 5
queue_retries = 2
default_path = "GivTCP"
givtcp_instance=1
dynamic_tariff=True
day_rate=0.155
day_rate_start="00:30"
night_rate=0.055
night_rate_start="00:00"
export_rate=0.055
givtcp_instance=1
cache_location="C:/Users/mark/Code-Dev/givtcp/dev/giv_tcp"
data_smoother="High"
SOLCASTAPI="D3d_8yREGmXWQW4CkNK00wpeM99BlNqb"
SOLCASTSITEID="8760-a78f-c11e-ae49"
Smart_Target=True
GE_API=""
Solcast_API=""
Solcast_SiteID=""
Solcast_SiteID2=""
isAIO=True