This project shows you how to make use of MKR1000 and Losant platform to build a simple weather dashboard monitoring temperature and humidity. With additional sensors, other weather metrics can be collected and analyzed so that more complex dashboard can be built.Setup MKR1000 with WiFIHTTPS
The Arduino MKR1000 supports HTTPS, but the limited memory size requires the certificate be uploaded to WiFi chip. This is a two steps process. First we load a sketch on the board and then run a program on our computer to upload the certificates.
Use the Arduino IDE to load the Firmware Updater Sketch onto your board.
Examples -> WiFi101 -> Firmware Updater
Second, download the WiFi101 Firmware Updater. Unzip the archive and run winc1500-uploader-gui.exe.
The HTTPS certificate for Losant webhooks is issued to
triggers.losant.com in the text field. Choose your COM port and upload the certificates.
Losant is a simple and powerful IoT cloud platform for developing the next generation of connected experiences. Losant offers device management with robust data visualization that reacts in real-time.
In this project, Losant's webhook is used to send the temperature and humidity data to Losant platform. Webhooks allow MKR1000 to trigger the MKR1000 Weather App application workflows via HTTP requests.Setup Losant elements and dashboard
Add two device attributes: temperature and humidity.
Take note of the webhook URL.
Add Webhook Trigger
Select the correct webhook from the dropdown.
Add Function Logic
Leave the function logic with default values.
Add Device Output
Select a device ID and set temperature state as
and humidity state as '
Add Temperature Block
Set temperature as Number Gauge.
Add Humidity Block
Set humidity as Dial Gauge.
Add Temperature vs Humidity Block
This a time series block. Pick the temperature and humidity attributes as data points. Time range is 60 minutes and one data point every 1 minute.