「ニキシー管時計」専用のカスタマイズ

「ニキシー管時計」専用のカスタマイズ

Chumby の実用性を優先した活用に特化したカスタマイズです。

時計としての特徴

  • 美しいと感じている「ニキシー管時計」にしました。6桁(秒含む)と4桁がありますが、4桁を選択。
  • 正時に発音する機能(英語)を事前にオン。
  • コントロールパネルが有効となるような設定。
  • 通常のようなチャンネルが自動更新を一つに絞る。
  • この固定チャンネルは描画しない設定に。

設定の詳細

■ /mnt/usb/debugchumby

  • 最後の方で「ニキシー管時計」をスタート。
  • 「ニキシー管時計」時計専用であることの発音機能をスタート。

...
...
# 2026-7-23
/mnt/usb/lighty/html/start_nixie.sh &
# 2026-8-8
/mnt/usb/lighty/html/selectNULL.sh &
### There is only a single channel under /mnt/usb/lighty/html/xml/profiles/profiles0(=NULL)

■ /mnt/usb/lighty/html/start_nixie.sh

  • debugchumby内で呼ばれ、下請けのニキシー管4桁をスタートさせる。

#! /bin/sh
cd /mnt/usb/lighty/html/
sleep 30
/mnt/usb/php/php ./start_nixie.php

■ /mnt/usb/lighty/html/start_nixie.php

  • 「ニキシー管時計」を4桁でスタートさせる下請け。

<?php
$pidFile = '/tmp/nixieclock.pid';
if (file_exists($pidFile)) {
    unlink($pidFile);
}
$flagFile ='./status_nixieclock.flag';
file_put_contents($flagFile, "1"); // 1 = start
$cmd = "/mnt/usb/php/php ./nixieclock/nixieclock.php start mode=4> /dev/null 2>&1 &";
system($cmd);
header("Location: index.php");
exit;

■ /mnt/usb/lighty/html/selectNULL.sh

  • 「ニキシー管時計」時計専用であることの発音動作。
  • 当初、チャンネルを固定する発想だったが手法が見つからなかった。

#!/bin/sh
# Summary: Switch widget channel directly to "NULL" and hold rotation timer without arguments.
# Maintenance: Preserved HTTP headers, event piping to /tmp/flashplayer.event, and chumbyflashplayer.x -F1.
#              Replaced dynamic $1 argument with hardcoded "NULL" string. Added ControlPanel/MoviePlayer pause events.
sleep 40
/usr/bin/btplay /mnt/usb/OnlyNixieClockFunction.mp3

■ /mnt/usb/lighty/html/xml/profiles/profiles0

  • プロファイルを1個に絞って、チャンネル更新をしないように設定。
  • また、指定している null.swf は描画動作を行わない。(ニキシー管画像描画を妨げない)

<?xml version="1.0" encoding="UTF-8"?>
<profile id="0">
<name>このメールアドレスはスパムボットから保護されています。閲覧するにはJavaScriptを有効にする必要があります。</name>
<description/>
<user username="このメールアドレスはスパムボットから保護されています。閲覧するにはJavaScriptを有効にする必要があります。">
<profiles>
<profile  unaccepted="0" name="(0)時計50種類(2022)" id="0" />
</profiles>
</user>
<skin href="/xml/skins/00000000-0000-0000-0000-000000000001" name="Standard" id="00000000-0000-0000-0000-000000000001"/>
<access access="private" id="0"/>
<widget_instances>
<widget_instance id="1">
<widget id="1">
<name>NULL</name>
<description>SIXFLAGS.JP</description>
<version>1.0</version>
<access sendable="false" deleteable="false" access="private" virtualable="false"/>
<user username="sixflags.jp"/>
<thumbnail href="file:////mnt/usb/www/ClockLand-AnalogChumbyWhite-analogchumbywhite.jpg" contenttype="image/jpeg"/>
<movie     href="file:////mnt/usb/www/null.swf" contenttype="application/x-shockwave-flash"/>
<rating count="100" rating="5.0"/>
</widget>
<mode mode="default" time="180"/>
<rating rating="5"/>
</widget_instance>
</widget_instances>
</profile>
Chumby Nixie Clock Customization ? debugchumby / lighty stack