diff --git a/solaredge_api.py b/solaredge_api.py index 014656c..e82675c 100755 --- a/solaredge_api.py +++ b/solaredge_api.py @@ -12,6 +12,9 @@ site_id = 4143190 inverter = '7B0E5700-E0' +listen = 'localhost' +port = 9150 + endpoint = "https://monitoringapi.solaredge.com/" query_delta = datetime.timedelta(minutes=20) @@ -172,7 +175,7 @@ def metrics(): return format_metrics(collect()) def main(): - bottle.run(host='localhost', port=9150) + bottle.run(host=listen, port=port) if __name__ == '__main__':