> For the complete documentation index, see [llms.txt](https://supportx.gitbook.io/buku-mantra-and-sihir/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://supportx.gitbook.io/buku-mantra-and-sihir/dds/dds-loop/gop-service-loop.md).

# GOP Service Loop

## Download

{% embed url="<https://drive.google.com/file/d/1Tha3UwJPhAIrW3r8yz28zsA0Mcwyt2Uo/view?usp=drive_link>" %}

{% hint style="info" %}
Include:

* GOP Service v.1.1
* pyhon 3.12.4
* sqlite3
* ws.html
  {% endhint %}

## Host

Buka notepad dengan Run Administrator, Open file dan arahkan ke C:/windows/system32/driver/etc/host. tambahkan baris baru dibawah ini

`10.206.253.6     dpdemo.sinarmasland.com`

<figure><img src="https://1731165174-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtQJu2Q0LuwmDBRrVlRsJ%2Fuploads%2FdZVAGhvmXTwASIdHjKv9%2Fimage.png?alt=media&amp;token=0a2ef4d8-e48f-4198-847e-31e0c93e1558" alt="" width="563"><figcaption></figcaption></figure>

## Install Python

Install python versi 3.12.4

Setelah install pyhon buka **`CMD`** ketik **`python`** jika berhasil akan muncul seperti dibawah ini

<figure><img src="https://1731165174-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtQJu2Q0LuwmDBRrVlRsJ%2Fuploads%2FTD0478HGT06MnLqKKMMG%2Fimage.png?alt=media&amp;token=8e802916-3bd5-4a61-9ba6-aaac5b42bcfa" alt="" width="563"><figcaption></figcaption></figure>

Lalu install library eventlet dan requests, install ini membutuhkan internet

```
pip install eventlet
pip install requests
```

## Install Sqlite3

## Setup Serive V.1.1

### Update database DDS Loop

Buka HeidiSql dengan type Sqlite3, find database `CF.db`  yang berada dalam folder instalan DDS Loop

<figure><img src="https://1731165174-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtQJu2Q0LuwmDBRrVlRsJ%2Fuploads%2FixV6q1nA1vTsRfrXskwc%2Fimage.png?alt=media&amp;token=f326294d-7854-4191-a216-fa854d2373fe" alt=""><figcaption></figcaption></figure>

<div><figure><img src="https://1731165174-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtQJu2Q0LuwmDBRrVlRsJ%2Fuploads%2FWQcjovQCwjvgZ2SEGlkv%2Fimage.png?alt=media&amp;token=ba514020-f66c-467b-beb0-70e7d39e4f4c" alt="" width="375"><figcaption></figcaption></figure> <figure><img src="https://1731165174-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtQJu2Q0LuwmDBRrVlRsJ%2Fuploads%2FvNR1JoCCA3j3oI9Frl6Y%2Fimage.png?alt=media&amp;token=0ec7dae8-bf53-4afe-bba0-b7fe0e459a24" alt="" width="375"><figcaption></figcaption></figure></div>

Tambahkan column `data1_id` di table `group_ls`&#x20;

<figure><img src="https://1731165174-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtQJu2Q0LuwmDBRrVlRsJ%2Fuploads%2FC7Wfl0bc0EKQfrJL7z4f%2Fimage.png?alt=media&amp;token=4ef65298-4b90-48f5-9ea4-e9c6cf0c3989" alt="" width="563"><figcaption></figcaption></figure>

<figure><img src="https://1731165174-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtQJu2Q0LuwmDBRrVlRsJ%2Fuploads%2F6HhUkT3vyY9jie3UNZaq%2Fimage.png?alt=media&amp;token=bfe75fba-f1cf-49ef-b21c-639cc85fac5b" alt="" width="563"><figcaption></figcaption></figure>

### Setup GOP Service

Copy/Paste file di dalam folder **GOP Service v.1.1** ke folder **CF** didalam folder aplikasi DDS Loop

`C:\Program Files (x86)\System Aksesindo Perdana\DDS Counter\CF`

{% hint style="danger" %}

* Aplikasi service API (GOP\_Serivice\_v.1.1) nya terlebih dahulu di running, baru running aplikasi DDS
* Pastikan semua koneksi database tidak ada ( contoh yang di CMD ataupun yang di heidsql ) saat running applikasi service nya sebelum running
* Apabila ada update Setting di DDS pastikan kolom \[\_data1\_id] yang ada di table \[group\_ls] sesuai dengan relasi yang ada di table \[data1], karena saat update setting biasaya berubah.
  {% endhint %}

1\. Klik 2 x file \[ws.html]

2\. Jalankan service nya, dengan masuk ke \[CMD] dimana file service di simpan, ketik \[python server.py] tekan tombol enter
