Skip to content

Skrypt sie wysypuje po jakimś czasie #3

@IDeserveToBeWrited

Description

@IDeserveToBeWrited

Od razu zacznę że nie jestem zaawansowanym userem i poprawne uruchomienie skryptu zajęło mi kilka godzin z jakiegoś powodu.
Ale jak już go odpaliłem i działał, no to po jakiejś pół godzinie zauważyłem że nie działa.
Uruchamiam go na rPi3B w screenie podczas startupu.

Ale do szczegółów, w końcu miałem trochę cierpliwości żeby złapać co się dzieje i jest to jak następuje:

Data written
Data written
Traceback (most recent call last):
  File "/home/pi/skrypty/fronius-to-influx/src/fronius_to_influx.py", line 130, in run
    collected_data.extend(self.translate_response())
  File "/home/pi/skrypty/fronius-to-influx/src/fronius_to_influx.py", line 54, in translate_response
    'ErrorCode': self.data['Body']['Data']['DeviceStatus']['ErrorCode'],
KeyError: 'DeviceStatus'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "src/prod.py", line 20, in <module>
    z.run()
  File "/home/pi/skrypty/fronius-to-influx/src/fronius_to_influx.py", line 144, in run
    raise WrongFroniusData('Response structure is not healthy')
fronius_to_influx.WrongFroniusData: Response structure is not healthy

Niestety moja wiedza jest zbyt mała żeby w ogóle nie bać się próbować szukać co może być przyczyną, ale wystarczająca żeby dodać skrypt do crona, który uruchomi skrypt z powrotem jeśli spadnie z rowerka. Niestety prowadzi to do lekkich dziur w wykresach.
firefox_2020-12-03_14-01-15

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions