Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/modules/devices/alpha_ess/alpha_ess/device.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def initializer():
device_config.configuration.ip_address, device_config.configuration.port)

def error_handler():
run_command(f"{Path(__file__).resolve().parents[4]}/modules/common/restart_protoss_admin")
run_command((f"{Path(__file__).resolve().parents[4]}/modules/common/restart_protoss_admin 192.168.193.125"))

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ob eine fixe IP hier wirklich zielführend ist?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Was spricht dagegen und welchen Vorteil hätte es das an dieser Stelle variabel zu gestalten?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Diese IP gilt nur in Deinem Netzwerk, nirgendwo sonst.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Die IP des AlphaESS Kit wird werkseitig fix vergeben und ist in Z.58 ebenfalls hart codiert. Bei einem AlphaESS mit nativem LAN Anschluss lässt sich kein Protoss neu starten (gibt es nicht), daher spielt das dort keine Rolle.
Kunden könnten sicher ihren eigenen Protoss konfigurieren der dann natürlich eine andere IP hätte aber da funktioniert das Skript wegen Login Credentials ebenfalls nicht.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok, war mir nicht klar, dass es Firmen gibt, die so einen Unsinn machen...


return ConfigurableDevice(
device_config=device_config,
Expand Down