Skip to content

Commit

Permalink
readme
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonBard committed Apr 30, 2024
1 parent 23b7fb7 commit 9299b2d
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 1 deletion.
30 changes: 30 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# Telegram

TELEGRAM_BOT_TOKEN =
TELEGRAM_personA_chat_id =
TELEGRAM_personB_chat_id =

# MQTT
MQTT_BROKER = "192.168.103.44"

# ha_connection
HA_AUTHORIZATION =
HA_URL = http://192.168.103.44:8123/api/states/

# weather
WEATHER_LONG = 9.030724
WEATHER_LAT = 51.500005

# tibber
TIBBER_ACCESS_TOKEN =

# inverter
INVERTER.URL = 192.168.178.7

# solcast
SOLCAST_API_KEY = ''
LONGITUDE = 9.030724
LATITUDE = 51.500005
DECLINATION = 35
AZIMUTH = 160
KWP = 5.67
2 changes: 1 addition & 1 deletion minutely.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def battery():

if mybattery.getPVProduction() < mybattery.getTotalHomeConsumption():
print('Consumption is higher than production')
if hourly_values[current_hour]['load_battery'] == None:
if hourly_values[current_hour]['load_battery'] is None:
print(timestamp,'energy is neither expensive nor cheap. Hold SOC')
mybattery.load_battery_1min(0)
else:
Expand Down

0 comments on commit 9299b2d

Please sign in to comment.