mirror of
https://github.com/clockworkpi/launcher.git
synced 2025-12-12 17:58:50 +01:00
TinyCloud airplay_name
This commit is contained in:
parent
b3879473b3
commit
148c60330b
@ -1,6 +1,7 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
import pygame
|
||||
import validators
|
||||
import commands
|
||||
|
||||
from UI.constants import Width,Height,ICON_TYPES
|
||||
from UI.simple_name_space import SimpleNamespace
|
||||
@ -117,6 +118,10 @@ class TinyCloudPage(Page):
|
||||
else:
|
||||
self._IP = "xxx.xxx.xxx.xxx"
|
||||
|
||||
hostname = commands.getstatusoutput("hostname")[1]
|
||||
if hostname == "":
|
||||
hostname = "clockworkpi"
|
||||
|
||||
labels = \
|
||||
[["forssh","For ssh and scp:",self._ListLabelFontObj,self._TextColor],
|
||||
["ssh_addr","ssh cpi@%s" % self._IP, self._ListFontObj,self._URLColor],
|
||||
@ -130,7 +135,7 @@ class TinyCloudPage(Page):
|
||||
["key_and_pass", "cpi", self._ListFontObj, self._URLColor],
|
||||
|
||||
["for_airplay", "Airplay:", self._ListLabelFontObj, self._TextColor],
|
||||
["airplay_name","clockworkpi", self._ListFontObj, self._URLColor],
|
||||
["airplay_name",hostname, self._ListFontObj, self._URLColor],
|
||||
|
||||
["for-usb-eth","USB-Ethernet:", self._ListLabelFontObj, self._TextColor],
|
||||
["usb-eth-addr","192.168.10.1", self._ListFontObj, self._URLColor]]
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user