The v1.0 Spectral Workbench API has been deprecated; for up-to-date documentation, please see the...
Public Lab is an open community which collaboratively develops accessible, open source, Do-It-Yourself technologies for investigating local environmental health and justice issues.
This is a testing site only. See the live Public Lab site here »
January 27, 2016 15:07
| over 6 years ago
The v1.0 Spectral Workbench API has been deprecated; for up-to-date documentation, please see the Spectral Workbench API page
The API (starting with the macro system, below) will make it possible for anyone to develop new functions, like:
We're building a simple API so people can write macros without a lot of fuss. There are 2 places to use macros - in the "Analyze" interface and in the "Capture" interface. The former is for performing operations on existing data, the latter for manipulating data while actually using your spectrometer. Both use the same library and have access to many (but not all) of the same functions.
A simple macro saving and sharing system is now live at: https://spectralworkbench.org/macros
If you are already logged into Spectral Workbench, you can begin by clicking here: https://spectralworkbench.org/macros/new
A very simple command to run in the macro console (works as of Oct 14 2012) would be:
Variables and methods
A range of variables and methods will be available to use in your macros. To start with, you can read through the existing framework here:
Saving client-side processed data
You should also be able to manipulate the JSON representation of data on the client side and save it to the server using the following URL format:
Upcoming variables and methods
Please add your own if you like:
Saving image data offline