From 8b0e38635eb5475013036ac51375fc4df182ec62 Mon Sep 17 00:00:00 2001 From: Colgaton Date: Fri, 19 Feb 2021 14:27:38 -0700 Subject: [PATCH 1/4] Made the steps clearer --- doc/HOMEASSISTANT.md | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/doc/HOMEASSISTANT.md b/doc/HOMEASSISTANT.md index 9d16e45..3c50add 100644 --- a/doc/HOMEASSISTANT.md +++ b/doc/HOMEASSISTANT.md @@ -57,10 +57,16 @@ e.g: `curl -X POST -H "Content-Type: application/json" 'http://127.0.0.1:8080/v1/register/+431212131491291/verify/123-456'` -When you try to register a number, if you receive a response like `{"error":"Captcha required for verification (null)\n"}` then Signal is requiring a captcha. To register the number you must do the following: +If you are trying to verify a number that has PIN assigned to it you will get an error message saying: "Verification failed! This number is locked with a pin". You can provide the PIN using "--data '{"pin": "your registration lock pin"}'" to the curl verification call: + +`curl -X POST -H "Content-Type: application/json" --data '{"pin": "your registration lock pin"}' 'http://127.0.0.1:8080/v1/register/+431212131491291/verify/123-456'` + + +When you try to register a number, if you receive a response like `{"error":"Captcha required for verification (null)\n"}` then Signal is requiring a captcha. To register the number you must do the following (in Mozilla Firefox): 1. Go to [https://signalcaptchas.org/registration/generate.html](https://signalcaptchas.org/registration/generate.html) 2. Open the developer console -3. Find the line that looks like this: `Prevented navigation to “signalcaptcha://{captcha value}” due to an unknown protocol.` Copy the captcha value +3. Answer the captcha +3. On the developer console, find the line that looks like this: `Prevented navigation to “signalcaptcha://{captcha value}” due to an unknown protocol.` Copy the captcha value 4. Use it to make the registration call like this: `curl -X POST -H "Content-Type: application/json" -d '{"captcha":"{captcha value}"}' 'http://127.0.0.1:8080/v1/register/` From 5d77e4c23225c5905c2ca7b3b3b47b0c96fc71ef Mon Sep 17 00:00:00 2001 From: Bernhard B Date: Sat, 20 Feb 2021 20:14:25 +0100 Subject: [PATCH 2/4] added ci.yml --- .github/workflows/ci.yml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..5949846 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,34 @@ +name: ci + +on: + push: + branches: + - '**' #every branch + pull_request: + branches: + - '**' #every branch + +jobs: + setup: + runs-on: ubuntu-latest + steps: + - name: Set up QEMU + uses: docker/setup-qemu-action@v1 + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v1 + - name: Available platforms + run: echo ${{ steps.buildx.outputs.platforms }} + build: + runs-on: ubuntu-latest + needs: setup + steps: + - uses: actions/checkout@master + with: + ref: ${{ github.ref }} + - name: Build + env: + VERSION: ${{ github.run_number }} + run: | + echo "Start CI build" + docker buildx build --platform linux/amd64,linux/arm64,linux/arm/v7 -t bbernhard/signal-cli-rest-api:${VERSION}-ci . + From a28829c7bd5a18733d5004001e13113d37efa300 Mon Sep 17 00:00:00 2001 From: Bernhard B Date: Sat, 20 Feb 2021 20:16:43 +0100 Subject: [PATCH 3/4] fixed ci.yml --- .github/workflows/ci.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5949846..726aeca 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -30,5 +30,8 @@ jobs: VERSION: ${{ github.run_number }} run: | echo "Start CI build" + docker run --rm --privileged multiarch/qemu-user-static --reset -p yes + docker buildx create --name multibuilder + docker buildx use multibuilder docker buildx build --platform linux/amd64,linux/arm64,linux/arm/v7 -t bbernhard/signal-cli-rest-api:${VERSION}-ci . From 377b3192a49235f0d04b38ad90ecc7b33f4d8e6e Mon Sep 17 00:00:00 2001 From: Bernhard B Date: Sat, 20 Feb 2021 20:17:47 +0100 Subject: [PATCH 4/4] fixed syntax error in ci.yml --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 726aeca..2449e01 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -31,7 +31,7 @@ jobs: run: | echo "Start CI build" docker run --rm --privileged multiarch/qemu-user-static --reset -p yes - docker buildx create --name multibuilder + docker buildx create --name multibuilder docker buildx use multibuilder docker buildx build --platform linux/amd64,linux/arm64,linux/arm/v7 -t bbernhard/signal-cli-rest-api:${VERSION}-ci .