intelligent-agent / Reflash

Flasher image for Refactor distro for use with Recore 3D printer board
GNU Affero General Public License v3.0
2 stars 0 forks source link

Add hostname and IP address to the screen. #60

Closed eliasbakken closed 4 months ago

eliasbakken commented 4 months ago

If there is a Recore on the network, Avahi will discover that and find an alternative hostname. Avahi is implemented using systemd-resolved on the latest Reflash, and the name give seems a bit random. I've seen "recore8.local" and "recore9.local" etc. which is a bit less predictable than what avahi-daemon usually does which is "recore-2.local" and similar. Regardless, it would be good to show what the resulting hostname is. It could be good to also add the IP address as a backup. Not everyone knows about the link local address and how to use it.

goeland86 commented 4 months ago

If klipper screen is running, you can already access that through the network panel of the settings.

eliasbakken commented 4 months ago

This is on Reflash, so KlipperScreen is not running. There is a small custom program running that gives the status, just "downloading", "flashing" etc.

eliasbakken commented 4 months ago

This has been added, but does not show up, probably since the reflash app starts before the network is up.

eliasbakken commented 4 months ago

Added a timer that updates the IPs after 30 seconds.