-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
19 changed files
with
750 additions
and
247 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../libraries/TerkinTelemetry |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# TerkinData backlog | ||
|
||
## Iteration +1 | ||
- [o] SQL serializer / interface | ||
- https://registry.platformio.org/libraries/khoih-prog/MySQL_MariaDB_Generic | ||
- https://registry.platformio.org/libraries/mustafakemalgilor/tdslite | ||
|
||
- https://github.com/platformio/platform-espressif32 | ||
- https://github.com/bxparks/EpoxyDuino#PlatformIO | ||
- https://github.com/TawalMc/TinyDatabase_Arduino | ||
|
||
## Iteration +2 | ||
- Add [BERadio] serialization format. | ||
- Spin off into separate repository https://github.com/daq-tools/terkin. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,132 @@ | ||
.. include:: ../resources.rst | ||
|
||
.. _lib-terkin-telemetry: | ||
|
||
################### | ||
TerkinTelemetry C++ | ||
################### | ||
|
||
.. tip:: | ||
|
||
Please `continue reading this document on our documentation space | ||
<https://hiveeyes.org/docs/arduino/TerkinTelemetry/README.html>`_, | ||
all inline links will be working there. | ||
|
||
|
||
***** | ||
About | ||
***** | ||
|
||
TerkinTelemetry C++ provides an universal interface to user-space Arduino code, in order | ||
to generalize interfacing with a range of telemetry backends. | ||
|
||
TerkinTelemetry C++ provides backend drivers for supporting different telemetry communication | ||
paths, similar to what RadioHead provides as adapters to different radio link hardware, | ||
and TinyGSM provides as adapters to different modems. Examples: Generic JSON, CrateDB, | ||
InfluxDB. | ||
|
||
For collecting telemetry data, and for marshalling them into different output formats, | ||
the library uses TerkinData C++. | ||
|
||
The software is currently alpha quality. Here be dragons. | ||
|
||
|
||
******** | ||
Synopsis | ||
******** | ||
|
||
.. highlight:: cpp | ||
|
||
Setup | ||
===== | ||
:: | ||
|
||
// The address of the data acquisition channel. | ||
ChannelAddress* address = new ChannelAddress(CHANNEL_REALM, CHANNEL_OWNER, CHANNEL_SITE, CHANNEL_DEVICE); | ||
|
||
// The actual transmitter element. | ||
JsonHttpTransmitter* transmitter = new JsonHttpTransmitter(KOTORI_URL); | ||
|
||
// The telemetry client. | ||
telemetry = new TelemetryClient(transmitter, address); | ||
|
||
Collect and transmit | ||
==================== | ||
:: | ||
|
||
// Collect sensor data. | ||
TerkinData::Measurement measurement; | ||
measurement.data["temperature"] = 42.42; | ||
measurement.data["humidity"] = 80; | ||
|
||
// Transmit measurement to telemetry data collection server. | ||
telemetry->transmit(measurement); | ||
|
||
|
||
***** | ||
Usage | ||
***** | ||
|
||
.. highlight:: bash | ||
|
||
Build for embedded targets | ||
========================== | ||
:: | ||
|
||
# Acquire source code repository. | ||
git clone https://github.com/hiveeyes/arduino | ||
|
||
# Select firmware. | ||
cd arduino/libraries/TerkinTelemetry/examples | ||
|
||
# Build examples for all designated platforms. | ||
make | ||
|
||
Build individual programs:: | ||
|
||
PLATFORMIO_SRC_DIR=http-cratedb pio run --environment=esp32 | ||
|
||
Build and run on POSIX | ||
====================== | ||
Build and run all examples on your workstation:: | ||
|
||
make run | ||
|
||
Run individual examples:: | ||
|
||
make http-cratedb | ||
make http-kotori | ||
|
||
|
||
|
||
******** | ||
Download | ||
******** | ||
|
||
| Please download a recent version from GitHub: | ||
| https://github.com/hiveeyes/arduino/tree/main/libraries/TerkinTelemetry | ||
|
||
************ | ||
Dependencies | ||
************ | ||
|
||
- `ArduinoSTL`_ by Mike Matera. | ||
- `ArduinoJSON`_ by Benoît Blanchon. | ||
- `TerkinData`_ and `Terrine`_ by Andreas Motl. | ||
|
||
|
||
********* | ||
Etymology | ||
********* | ||
|
||
Terkin | ||
====== | ||
| Epitomizes the greatest, the most immenense, the supreme and the paramount one. | ||
| Basically, the fundamental individual. | ||
| | ||
| -- http://www.urbandictionary.com/define.php?term=Terkin | ||
|
||
.. _ArduinoJSON: https://github.com/bblanchon/ArduinoJson | ||
.. _ArduinoSTL: https://github.com/mike-matera/ArduinoSTL |
Oops, something went wrong.