Skip to content

Commit

Permalink
fix hostname on first boot not showing on oled
Browse files Browse the repository at this point in the history
  • Loading branch information
ArendJan committed Apr 25, 2024
1 parent 5473780 commit bee5b31
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mirte_telemetrix/scripts/ROS_telemetrix_aio_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -768,7 +768,7 @@ async def show_default_async(self):
ips = subprocess.getoutput("hostname -I").split(" ")
text += "IPs: " + ", ".join(filter(None, ips))
if "show_hostname" in self.oled_obj and self.oled_obj["show_hostname"]:
text += "\nHn:" + subprocess.getoutput("hostname")
text += "\nHn:" + subprocess.getoutput("cat /etc/hostname")
if "show_wifi" in self.oled_obj and self.oled_obj["show_wifi"]:
wifi = subprocess.getoutput("iwgetid -r").strip()
if len(wifi) > 0:
Expand Down

0 comments on commit bee5b31

Please sign in to comment.