# Firefly

## **Connecting Firefly to MClimate’s LoRaWAN broker**

### **1. Go to {your o**rganization}-> Settings-> API Keys, create new one and copy it&#x20;

![](https://3940008670-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-McDr-jr9h3qA888r1Yp%2Fuploads%2FZj9AvLj6SoBiL0gE0saU%2FScreenshot%202022-11-09%20at%2013.54.08.png?alt=media\&token=c69680a3-7300-49b5-a7ed-56653a230211)

### **2. Go to Sinks and click on create new sink**&#x20;

![](https://3940008670-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-McDr-jr9h3qA888r1Yp%2Fuploads%2FyVGeMZuno9v2iPzsUbQC%2FScreenshot%202022-11-09%20at%2013.55.10.png?alt=media\&token=cbd8ed80-99a2-4b3e-a445-d639c0b7dea5)

### **3. Get downlink token**

* **Go to** [**https://developers.mclimate.eu/lorawan-token**](https://developers.mclimate.eu/lorawan-token) **and Sign in with your MClimate account.**
* **Enter the name of the webhook**
* **Paste the API Key.**

![](https://3940008670-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-McDr-jr9h3qA888r1Yp%2Fuploads%2FIDaLNcmY5H0qakWrWXPE%2FScreenshot%202022-11-09%20at%2014.17.17.png?alt=media\&token=851eb157-929c-479e-a451-374f34ae5f67)

* **Copy the token**

![](https://3940008670-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-McDr-jr9h3qA888r1Yp%2Fuploads%2FvyJp9ul8E5culBl2gVmf%2FScreenshot%202022-11-09%20at%2013.55.27.png?alt=media\&token=d9433010-2325-4c5b-8ef0-d06ce073adef)

### 4.Enter the URL in the Webhook

* **The URL should be** [**https://lorawan-broker.seemelissa.com/firefly?token=**](https://lorawan-broker.seemelissa.com/firefly?token=600f97b5abc986ab95a81029de29c5d7\&url=lora.national.iothub.no)**{developers\_portal\_token}** [**\&url= {optional url of your instance}**](https://lorawan-broker.seemelissa.com/firefly?token=600f97b5abc986ab95a81029de29c5d7\&url=lora.national.iothub.no)
* **\*Default downlink URL is api.fireflyiot.com**
* **Content Type is application/json**
* **Triggers should be All Events**

![](https://3940008670-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-McDr-jr9h3qA888r1Yp%2Fuploads%2FZMPZSDYAiRCNzCPvqBuV%2FScreenshot%202022-11-09%20at%2013.57.03.png?alt=media\&token=cec37077-02e5-4f9c-9309-afa0f3002feb)

### 5. Save new webhook

### 6. Done
