Skip to content

v0.2.0

Choose a tag to compare

@github-actions github-actions released this 08 Oct 04:56
· 78 commits to main since this release

Adds a dashboard that shows the time next to CPU, memory, network and disk use, and lets the clock show Japanese and other non-Latin text.

(日本語は下にあります)

Highlights

  • System dashboard: ssp dashboard shows the time next to panels for CPU, memory, network and disk use. CPU, memory and network come with a graph of the last minute. The network panel shows the download speed with the upload speed below it, and the disk panel the space used on the system disk.
    • --widgets clock,cpu,network picks and orders the panels (1 to 6 of clock, cpu, memory, network, disk).
    • [startup] show = "dashboard" shows it whenever a display connects; [dashboard] keeps the panels and colors (color, accent, background).
    • POST /api/v1/displays/{id}/dashboard switches to it from your own programs.
  • Japanese (and other) text: characters the built-in font lacks are drawn with a font installed on the system: Hiragino on macOS, Yu Gothic or Meiryo on Windows, Noto Sans CJK and similar on Linux.
  • Weekday names: [clock] weekdays (also ssp clock --weekdays and weekdays in the API) takes seven names from Sunday that %a and %A print instead of the English ones, e.g. for date_format = "%Y年%m月%d日(%a)".

The dashboard on a 1920x462 display

For developers

  • cargo run -p ssp-server --example render -- dashboard out.png draws a built-in screen into a PNG without a display (clock or dashboard; --config and --seconds).

Notes

  • On Linux, install a CJK font (e.g. the fonts-noto-cjk package) if Japanese does not show.
  • Tested with the D92 on macOS (Apple Silicon). The x86_64 builds of Linux and Windows have still not been tried with a display. Reports with the output of ssp selftest are welcome.

Install or update

curl -fsSL https://subscreen.dev/install.sh | sh              # macOS, Linux
powershell -c "irm https://subscreen.dev/install.ps1 | iex"   # Windows

Running the installer again updates ssp; then restart the daemon (see Autostart: ssp service install again on macOS, systemctl --user restart sub-screen-player on Linux). The archives are also attached below (checksums in SHA256SUMS.txt).

Full changelog: v0.1.1...v0.2.0


日本語

時刻と一緒に CPU・メモリ・ネットワーク・ディスクの使用状況を表示するダッシュボードを追加し、時計で日本語などの文字を表示できるようにしました。

主な変更

  • システムダッシュボード: ssp dashboard で、時刻と、CPU・メモリ・ネットワーク・ディスクのパネルを並べて表示します。CPU・メモリ・ネットワークには直近1分のグラフが付きます。ネットワークのパネルはダウンロードの速度と、その下にアップロードの速度を、ディスクのパネルはシステムのディスクの使用量を表示します。
    • --widgets clock,cpu,network で、表示するパネルと順番を選べます(clock・cpu・memory・network・disk から1〜6個)。
    • [startup] show = "dashboard" で、ディスプレイの接続時に表示します。[dashboard] でパネルと色(color・accent・background)を保存できます。
    • 自作のプログラムからは POST /api/v1/displays/{id}/dashboard で切り替えられます。
  • 日本語などの文字: 内蔵フォントにない文字を、OS に入っているフォント(macOS はヒラギノ、Windows は游ゴシックやメイリオ、Linux は Noto Sans CJK など)で描くようになりました。
  • 曜日の名前: [clock] weekdays(ssp clock --weekdays、API の weekdays でも可)に日曜日から順に7つの名前を書くと、%a と %A がその名前になります。例えば date_format = "%Y年%m月%d日(%a)" と組み合わせて使います。

1920x462 のディスプレイに表示したダッシュボード

開発者向け

  • cargo run -p ssp-server --example render -- dashboard out.png で、ディスプレイなしで組み込み画面を PNG に書き出せます(clock か dashboard。--config と --seconds も使えます)。

補足

  • Linux で日本語が表示されない場合は、CJK のフォント(fonts-noto-cjk パッケージなど)を入れてください。
  • D92 を使い、macOS(Apple Silicon)で確認しました。x86_64 版の Linux と Windows は、まだ実機で試していません。ssp selftest の出力を添えた報告を歓迎します。

インストール・更新

curl -fsSL https://subscreen.dev/install.sh | sh              # macOS・Linux
powershell -c "irm https://subscreen.dev/install.ps1 | iex"   # Windows

インストーラーをもう一度実行すると ssp が更新されます。そのあとデーモンを再起動してください(自動起動を参照。macOS はもう一度 ssp service install、Linux は systemctl --user restart sub-screen-player)。下のアセットからアーカイブをダウンロードすることもできます(チェックサムは SHA256SUMS.txt)。

変更の一覧: v0.1.1...v0.2.0