Skip to content

Commit

Permalink
2.4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
britkat1980 committed Nov 4, 2023
1 parent a83f5a4 commit b47a1b6
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 5 deletions.
1 change: 1 addition & 0 deletions GivTCP/GivLUT.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ class GivLUT:
"Last_Updated_Time":GEType("sensor","timestamp","","","",False,False,False),
"Time_Since_Last_Update":GEType("sensor","","",0,10000,True,False,False),
"status":GEType("sensor","string","","","",False,False,False),
"GivTCP_Version":GEType("sensor","string","","","",False,False,False),
"Export_Energy_Total_kWh":GEType("sensor","energy","",0,maxTotalEnergy,False,True,True),
"Battery_Throughput_Total_kWh":GEType("sensor","energy","",0,maxTotalEnergy,False,True,True),
"AC_Charge_Energy_Total_kWh":GEType("sensor","energy","",0,maxTotalEnergy,False,True,True),
Expand Down
2 changes: 1 addition & 1 deletion GivTCP/evc.py
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ def getEVCCache():
evcRegCache= pickle.load(inp)
return json.dumps(evcRegCache)
else:
return json.dumps("No EVC data found")
return json.dumps("No EVC data found",indent=4)

def setChargeMode(mode):
if mode=="enable":
Expand Down
4 changes: 2 additions & 2 deletions GivTCP/palm_settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,11 +102,11 @@ class GE:

# Start time for Overnight Charge
# start_time = os.getenv('NIGHTRATESTART')
start_time = GiV_Settings.NIGHTRATESTART
start_time = GiV_Settings.night_rate_start

# End time for Overnight Charge
# end_time = os.getenv('DAYRATESTART')
end_time = GiV_Settings.DAYRATESTART
end_time = GiV_Settings.day_rate_start


# SolCast PV forecast generator. Up to two arrays are supported with a forecast for each
Expand Down
3 changes: 2 additions & 1 deletion GivTCP/read.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,8 @@ def getData(fullrefresh): # Read from Inverter put in cache

multi_output['Last_Updated_Time'] = datetime.datetime.utcnow().replace(tzinfo=datetime.timezone.utc).isoformat()
multi_output['status'] = "online"
multi_output['Time_Since_Last_Update'] = 0
multi_output['Time_Since_Last_Update'] = 0
multi_output['GivTCP_Version']= "2.3.153"
except:
e = sys.exc_info()
consecFails(e)
Expand Down
2 changes: 1 addition & 1 deletion buildx.bat
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
docker buildx build --platform linux/amd64,linux/arm64,linux/arm/v7,linux/arm/v6 -t britkat/giv_tcp-dev:2.3.151 -t britkat/giv_tcp-dev:latest --push .
docker buildx build --platform linux/amd64,linux/arm64,linux/arm/v7,linux/arm/v6 -t britkat/giv_tcp-dev:2.3.153 -t britkat/giv_tcp-dev:latest --push .
::docker buildx build --platform linux/amd64,linux/arm64,linux/arm/v7,linux/arm/v6 -t britkat/giv_tcp-dev:latest --push .
::docker buildx build --platform linux/amd64,linux/arm64,linux/arm/v7,linux/arm/v6 -t britkat/giv_tcp-ma:latest -t britkat/giv_tcp-ma:2.3.3 --push .
Binary file modified givtcp-vuejs/public/favicon.ico
Binary file not shown.
12 changes: 12 additions & 0 deletions startup.py
Original file line number Diff line number Diff line change
Expand Up @@ -305,6 +305,18 @@ def getInvDeets(HOST):
outp.write(" Debug_File_Location=\""+os.getenv("CACHELOCATION")+"/log_inv_"+str(inv)+".log\"\n")
outp.write(" inverter_num=\""+str(inv)+"\"\n")

outp.write(" GE_API=\""+str(os.getenv("CACHELOCATION")+"\"\n"))
outp.write(" PALM_WINTER=\""+str(os.getenv("PALM_WINTER")+"\"\n"))
outp.write(" PALM_SHOULDER=\""+str(os.getenv("PALM_SHOULDER")+"\"\n"))
outp.write(" PALM_MIN_SOC_TARGET=\""+str(os.getenv("PALM_MIN_SOC_TARGET")+"\"\n"))
outp.write(" PALM_MAX_SOC_TARGET=\""+str(os.getenv("PALM_MAX_SOC_TARGET")+"\"\n"))
outp.write(" PALM_BATT_RESERVE=\""+str(os.getenv("PALM_BATT_RESERVE")+"\"\n"))
outp.write(" PALM_BATT_UTILISATION=\""+str(os.getenv("PALM_BATT_UTILISATION")+"\"\n"))
outp.write(" SOLCASTAPI=\""+str(os.getenv("SOLCASTAPI")+"\"\n"))
outp.write(" SOLCASTSITEID=\""+str(os.getenv("SOLCASTSITEID")+"\"\n"))
outp.write(" SOLCASTSITEID2=\""+str(os.getenv("SOLCASTSITEID2")+"\"\n"))
outp.write(" PALM_WEIGHT=\""+str(os.getenv("PALM_WEIGHT")+"\"\n"))

outp.write(" evc_enable=\""+os.getenv("EVC_ENABLE")+"\"\n")
outp.write(" evc_ip_address=\""+os.getenv("EVC_IP_ADDRESS")+"\"\n")
outp.write(" evc_self_run_timer="+os.getenv("EVC_SELF_RUN_TIMER")+"\n")
Expand Down

0 comments on commit b47a1b6

Please sign in to comment.