Skip to content
FogLAMP "ThingSpeak" C++ north plugin: send readings data to the MathWorks ThingSpeak web API.
Branch: develop
Clone or download
Singhal-Vaibhav Merge pull request #21 from foglamp/master
 v1.6.0 release - master to develop
Latest commit 5c94c17 May 23, 2019
Type Name Latest commit message Commit time
Failed to load latest commit information.
include Added missing files Sep 7, 2018
.gitignore fields config item config fixes and readonly attribute added for plugin Nov 22, 2018
Description FOGL-2824: Add Package and Description files to north plugins to enab… May 15, 2019
LICENSE FOGL-2785 Correct company name in license file May 13, 2019
README.rst make_deb automated to check underlying arch and build dependency Nov 28, 2018
foglamp.version VERSION changed May 22, 2019
mkversion FOGL-2338 External VERSION file support Jan 24, 2019
plugin.cpp Fix make_deb script for new VERSION file Jan 24, 2019


FogLAMP "ThingSpeak" C++ North Plugin

This is a FogLAMP north plugin for talking to the MathWorks ThingSpeak web API. This allows buffered reading to be sent to the ThingSpeak API and further analysed in MATLAB.


To build FogLAMP "ThingSpeak" C++ filter plugin:

$ mkdir build
$ cd build
$ cmake ..
  • By default the FogLAMP develop package header files and libraries are expected to be located in /usr/include/foglamp and /usr/lib/foglamp
  • If FOGLAMP_ROOT env var is set and no -D options are set, the header files and libraries paths are pulled from the ones under the FOGLAMP_ROOT directory. Please note that you must first run 'make' in the FOGLAMP_ROOT directory.

You may also pass one or more of the following options to cmake to override this default behaviour:

  • FOGLAMP_SRC sets the path of a FogLAMP source tree
  • FOGLAMP_INCLUDE sets the path to FogLAMP header files
  • FOGLAMP_LIB sets the path to FogLAMP libraries
  • FOGLAMP_INSTALL sets the installation path of Random plugin
  • The FOGLAMP_INCLUDE option should point to a location where all the FogLAMP header files have been installed in a single directory.
  • The FOGLAMP_LIB option should point to a location where all the FogLAMP libraries have been installed in a single directory.
  • 'make install' target is defined only when FOGLAMP_INSTALL is set


  • no options

    $ cmake ..

  • no options and FOGLAMP_ROOT set

    $ export FOGLAMP_ROOT=/some_foglamp_setup

    $ cmake ..


    $ cmake -DFOGLAMP_SRC=/home/source/develop/FogLAMP ..


    $ cmake -DFOGLAMP_INCLUDE=/dev-package/include ..


    $ cmake -DFOGLAMP_LIB=/home/dev/package/lib ..


    $ cmake -DFOGLAMP_INSTALL=/home/source/develop/FogLAMP ..

    $ cmake -DFOGLAMP_INSTALL=/usr/local/foglamp ..

Packaging for 'thingspeak' north

This repo contains the scripts used to create a foglamp-north-thingspeak Debian package.

The make_deb script

Run the make_deb command:

$ ./make_deb help
make_deb [help|clean|cleanall]
This script is used to create the Debian package of FoglAMP C++ 'thingspeak' north plugin
 help     - Display this help text
 clean    - Remove all the old versions saved in format .XXXX
 cleanall - Remove all the versions, including the last one

Building a Package

Finally, run the make_deb command:

$ ./make_deb
The package root directory is   : /home/ubuntu/source/foglamp-north-thingspeak
The FogLAMP required version    : >=1.4
The package will be built in    : /home/ubuntu/source/foglamp-north-http-thingspeak/packages/build
The architecture is set as      : x86_64
The package name is             : foglamp-north-thingspeak-1.0.0-x86_64

Populating the package and updating version file...Done.
Building the new package...
dpkg-deb: building package 'foglamp-filter-scale' in 'foglamp-north-thingspeak-1.0.0-x86_64.deb'.
Building Complete.

Cleaning the Package Folder

Use the clean option to remove all the old packages and the files used to make the package.

Use the cleanall option to remove all the packages and the files used to make the package.

You can’t perform that action at this time.