Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Skrypt sie wysypuje po jakimś czasie #3

Open
IDeserveToBeWrited opened this issue Dec 3, 2020 · 2 comments
Open

Skrypt sie wysypuje po jakimś czasie #3

IDeserveToBeWrited opened this issue Dec 3, 2020 · 2 comments

Comments

@IDeserveToBeWrited
Copy link

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

@szymi-
Copy link
Owner

szymi- commented Feb 24, 2021

Miałem podobne problemy jak używałem Mikrotika jako AP. Po przejściu na AP Cisco problem ustąpił.

@IDeserveToBeWrited
Copy link
Author

Falownik jak i Raspberry są zapięte po kablu i nie mam żadnych Mikrotików ani Cisco w domu.
Udało mi się problem zniwelować restartem procesów co 24h i praktycznie co 5 sekund sprawdzanie czy skrypt nie spadł z rowerka xD

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants