-
Notifications
You must be signed in to change notification settings - Fork 8
Cloud Services
The H32_Basic firmware allows uploading the data to different cloud services. This is done by implementing a specific communication pattern for each individual cloud service. The configuration page allows you to select the correct service and provides two fields, the „API Key“ field and the „Additional Value“ field that are used to provide services-specific information needed to upload the data.
Only one service is active at any time. This minimizes the on-time of the ESP and thus the power consumption. You can configure the MQTT service in parallel, though, so if you absolutely need an upload to a large number of cloud services, then configure MQTT and do the processing and forwarding to multiple services on a system that is always on (e.g. the MQTT server).
And if you already have a server for MQTT, then the best way (YMMV) to present your data would be to pump the MQTT data into an influxdb and add Grafana as a frontend. This allows you to show the data exactly as you like, control how long the data is kept and who has access to it. Look into IOTStack for a simple way to install these tools and to keep them up to date.
ThingSpeak is a nice cloud service (free for private use) that provides analytic functionality for the data you send, as well as good charting abilities.
ThingSpeak offers you different channels with a maximum of 8 data sources each. In each channel you can show the different data sources together.
ThingSpeak uses an API key to restrict access to the data. To configure H32_Basic for ThingSpeak, find the „Write API Key“ on the channel details page. Copy this into the „API Key“ field. The „Additional Data“ field takes the channel number (typically 1). The H32_Basic should now transmit data every time it wakes up and successfully connects to the WiFi.
Field | Contents |
---|---|
API Key | Enter the „Write API Key“ |
Additional Data | Enter the channel number, typically 1 |
IOTPlotter is a very simple cloud service that can nonetheless store and plot your data. You can have an arbitrary number of feed which each can have an arbitrary number of data sources.
IOTPlotter uses an API key to restrict access to the data, and a Feed ID to identify the specific feed you want to write the data to. Copy the API key provided on the website to the „API Key“ field. The „Additional Data“ field takes the feed id. The H32_Basic should now transmit data every time it wakes up and successfully connects to the WiFi.
Field | Contents |
---|---|
API Key | Enter the API Key |
Additional Data | Enter the FEED_ID |
If no data is transmitted, then the best way to identify what went wrong is to hook the H32 up to the computer and read the serial output. That normally is enough to give you a hint what the problem is.