<jupyter_start><jupyter_text>Signal definition samples for general sensor typeIn this sample, register signal definitions that convert the data obtained from iPhone sensors to Float type.``` Warning:   If signal definitions has already been registered to the server, you cannot register the signal definition of the same label.   Check that the target signal definition is not registered to the server, and then execute it.    If you want to check the signal definitions that have already been registered, execute signals.list().``` Data type listThe following data types are provided for general sensor data.| ID | English name ||:-------|:--------------------------------------- -------------------------------------------------- -|| 0x0001 | Acceleration **(Used in this tutorial)** || 0x0002 | Acceleration Including Gravity || 0x0003 | Gravity || 0x0004 | Rotation Rate || 0x0005 | Orientation Angle **(Used in this tutorial)** || 0x0006 | GeoLocation Coordinate || 0x0007 | GeoLocation Altitude || 0x0008 | GeoLocation Accuracy || 0x0009 | GeoLocation Heading || 0x000A | GeoLocation Speed |  Preparation Create a client.<jupyter_code>import intdash 

client = intdash.Client(
    url = "https://example.intdash.jp",
    username = "edge1",
    password="<PASSWORD>"
)<jupyter_output><empty_output><jupyter_text>Create an access object for signal definitions.<jupyter_code>sig = client.signals<jupyter_output><empty_output><jupyter_text>Register signal definitions  0001 Acceleration 3-axis acceleration acting on an object<jupyter_code>s = sig.create(
    label="sp_ACCX",
    data_type=intdash.DataType.general_sensor,
    data_id="0001",
    channel=1,
    conversion=intdash.ConversionNumFixedPoint(
        startbit=0,
        bitsize=32,
        endian="little",
        sign="signed",
        scale=0.000001,
        offset=0,
    ),
    display=intdash.Display(
        unit="",
        min=-10,
        max=10,
        format="%f",
    ),
)

print(s)
s = sig.create(
    label="sp_ACCY",
    data_type=intdash.DataType.general_sensor,
    data_id="0001",
    channel=1,
    conversion=intdash.ConversionNumFixedPoint(
        startbit=32,
        bitsize=32,
        endian="little",
        sign="signed",
        scale=0.000001,
        offset=0,
    ),
    display=intdash.Display(
        unit="",
        min=-10,
        max=10,
        format="%f",
    ),
)

print(s)
s = sig.create(
    label="sp_ACCZ",
    data_type=intdash.DataType.general_sensor,
    data_id="0001",
    channel=1,
    conversion=intdash.ConversionNumFixedPoint(
        startbit=64,
        bitsize=32,
        endian="little",
        sign="signed",
        scale=0.000001,
        offset=0,
    ),
    display=intdash.Display(
        unit="",
        min=-10,
        max=10,
        format="%f",
    ),
)

print(s)<jupyter_output>uuid: f49e7e23-bced-4f9f-86a4-e0ea4389c460
label: sp_ACCZ
description: 
data_type: 3
data_id: 0001
channel: 1
conversion: startbit: 64
bitsize: 32
endian: little
sign: signed
scale: 1e-06
offset: 0
display: unit: 
min: -10
max: 10
format: %f
hash: sha256:d8e103791dbebdf9e2e5d3ef7734f6b753c9ef87696f86d63fb11daeefe882fb
created_at: 2020-08-12 09:19:41.909019+00:00
updated_at: 2020-08-12 09:19:41.909019+00:00<jupyter_text>0002 Acceleration Including Gravity 3-axis acceleration acting on an object, including gravity<jupyter_code>s = sig.create(
    label="sp_AGX",
    data_type=intdash.DataType.general_sensor,
    data_id="0002",
    channel=1,
    conversion=intdash.ConversionNumFixedPoint(
        startbit=0,
        bitsize=32,
        endian="little",
        sign="signed",
        scale=0.000001,
        offset=0,
    ),
    display=intdash.Display(
        unit="",
        min=-10,
        max=10,
        format="%f",
    ),
)

print(s)

s = sig.create(
    label="sp_AGY",
    data_type=intdash.DataType.general_sensor,
    data_id="0002",
    channel=1,
    conversion=intdash.ConversionNumFixedPoint(
        startbit=32,
        bitsize=32,
        endian="little",
        sign="signed",
        scale=0.000001,
        offset=0,
    ),
    display=intdash.Display(
        unit="",
        min=-10,
        max=10,
        format="%f",
    ),
)

print(s)

s = sig.create(
    label="sp_AGZ",
    data_type=intdash.DataType.general_sensor,
    data_id="0002",
    channel=1,
    conversion=intdash.ConversionNumFixedPoint(
        startbit=64,
        bitsize=32,
        endian="little",
        sign="signed",
        scale=0.000001,
        offset=0,
    ),
    display=intdash.Display(
        unit="",
        min=-10,
        max=10,
        format="%f",
    ),
)

