meltaxa / solariot

Leverage your IoT enabled Solar PV Inverter to stream your solar energy usage data to a real time dashboard.
https://solariot.live
MIT License
210 stars 71 forks source link

Error loading config.py #79

Closed jeremyw24 closed 2 years ago

jeremyw24 commented 2 years ago

I had everything setup and running fine for a few days.

Then it stopped logging, following investigation I found the issue:

pi@homebridge:~/solariot $ python3 --version
Python 3.5.2
pi@homebridge:~/solariot $ python3 ./solariot.py
  File "./solariot.py", line 69
    logging.info(f"Loaded config {config.model}")
                                               ^
SyntaxError: invalid syntax

I am not really familiar with Python but have had a poke around and can't seem to figure out what the issue is, any assistance would be appreciated?

breed808 commented 2 years ago

The f-strings interpolation used here was introduced in Python 3.6. You'll need to use Python 3.6 or newer when running this tool.

jeremyw24 commented 2 years ago

Thanks @breed808 Ill update it.