Standalone to Cloud

The bridge will allow you to use the 2Smart Cloud mobile app to control 2Smart Standalone devices.

What you need to use the bridge

  • installed 2Smart Standalone,
  • the added device in the 2Smart Standalone,
  • account in 2Smart Cloud,
  • installed 2Smart Cloud mobile app.

Getting the credentials from the 2Smart Cloud via Account setting

  1. Go to your account on the 2Smart Cloud platform - https://cloud.2smart.com/

    Please note! The 2Smart Cloud uses a single account for the developer and the mobile application user. Therefore, device end-users can also use their credentials to log into the platform.

  2. Go to the Account settings page. Account settings page

  3. Click the “Show all tokens” button.

  4. In the window that appears, click the “Generate token" button.

    Access token generating

  5. Specify a name for the new token – for example, “Test". Click the “Generate” button.

    Access token

  6. Copy the API Token and Secret Token values to the corresponding fields of the Standalone to Cloud bridge settings window.

    Please note! The Secret Token value is displayed only once, right after the token is generated, so you must copy it immediately.

Getting the credentials from 2Smart Cloud via Swagger

  1. Get CSRF Token:
  2. Go to the https://cloud.2smart.com/swagger.
  3. First of all, you need to get a CSRF Token. Choose path /csrf_token, click the “Try it out” button and then click the blue button “Execute”.
  4. When receiving the token, copy it to the clipboard.

    Swagger window

  5. Login to the 2Smart Cloud with Swagger.

Below you will see the path /vendor/login. Click on this path, then click the “Try it out” button. Paste the previously copied CSRF Token into the corresponding field and specify your email and password. Click the blue button “Execute” to log in to the system.

Swagger window

  1. Create an API token to connect 2Smart to the 2SmartCloud.
  2. Open link https://cloud.2smart.com/swagger/#/site/post_vendor_api_tokens.
  3. Click the “Try it out” button, paste the previously copied CSRF Token into the corresponding field and specify your API token name. Click the blue button “Execute” to create an API token. Copy access_token and secret_token to notes.

    Swagger window

Soon, this feature will be available from the interface of the 2Smart Cloud vendor panel.

Bridge installation

  1. Go to the 2Smart Standalone admin panel.
  2. Open the Market page.
  3. Find the needed bridge in the list.
  4. Install it.

Market section

Setup

  1. Go to the Service Manager page.
  2. Click the “Setup Service” list.
  3. Choose Standalone to Cloud.

    Service Manager section

  4. Paste access_token from notes into the “Cloud API token” field.
  5. Paste secret_token from notes into the “Cloud secret token” field.
  6. The Standalone pin may be empty if you don’t have security options on widgets.
  7. Click the “Save” button to create a bridge.

    Service Manager section

  8. Click on the toggle to enable the bridge.

Adding widgets to the user’s panel

The user’s screen includes such capabilities:

  • Add new widgets.
  • Add new screens.
  • Edit name of the screen.
  • Edit widget layout.
  • Scale widgets.
  • Add pin code to the panel.

Add new widgets to the user’s panel, and they will appear in your 2smart Cloud account in a minute.

2Smart Standalone user’s panel

2Smart Cloud mobile application

User’s panel and mobile app

results matching ""

    No results matching ""