print(s)<jupyter_output>uuid: c6f2c096-9caf-425d-bb33-d47c4622cd50
label: sp_AGZ
description: 
data_type: 3
data_id: 0002
channel: 1
conversion: startbit: 64
bitsize: 32
endian: little
sign: signed
scale: 1e-06
offset: 0
display: unit: 
min: -10
max: 10
format: %f
hash: sha256:e602b5a4e3259a2518d92e44cb2d3fe4d25e06c4109c83bb6e3e2116fcc00eac
created_at: 2019-12-25 01:20:10.495558+00:00
updated_at: 2019-12-25 01:20:10.495558+00:00<jupyter_text>0003 Gravity 3-axis gravitational acceleration acting on an object<jupyter_code>s = sig.create(
    label="sp_GX",
    data_type=intdash.DataType.general_sensor,
    data_id="0003",
    channel=1,
    conversion=intdash.ConversionNumFixedPoint(
        startbit=0,
        bitsize=32,
        endian="little",
        sign="signed",
        scale=0.000001,
        offset=0,
    ),
    display=intdash.Display(
        unit="",
        min=-10,
        max=10,
        format="%f",
    ),
)

print(s)

s = sig.create(
    label="sp_GY",
    data_type=intdash.DataType.general_sensor,
    data_id="0003",
    channel=1,
    conversion=intdash.ConversionNumFixedPoint(
        startbit=32,
        bitsize=32,
        endian="little",
        sign="signed",
        scale=0.000001,
        offset=0,
    ),
    display=intdash.Display(
        unit="",
        min=-10,
        max=10,
        format="%f",
    ),
)

print(s)

s = sig.create(
    label="sp_GZ",
    data_type=intdash.DataType.general_sensor,
    data_id="0003",
    channel=1,
    conversion=intdash.ConversionNumFixedPoint(
        startbit=64,
        bitsize=32,
        endian="little",
        sign="signed",
        scale=0.000001,
        offset=0,
    ),
    display=intdash.Display(
        unit="",
        min=-10,
        max=10,
        format="%f",
    ),
)

print(s)<jupyter_output>uuid: 582a75b4-abe2-4443-9956-fb5a4fcf9f94
label: sp_GZ
description: 
data_type: 3
data_id: 0003
channel: 1
conversion: startbit: 64
bitsize: 32
endian: little
sign: signed
scale: 1e-06
offset: 0
display: unit: 
min: -10
max: 10
format: %f
hash: sha256:0776a43d411d8bfb5075fdfeb3ab8894a305084af27437abc13c933fff9cc173
created_at: 2019-12-25 01:20:37.453240+00:00
updated_at: 2019-12-25 01:20:37.453240+00:00<jupyter_text>0004 Rotation Rate Three-axis rotational speed of the object<jupyter_code>s = sig.create(
    label="sp_RRA",
    data_type=intdash.DataType.general_sensor,
    data_id="0004",
    channel=1,
    conversion=intdash.ConversionNumFixedPoint(
        startbit=0,
        bitsize=32,
        endian="little",
        sign="signed",
        scale=0.00001,
        offset=0,
    ),
    display=intdash.Display(
        unit="",
        min=-10,
        max=10,
        format="%f",
    ),
)

print(s)

s = sig.create(
    label="sp_RRB",
    data_type=intdash.DataType.general_sensor,
    data_id="0004",
    channel=1,
    conversion=intdash.ConversionNumFixedPoint(
        startbit=32,
        bitsize=32,
        endian="little",
        sign="signed",
        scale=0.00001,
        offset=0,
    ),
    display=intdash.Display(
        unit="",
        min=-10,
        max=10,
        format="%f",
    ),
)

print(s)

s = sig.create(
    label="sp_RRG",
    data_type=intdash.DataType.general_sensor,
    data_id="0004",
    channel=1,
    conversion=intdash.ConversionNumFixedPoint(
        startbit=64,
        bitsize=32,
        endian="little",
        sign="signed",
        scale=0.00001,
        offset=0,
    ),
    display=intdash.Display(
        unit="",
        min=-10,
        max=10,
        format="%f",
    ),
)

