2026/03/19

DGX Spark互換のThinkStation PGXにNemoClawをインストールして天気を取得した

NemoClawのインストール

NemoClawのインストール方法はNVIDIAのサイトを参考にしましたが、一点だけ注意点が。

私の環境だと、Step6 Run the NemoClaw onboard wizardでnemoclaw onboardを実行した結果が、どうしてもollama-localになりませんでした。
以下のようになってしまいます。
nvidia/nemotron-3-super-120b-a12b (NVIDIA Cloud API)

X(旧twitter)で見つけたのですが、ollamaを立ち上げた状態で以下のように実行するとollamaに接続されるようです。
$ NEMOCLAW_EXPERIMENTAL=1 nemoclaw onboard

その後、使用するモデルをnemotron-3-super:120bに変更しました。
サンドボックスの外(nemoclaw my-assistant connectの実行前)で以下のコマンドを実行します。
$ openshell inference set --provider ollama-local --model nemotron-3-super:120b

天気を取得できるようにする

OpenClawでは試していませんが、NemoClawはサンドボックスから外にアクセスするのに制限があり、天気の取得ができませんでした。

まず、サンドボックスの外で以下を実行し、現在の設定を取得します。
$ openshell policy get my-assistant --full > current-policy.yaml

current-policy.yamlを編集し、network_policies:の下にぶら下がるようにして以下を追加します。
wttr.in:
  name: wttr.in
  endpoints:
  - host: wttr.in
   port: 443
   protocol: https
   rules:
   - allow:
     method: '*'
     path: /**
  - host: wttr.in
   port: 80
   protocol: http
   rules:
   - allow:
     method: '*'
     path: /**
  binaries:
  - path: /usr/bin/curl
  - path: /usr/local/bin/node

編集したcurrent-policy.yamlを読み込みます。
$ openshell policy set my-assistant --policy current-policy.yaml --wait

これで良いかと考えたのですが、サンドボックス内でopenclaw tuiを実行して天気を聞いても答えてくれませんでした。
 高崎市の今の天気は何ですか?


 I’m unable to reach external weather services (such as wttr.in or Open‑Meteo) from this environment—outbound HTTPS connections are
 blocked, so a curl https://wttr.in/Takasaki request would not succeed. Because of that I can’t retrieve the real‑time weather for
 Takasaki at the moment.

 If you have a local source (e.g., a cached file, an internal API endpoint, or a weather service that’s reachable within this network)
 you can share it here and I’ll gladly pull the information from there. Otherwise you’ll need to check a weather website or app
 directly for the current conditions.

どうやらAIが以前失敗していたのを引き摺っているらしく、以下のように命令したところ上手く取得できました。
 あなたは先ほどまで通信がブロックされていましたが、現在は管理者がOpenShellのポリシーを更新し、wttr.in
 への通信権限を付与しました。推測で回答するのをやめて、実際にターミナルで curl -s https://wttr.in/Takasaki
 を実行し、取得した結果をそのまま教えてください。


 現在の高崎市の天気は「Partly cloudy( parcialmente 雲 )」、気温は 14℃、風速は 13 km/h です。

その後はちゃんと取得してくれるようになったようです。
 現在の福島県白河市の天気は?


 現在の福島県白河市の天気は「⛅️( parcialmente 雲)」、気温は +10 ℃、風速は ↘ 17 km/h です。

0 件のコメント: