Rename the visible VoxIP texts to Daynivo
Product name (Daynivo Kiosk OS), default device name, kiosk screens, service descriptions, installer output and docs. Internal names (voxip-kiosk-*, /etc/voxip-kiosk, user voxip, VOXIP_* variables) stay. An update renames a device still called "VoxIP Kiosk" to the new default. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
f30f602d4f
commit
4e20e358aa
40 files changed
+61
-58
No files matched your search
@@ -1 +1 @@
|
||||
"""VoxIP Kiosk OS — kiosk runtime and Daynivo Kiosk Manager."""
|
||||
"""Daynivo Kiosk OS — kiosk runtime and Daynivo Kiosk Manager."""
|
||||
@@ -46,7 +46,7 @@ BLANK_URLS = {"", "about:blank", "chrome://newtab/", "chrome://new-tab-page/"}
|
||||
|
||||
def probe(url: str, timeout: float = 8.0) -> tuple[bool, str]:
|
||||
"""Is ``url`` reachable over HTTPS with a valid certificate? → (ok, reason)."""
|
||||
req = urllib.request.Request(url, method="HEAD", headers={"User-Agent": "VoxIP-Kiosk-OS/agent"})
|
||||
req = urllib.request.Request(url, method="HEAD", headers={"User-Agent": "Daynivo-Kiosk-OS/agent"})
|
||||
try:
|
||||
with urllib.request.urlopen(req, timeout=timeout, context=ssl.create_default_context()):
|
||||
return True, ""
|
||||
|
||||
@@ -23,7 +23,7 @@ from . import validation as v
|
||||
log = logging.getLogger(__name__)
|
||||
|
||||
DEFAULTS: dict[str, Any] = {
|
||||
"device_name": "VoxIP Kiosk",
|
||||
"device_name": "Daynivo Kiosk",
|
||||
"url": "https://schermen-ijsselflat.voxip.nl",
|
||||
"refresh_interval": 0,
|
||||
"screen_always_on": True,
|
||||
|
||||
@@ -29,7 +29,7 @@ def cmd_status(args) -> int:
|
||||
paths = default_paths()
|
||||
config = load_config(paths.config_file)
|
||||
agent = read_state(paths.agent_state_file)
|
||||
print(f"VoxIP Kiosk OS {read_version(paths)}")
|
||||
print(f"Daynivo Kiosk OS {read_version(paths)}")
|
||||
print(f"Apparaat: {config['device_name']}")
|
||||
print(f"URL: {config['url'] if args.show_secrets else mask_url(config['url'])}")
|
||||
print(f"Beheer: {'https' if config['admin_https'] else 'http'}://{os.uname().nodename}.local:{config['admin_port']}")
|
||||
@@ -138,7 +138,7 @@ def cmd_version(_args) -> int:
|
||||
|
||||
|
||||
def main(argv: list[str] | None = None) -> int:
|
||||
parser = argparse.ArgumentParser(prog="voxip-kiosk-ctl", description="Beheer van VoxIP Kiosk OS vanaf de commandoregel.")
|
||||
parser = argparse.ArgumentParser(prog="voxip-kiosk-ctl", description="Beheer van Daynivo Kiosk OS vanaf de commandoregel.")
|
||||
sub = parser.add_subparsers(dest="command", required=True)
|
||||
p = sub.add_parser("status", help="toon de status")
|
||||
p.add_argument("--show-secrets", action="store_true", help="toon de volledige URL inclusief token")
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
"""voxip-kiosk-helper — the only privileged entry point of VoxIP Kiosk OS.
|
||||
"""voxip-kiosk-helper — the only privileged entry point of Daynivo Kiosk OS.
|
||||
|
||||
Runs as root, either through ``sudo -n`` from the web interface (user
|
||||
``voxip``) or from systemd units. It accepts a fixed set of verbs, validates
|
||||
@@ -296,7 +296,7 @@ class Helper:
|
||||
if src.exists():
|
||||
shutil.move(str(src), str(stash / src.name))
|
||||
trigger.unlink()
|
||||
log(syslog.LOG_WARNING, f"Netwerk-reset uitgevoerd; VoxIP-profielen verplaatst naar {stash}")
|
||||
log(syslog.LOG_WARNING, f"Netwerk-reset uitgevoerd; Daynivo-profielen verplaatst naar {stash}")
|
||||
result["reset"] = True
|
||||
return result
|
||||
|
||||
@@ -367,7 +367,7 @@ class Helper:
|
||||
sshd_dir = self.etc / "ssh" / "sshd_config.d"
|
||||
sshd_dir.mkdir(parents=True, exist_ok=True)
|
||||
(sshd_dir / "voxip-kiosk.conf").write_text(
|
||||
"# Beheerd door VoxIP Kiosk OS: alleen inloggen met SSH-sleutels.\n"
|
||||
"# Beheerd door Daynivo Kiosk OS: alleen inloggen met SSH-sleutels.\n"
|
||||
"PasswordAuthentication no\nKbdInteractiveAuthentication no\nPermitRootLogin no\n",
|
||||
encoding="utf-8",
|
||||
)
|
||||
|
||||
@@ -32,7 +32,7 @@ def ensure_certificate(paths: Paths) -> tuple[Path, Path]:
|
||||
log.info("Zelfondertekend certificaat aanmaken voor %s.local", host)
|
||||
subprocess.run([
|
||||
"openssl", "req", "-x509", "-newkey", "rsa:2048", "-nodes", "-days", "3650",
|
||||
"-subj", f"/CN={host}.local/O=VoxIP Kiosk OS",
|
||||
"-subj", f"/CN={host}.local/O=Daynivo Kiosk OS",
|
||||
"-addext", f"subjectAltName=DNS:{host}.local,DNS:{host},IP:127.0.0.1",
|
||||
"-keyout", str(key), "-out", str(cert),
|
||||
], check=True, capture_output=True, timeout=120)
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
"""Filesystem locations used by every VoxIP Kiosk component.
|
||||
"""Filesystem locations used by every Daynivo Kiosk component.
|
||||
|
||||
The defaults match the installed layout. Unprivileged components may
|
||||
override them through ``VOXIP_*`` environment variables (used by the test
|
||||
|
||||
@@ -58,7 +58,7 @@
|
||||
|
||||
<footer class="footer">
|
||||
<span>{{ device_name }} · {{ hostname }}</span>
|
||||
<span>VoxIP Kiosk OS {{ version }}</span>
|
||||
<span>Daynivo Kiosk OS {{ version }}</span>
|
||||
</footer>
|
||||
|
||||
<dialog id="confirm-dialog" class="dialog">
|
||||
|
||||
@@ -53,7 +53,7 @@
|
||||
<h2>Over dit apparaat</h2>
|
||||
<dl class="kv">
|
||||
<dt>Naam</dt><dd>{{ device_name }}</dd>
|
||||
<dt>Versie</dt><dd>VoxIP Kiosk OS {{ s.version }}</dd>
|
||||
<dt>Versie</dt><dd>Daynivo Kiosk OS {{ s.version }}</dd>
|
||||
<dt>Besturingssysteem</dt><dd>{{ s.os }}</dd>
|
||||
<dt>Hardware</dt><dd>{{ s.model }}</dd>
|
||||
</dl>
|
||||
|
||||
@@ -94,7 +94,7 @@
|
||||
<h2>Herstel bij een onbereikbare kiosk</h2>
|
||||
<ul class="plain">
|
||||
<li>Iedere wijziging wordt na {{ rollback_seconds // 60 }} minuten automatisch teruggedraaid als je hem niet bevestigt, ook als de stroom tussendoor uitvalt.</li>
|
||||
<li>Noodherstel: zet een leeg bestand <code>voxip-network-reset</code> op de bootpartitie van de SD-kaart en start de Pi. Alle VoxIP-netwerkprofielen worden dan verwijderd (terug naar DHCP).</li>
|
||||
<li>Noodherstel: zet een leeg bestand <code>voxip-network-reset</code> op de bootpartitie van de SD-kaart en start de Pi. Alle Daynivo-netwerkprofielen worden dan verwijderd (terug naar DHCP).</li>
|
||||
</ul>
|
||||
</section>
|
||||
{% endblock %}
|
||||
@@ -65,7 +65,7 @@
|
||||
<section class="card">
|
||||
<h2>Systeeminformatie</h2>
|
||||
<dl class="kv">
|
||||
<dt>Versie</dt><dd>VoxIP Kiosk OS {{ s.version }}</dd>
|
||||
<dt>Versie</dt><dd>Daynivo Kiosk OS {{ s.version }}</dd>
|
||||
<dt>Besturingssysteem</dt><dd>{{ s.os }}</dd>
|
||||
<dt>Hardware</dt><dd>{{ s.model }}</dd>
|
||||
<dt>Uptime</dt><dd>{{ s.uptime }}</dd>
|
||||
|
||||
Reference in new issue
Block a user