Migrate Elder care app & Google sheets logger

You can host a SmartApp in two ways:

  1. As a Webhook - it would be basically a server that can be called. For example:
    In this tutorial, we use Glitch as the host to run our NodeJS code: Simple SmartApp Tutorial (SmartApp SDK)
    In my case, I started the server on my local machine and used NGROK to generate an HTTPS tunnel to the corresponding port.
    The URL you register in the Dev Workspace is the one where you can access the code in execution.

In this case, you need to install Node on your Raspberry, create the folder for your NodeJS project and install the dependencies for it to run.
You can download this sample, copy it to your raspberry, and follow the instructions in Start > Local:

  1. AWS > Lambda function. This requires an AWS account and several configurations to upload it (AWS CLI) and execute it.
    Here’s an example of a SmartApp prepared to upload it to AWS: GitHub - SmartThingsCommunity/smartapp-example-no-devices-nodejs-lambda: Give Lambda SmartApps a try without any physical devices.

The SmartApp will appear in Routines > add > Discover for you to install once you:

  1. Register it in the Developer Workspace
  2. Deploy it to test (also in the Dev WS)
  3. Enable the developer mode in the SmartThings app.
1 Like