print(s)<jupyter_output>uuid: 06f1bd8e-4763-40b8-a7c5-9c0e07a0f7cb
label: sp_Roll
description: 
data_type: 3
data_id: 0004
channel: 1
conversion: startbit: 64
bitsize: 32
endian: little
sign: signed
scale: 1e-05
offset: 0
display: unit: 
min: -10
max: 10
format: %f
hash: sha256:8c6191b82f57f8f004b393212bdccbfd8cd1bfc05b5bd40c93e8d352cc35e9c4
created_at: 2020-07-28 09:11:07.948368+00:00
updated_at: 2020-07-28 09:11:07.948368+00:00<jupyter_text>0005 Orientation Angle Rotation angle of the three axes of the object<jupyter_code>s = sig.create(
    label="sp_Yaw",
    data_type=intdash.DataType.general_sensor,
    data_id="0005",
    channel=1,
    conversion=intdash.ConversionNumFixedPoint(
        startbit=0,
        bitsize=32,
        endian="little",
        sign="signed",
        scale=0.000001,
        offset=0,
    ),
    display=intdash.Display(
        unit="",
        min=-10,
        max=10,
        format="%f",
    ),
)

print(s)

s = sig.create(
    label="sp_Pitch",
    data_type=intdash.DataType.general_sensor,
    data_id="0005",
    channel=1,
    conversion=intdash.ConversionNumFixedPoint(
        startbit=32,
        bitsize=32,
        endian="little",
        sign="signed",
        scale=0.000001,
        offset=0,
    ),
    display=intdash.Display(
        unit="",
        min=-10,
        max=10,
        format="%f",
    ),
)

print(s)

s = sig.create(
    label="sp_Roll",
    data_type=intdash.DataType.general_sensor,
    data_id="0005",
    channel=1,
    conversion=intdash.ConversionNumFixedPoint(
        startbit=64,
        bitsize=32,
        endian="little",
        sign="signed",
        scale=0.000001,
        offset=0,
    ),
    display=intdash.Display(
        unit="",
        min=-10,
        max=10,
        format="%f",
    ),
)

print(s)<jupyter_output>uuid: dcedf645-1133-4119-afab-8b6aa9cce6ff
label: sp_Roll
description: 
data_type: 3
data_id: 0005
channel: 1
conversion: startbit: 64
bitsize: 32
endian: little
sign: signed
scale: 1e-06
offset: 0
display: unit: 
min: -10
max: 10
format: %f
hash: sha256:24f9eef81999e0a82b1b3002f4352691a48c110869084a2e35fb540ae99565f1
created_at: 2020-08-12 09:19:52.347259+00:00
updated_at: 2020-08-12 09:19:52.347259+00:00<jupyter_text>0006 GeoLocation Coordinate Geographic location - coordinates<jupyter_code>s = sig.create(
    label="sp_lat",
    data_type=intdash.DataType.general_sensor,
    data_id="0006",
    channel=1,
    conversion=intdash.ConversionNumFixedPoint(
        startbit=0,
        bitsize=32,
        endian="little",
        sign="signed",
        scale=0.0000001,
        offset=0,
    ),
    display=intdash.Display(
        unit="",
        min=-10,
        max=10,
        format="%f",
    ),
)

print(s)
s = sig.create(
    label="sp_lng",
    data_type=intdash.DataType.general_sensor,
    data_id="0006",
    channel=1,
    conversion=intdash.ConversionNumFixedPoint(
        startbit=32,
        bitsize=32,
        endian="little",
        sign="signed",
        scale=0.0000001,
        offset=0,
    ),
    display=intdash.Display(
        unit="",
        min=-10,
        max=10,
        format="%f",
    ),
)

print(s)<jupyter_output>uuid: fa3fcafe-e9ec-4d70-961d-953d42bfaf27
label: sp_lng
description: 
data_type: 3
data_id: 0006
channel: 1
conversion: startbit: 32
bitsize: 32
endian: little
sign: signed
scale: 1e-07
offset: 0
display: unit: 
min: -10
max: 10
format: %f
hash: sha256:9e335709ab26e90dbd418432ffb1d533d2ef0eec3957ec2aa4d8507b5b184e0f
created_at: 2019-12-24 05:54:31.004525+00:00
updated_at: 2019-12-24 05:54:31.004525+00:00<jupyter_text>0007 GeoLocation Altitude Geographic location - altitude<jupyter_code>s = sig.create(
    label="sp_alt",
    data_type=intdash.DataType.general_sensor,
    data_id="0007",
    channel=1,
    conversion=intdash.ConversionNumFixedPoint(
        startbit=0,
        bitsize=32,
        endian="little",
        sign="signed",
        scale=0.001,
        offset=0,
    ),
    display=intdash.Display(
        unit="",
        min=-10,
        max=10,
        format="%f",
    ),
)

