Build from Visual Studio Code
Install Prerequisites¶
- Install
- Visual Studio Code.
- Install Docker.
- Windows: Install WSL and latest version of Ubuntu.
Clone the Solution Repo¶
- Open WSL/Ubuntu terminal window.
-
Clone the repo
git clone --recurse-submodules https://github.com/gloveboxes/Altair-8800-Emulator
- Open a terminal window
-
Clone the repo
git clone --recurse-submodules https://github.com/gloveboxes/Altair-8800-Emulator
Open the Solution¶
- From command line, navigate to the Altair-8800-Emulator folder
-
Run the following command to open the folder with VS Code.
code . -
Reopen in Container
- This will build an Ubuntu 25.04 (trixie) environment and install all the dev tools.
-
Optionally update the [args] json property in the .vscode/launch.json file for the build configuration. Available options are:
--MqttHost <host>: MQTT broker hostname (required for MQTT)--MqttPort <port>: MQTT broker port (default: 1883)--MqttClientId <client_id>: MQTT client ID (default: AltairEmulator_) --MqttUsername <username>: MQTT username (default: none)--MqttPassword <password>: MQTT password (default: none)--NetworkInterface <iface>: Network interface to use--FrontPanel <mode>: Front panel selection: sensehat, kit, none (default: none)--OpenWeatherMapKey <key>: OpenWeatherMap API key--OpenAIKey <key>: OpenAI API key--OpenAIEndpoint <url>: OpenAIEnpoint--SlowCpuOnDisconnect <bool>: true or false- The default endpoint is https://api.openai.com/v1/chat/completions.
- For LM Studio, use http://IP_ADDRESS:1234/v1/chat/completions. If Altair runs in a container, use the LM Studio server's IP address—not localhost—since localhost refers to the container itself.
Example: Connecting to a ThingsBoard MQTT broker
To connect to a ThingsBoard MQTT broker, set the
argsproperty in your.vscode/launch.jsonlike this:"args": [ "--MqttHost", "my-thingsboard-host", "--MqttClientId", "vscode", ] -
Save the launch.json file.
- Press F5 to compile and launch the Altair emulator.