Add a Time-Series (Signal) to your Amphora

Amphoras are standardised data containers. To share your data, you need to create an Amphora then fill it with whatever data you want.

Add Signal on web app

Signals are numeric data that change over time. Add a signal by clicking Signals in the top right of your Amphora detail's page, then click the + button to add a new property (i.e. the name of the signal), e.g. temperature.

Add signal amphora

Now you can submit a value for that signal (e.g. the current temperature) via the New Values button. Once submitted, you'll start seeting data on the graph.

It may take up to a minute for the new value to be processed and to show on the graph.

View signal amphora

Add Signal programmatically

There are two steps to adding a signal. You first need to add the Signal object then add data to the object.

Python

The basic code for creating the signal is

amphora.create_signal("signal_name", attributes={"units":"XYZ"})

and the basic code for updating a signal is

amphora.push_signals_dict_array(Signals)

You can get started adding and updating Signals with the code

# Import Amphora modules
from amphora.client import AmphoraDataRepositoryClient, Credentials
# Import non-Amphora modules
import os
# Login to amphoradata.com
credentials = Credentials(username=os.getenv('username'), password=os.getenv('password'))
client = AmphoraDataRepositoryClient(credentials)
# Create signal object. Update as often as you wish
Signals = [dict(t = datetime_value, signal_name = signal_value)]
# Get Amphora object
amphora = client.get_amphora(Amphora_id)
# Create signal
amphora.create_signal("signal_name", attributes={"units":"XYZ"})
# Create update signal
amphora.push_signals_dict_array(Signals)

You can download this code from GitHub. There is also more detailed docs in the Python SDK section. There is also a tutorial video you can watch too.

C#

Code for pulling signals can be found on GitHub. We are expanding our docs for C# so stay tuned for more details.

Node.js

Code for pulling signals can be found on GitHub. We are expanding our docs for Node.js so stay tuned for more details.