###### tags: `TA Stuff 2021` `Pycom` `ESP32` # Tutorial 5: Alternative cloud solutions Please add comments if anything's unclear/not working. ## Send data via a specific network ### Send Data via Wi-Fi (webhooks) Webhooks (or POST-requests to a web API) generally require more data than the alternatives and that's why it's more suited for Wi-Fi (and maybe LTE if you got data to spare). Here's a guide you can follow to send data to **Ubidots** with webhooks from your Pycom device: https://help.ubidots.com/en/articles/961994-connect-any-pycom-board-to-ubidots-using-wi-fi-over-http This guide provides you with the library `urequest.py` and shows you how to write your code in `main.py`. The guide can be altered to send data as json to **any platform.** The only thing that's unique is the url and auth-token in the `post_var` function. Alter this to the approriate authorization and url. Look for the keyword "api" to find how you should format the url and authorization token if your chosen platform doesn't have a guide already. (Learn more about POST-requests, web api and REST in [Francis' lecture](https://www.youtube.com/watch?v=QSqSuzJCKKA). ) ### Send Data via Helium [//]: <> (AP: Christoffer Eid, Erik B och Love L) If you have set up your [Helium connection](https://hackmd.io/ikBVVe3zQymcUxo6rbIdlQ), you can now [create a label](https://docs.helium.com/use-the-network/console/labels) and attach it to your device to be used for your `integration`. ![Label](https://docs.helium.com/img/use-the-network/console/console-add-label.png) ![Integrations](https://docs.helium.com/img/use-the-network/console/console-integrations-add.png) When Helium is all set up and is recieving your LOPY4's sent packets it's time to choose an integration. Helium uses integrations to handle and showcase your data. Different integrations give you different possibilites of showcasing your data. Explore Helium's [**integrations section**](https://docs.helium.com/use-the-network/console/integrations) and find your integration of choice for a through step by step guide on how to set up and get started. There are thourough guide on everything from Ubidots to how to configure webhooks from Helium (HTTP) and also add MQTT integrations. :::info Hot tip: Use promo code `LINNAEUSDATACAKE2021` for unlimited free devices on Datacakes integration. ::: ### Send Data via TTN Follow this handmade tutorial: [TTS-Ubidots](https://hackmd.io/Q8xTeuV6RMSrWyczWFQs6A?view) to learn how to send data from TTS to Ubidots. Click [here](https://www.thethingsindustries.com/docs/integrations/cloud-integrations/) for other cloud integrations. ### Send Data via Sigfox Here's how you you set up a callback in the Sigfox Backend. A callback is essentially a Webhook/HTTP POST-request the Sigfox backend does for you to another platform. Similarly to how you'd send via Wi-Fi, but from the backend instead of directly from the device. (Learn more about POST-requests, web api and REST in [Francis' lecture](https://www.youtube.com/watch?v=QSqSuzJCKKA). ) Here's how you find where to set them up: ![](https://i.imgur.com/cMVqqYI.png) ![](https://i.imgur.com/NN8VK6B.png) ![](https://i.imgur.com/yHi4AWp.png) After clicking *new* you can setup a custom HTTP request to Datacake, Ubidots etc, or just use the built-in integrations with AWS, Azure or IBM Watson. Here's a full tutorial on how to send data from Sigfox to Ubidots: https://help.ubidots.com/en/articles/924209-setup-your-sigfox-callback-to-talk-with-ubidots-cloud Or from a Sipy(identical to lopy/lopy4 of fipy but only using sigfox): https://help.ubidots.com/en/articles/694725-connect-a-pycom-sipy-to-ubidots-using-sigfox-over-http This guide can be altered to send a POST request to any other platform which supports them (should be all of them). ## Low-Code Platforms You're familiar with Pybytes, which is a low-code (using [GUI](https://en.wikipedia.org/wiki/Graphical_user_interface) instead of writing code) solution. Here are two other easy-to-use solutions. ### Ubidots There are many resources on how to send from any Pycom device to Ubidots: https://help.ubidots.com/en/?q=pycom Feel free to use their search functionality to find your particular network. For TTS follow this guide: [TTS-Ubidots](https://hackmd.io/Q8xTeuV6RMSrWyczWFQs6A?view). ### Datacake [Getting started.](https://docs.datacake.de/mqtt/get-started) You can also up webhooks to datacake following this guide: https://docs.datacake.de/integrations/webhook ### Adafruit A full tutorial on how to send data to Adafruit over Wi-Fi and how to work with triggers and sending messages to Discord is available [**here.**](https://hackmd.io/@lnu-iot/Hys6ha6Tu) ## Big Data Platforms Beginner tutorials to get started on each platform is linked below. ### Amazon Web Services IoT [Getting started.](https://docs.aws.amazon.com/iot/latest/developerguide/iot-gs.html) ### Google IoT [Getting started.](https://cloud.google.com/iot/docs/how-tos/getting-started) ### IBM IoT [Getting started.](https://developer.ibm.com/technologies/iot/learningpaths/iot-getting-started-iot-development/) :::info **Credit** Written by Erik Karlsson, Christoffer Eid, David Mozart :::