# macOS

### Installing Requirements

The Haptic Jacket Controller software requires Node.js and Python 3. Download them if not present in the system.

* Node.js (<https://nodejs.org/en/>)
* Python 3 (<https://www.python.org/download/releases/3.0/>)

### Downloading Software and Running

Download the compressed macOS application from here: <https://drive.google.com/file/d/1kvrpT0f_PRYW8ZTPdl0S-cqlqU7Hey2I/view?usp=sharing>

Extract the zip file.

The application is now ready to run.

{% hint style="info" %}
The macOS application was built on macOS Big Sur version 11.1. Might be incompatible with earlier versions.
{% endhint %}

{% hint style="warning" %}
If it says the application *cannot be opened because the developer cannot be verified,* Go to `System Preferences -> Security & Privacy` and click *Open Anyway.*
{% endhint %}

Once everything runs well, the screen should look like this.&#x20;

![Haptic Jacket Controller running on macOS Big Sur version 11.1](/files/-M_vIK5UeBnSCgSpJBuH)

For information on how to use the Simulator, please refer to [**User Guide**](/haptic-jacket/using-the-application/untitled.md).

### Accessing Python API on macOS

The haptic jacket simulator can be controlled by a python API.&#x20;

The API Files are already included in the zip file previously downloaded.

To test the API, run the Haptic Jacket Controller, then run the following commands separately in the terminal, **while running the Application at the same time**.

```
cd Desktop/Haptic-Jacket-API-Python-main
python3 api_test.py
```

{% hint style="warning" %}
Before running the API, make sure that the modules have been scanned and placed on the jacket.
{% endhint %}

![Haptic Jacket Simulator, programatically controlled via python API](/files/-M_vLUbGAISgA8NjuF3j)

Make changes to the file `api_test.py` to see different outputs in the simulator.

Refer to the [**API Documentation**](/haptic-jacket/api-documentation/untitled.md) for detailed usage of API.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://pi31415.gitbook.io/haptic-jacket/installation-guide/macos.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