print(s)<jupyter_output>uuid: 610105c2-b868-4ee2-92e3-659858cd6cd9
label: sp_alt
description: 
data_type: 3
data_id: 0007
channel: 1
conversion: startbit: 0
bitsize: 32
endian: little
sign: signed
scale: 0.001
offset: 0
display: unit: 
min: -10
max: 10
format: %f
hash: sha256:c28a29252fe7bc651f79a6270bfe77715444e02dffd2ffde623f7b77d5d1bc04
created_at: 2019-12-25 01:21:49.848413+00:00
updated_at: 2019-12-25 01:21:49.848413+00:00<jupyter_text>0008 GeoLocation Accuracy Geographic location - accuracy<jupyter_code>s = sig.create(
    label="sp_aoc",
    data_type=intdash.DataType.general_sensor,
    data_id="0008",
    channel=1,
    conversion=intdash.ConversionNumFixedPoint(
        startbit=0,
        bitsize=32,
        endian="little",
        sign="signed",
        scale=0.001,
        offset=0,
    ),
    display=intdash.Display(
        unit="",
        min=-10,
        max=10,
        format="%f",
    ),
)

print(s)
s = sig.create(
    label="sp_aoa",
    data_type=intdash.DataType.general_sensor,
    data_id="0008",
    channel=1,
    conversion=intdash.ConversionNumFixedPoint(
        startbit=32,
        bitsize=32,
        endian="little",
        sign="signed",
        scale=0.001,
        offset=0,
    ),
    display=intdash.Display(
        unit="",
        min=-10,
        max=10,
        format="%f",
    ),
)

print(s)<jupyter_output>uuid: 7284372a-49e2-48e4-a0e3-a3c7d986c852
label: sp_aoa
description: 
data_type: 3
data_id: 0008
channel: 1
conversion: startbit: 32
bitsize: 32
endian: little
sign: signed
scale: 0.001
offset: 0
display: unit: 
min: -10
max: 10
format: %f
hash: sha256:e5348703f1ecb9bb45f4a186e965e52045e225cf6cf43b67a9f954a47cd9be28
created_at: 2019-12-25 01:22:13.825649+00:00
updated_at: 2019-12-25 01:22:13.825649+00:00<jupyter_text>0009 GeoLocation Heading Geographical location - heading<jupyter_code>s = sig.create(
    label="sp_head",
    data_type=intdash.DataType.general_sensor,
    data_id="0009",
    channel=1,
    conversion=intdash.ConversionNumFixedPoint(
        startbit=0,
        bitsize=32,
        endian="little",
        sign="signed",
        scale=0.000001,
        offset=0,
    ),
    display=intdash.Display(
        unit="",
        min=-10,
        max=10,
        format="%f",
    ),
)

print(s)<jupyter_output>uuid: 783cd62e-5aad-4264-b981-d376196fb805
label: sp_head
description: 
data_type: 3
data_id: 0009
channel: 1
conversion: startbit: 0
bitsize: 32
endian: little
sign: signed
scale: 1e-06
offset: 0
display: unit: 
min: -10
max: 10
format: %f
hash: sha256:4a5756003cbf89ed2f5785d4cd4c5cc0413da90c7aba4bf410aa656c0501bc6d
created_at: 2019-12-24 05:54:33.881841+00:00
updated_at: 2019-12-24 05:54:33.881841+00:00<jupyter_text>000A GeoLocation Speed Geographic location - travel speed<jupyter_code>s = sig.create(
    label="sp_spd",
    data_type=intdash.DataType.general_sensor,
    data_id="000a",
    channel=1,
    conversion=intdash.ConversionNumFixedPoint(
        startbit=0,
        bitsize=32,
        endian="little",
        sign="signed",
        scale=0.001,
        offset=0,
    ),
    display=intdash.Display(
        unit="",
        min=-10,
        max=10,
        format="%f",
    ),
)

print(s)<jupyter_output>uuid: c26dbbf9-f7d1-434f-920a-edf26b985fbb
label: sp_spd
description: 
data_type: 3
data_id: 000A
channel: 1
conversion: startbit: 0
bitsize: 32
endian: little
sign: signed
scale: 0.001
offset: 0
display: unit: 
min: -10
max: 10
format: %f
hash: sha256:4ca841d8e025cc9c76e9fc1bc51c316af924b7e28d3466bdee4b4f1e8b95ec92
created_at: 2019-12-24 05:54:35.568991+00:00
updated_at: 2019-12-24 05:54:35.568991+00:00
{'fraction_non_alphanumeric': 0.12909720037747718, 'fraction_numerical': 0.11267694243472791, 'mean_word_length': 2.9046917219356425, 'pattern_counts': {'":': 0, '<': 40, '<?xml version=': 0, '>': 40, 'https://': 1, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '12', 'dir': 'jupyter-structured-clean-dedup', 'id': '486495', 'license': 'Apache-2.0', 'n_tokens_mistral': 6990, 'n_tokens_neox': 5887, 'n_words': 1020, 'path': 'en/0_create-signal-general-sensor/0_create-signal-general-sensor.ipynb', 'repo_name': 'aptpod/aws-marketplace-tutorials', 'size': '15898'}