Skip to content

Commit

Permalink
"limit_type" von relativ auf absolute gesetzt
Browse files Browse the repository at this point in the history
  • Loading branch information
Selbstbau-PV committed Mar 30, 2023
1 parent b1e9631 commit cc4935a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nulleinspeisung.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
# Setzt ein limit auf das Wechselrichter
def setLimit(Serial, Limit):
headers = {'Content-Type': 'application/x-www-form-urlencoded'}
payload = f'''data={{"serial":"{Serial}", "limit_type":1, "limit_value":{Limit}}}'''
payload = f'''data={{"serial":"{Serial}", "limit_type":0, "limit_value":{Limit}}}'''
newLimit = requests.post(url=f'http://{dtuIP}/api/limit/config', data=payload, auth=HTTPBasicAuth(dtuNutzer, dtuPasswort), headers=headers)
print('Konfiguration Stauts:', newLimit.json()['type'])

Expand Down

0 comments on commit cc4935a

Please sign in to comment.