# TUM ESM Signal
Replaces the `shareable-timeseries-visualization` repository.
**Installation:**
```bash
poetry add tum-esm-signal
# or
pip install tum-esm-signal
```
**Usage:**
```python
from tum_esm_signal import TUM_ESM_SignalClient
signal_client = TUM_ESM_SignalClient(
cms_identity=cms_identity, cms_password=cms_password,
collection_name="test", table_name="test",
sensor_id="test",
)
data_column_co2 = signal_client.connect_column(
column_name="co2", unit="ppm",
minimum=350, maximum=4000, decimal_places=0,
)
data_column_ch4 = signal_client.connect_column(
column_name="ch4", unit="ppm",
minimum=1.6, maximum=3.0, decimal_places=2,
description="Methane",
)
while True:
print("Sending datapoints")
data_column_co2.add_datapoint(random.randint(350, 4000))
data_column_ch4.add_datapoint(random.random() * 1.4 + 1.6)
time.sleep(2)
```
Raw data
{
"_id": null,
"home_page": "https://github.com/tum-esm/signal",
"name": "tum-esm-signal",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.9,<4.0",
"maintainer_email": "",
"keywords": "python,library,utilities,plotting",
"author": "Moritz Makowski",
"author_email": "moritz@dostuffthatmatters.dev",
"download_url": "https://files.pythonhosted.org/packages/7b/ce/c00415faf499b3d2da5ac1ed526ee82b632b055f915df9ccf27f02ecd884/tum_esm_signal-0.3.0.tar.gz",
"platform": null,
"description": "\n# TUM ESM Signal\n\nReplaces the `shareable-timeseries-visualization` repository.\n\n**Installation:**\n\n```bash\npoetry add tum-esm-signal\n# or\npip install tum-esm-signal\n```\n\n**Usage:**\n\n```python\nfrom tum_esm_signal import TUM_ESM_SignalClient\n\nsignal_client = TUM_ESM_SignalClient(\n cms_identity=cms_identity, cms_password=cms_password,\n collection_name=\"test\", table_name=\"test\",\n sensor_id=\"test\",\n)\n\ndata_column_co2 = signal_client.connect_column(\n column_name=\"co2\", unit=\"ppm\",\n minimum=350, maximum=4000, decimal_places=0,\n)\ndata_column_ch4 = signal_client.connect_column(\n column_name=\"ch4\", unit=\"ppm\",\n minimum=1.6, maximum=3.0, decimal_places=2,\n description=\"Methane\",\n)\n\nwhile True:\n print(\"Sending datapoints\")\n data_column_co2.add_datapoint(random.randint(350, 4000))\n data_column_ch4.add_datapoint(random.random() * 1.4 + 1.6)\n time.sleep(2)\n```",
"bugtrack_url": null,
"license": "AGPL-3.0-only",
"summary": "",
"version": "0.3.0",
"project_urls": {
"Homepage": "https://github.com/tum-esm/signal",
"Repository": "https://github.com/tum-esm/signal"
},
"split_keywords": [
"python",
"library",
"utilities",
"plotting"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "fae161e211929a0cc106b9cb22febbedd31480c1def7acd1770cd523be379cdb",
"md5": "764fbd4d459a7311c4c9d76a4794ff87",
"sha256": "fad4fd3cd09b482979e320e36ac5022888b1a8f390a75e0d105040b98fb3497e"
},
"downloads": -1,
"filename": "tum_esm_signal-0.3.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "764fbd4d459a7311c4c9d76a4794ff87",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.9,<4.0",
"size": 4000,
"upload_time": "2023-06-22T23:02:21",
"upload_time_iso_8601": "2023-06-22T23:02:21.569412Z",
"url": "https://files.pythonhosted.org/packages/fa/e1/61e211929a0cc106b9cb22febbedd31480c1def7acd1770cd523be379cdb/tum_esm_signal-0.3.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "7bcec00415faf499b3d2da5ac1ed526ee82b632b055f915df9ccf27f02ecd884",
"md5": "ef1eaff60c4b20de662dc303fef3bb4d",
"sha256": "49e83374e1ea4b577903f0845969b894845aca16a5e03952d7f9bbd64c53bc03"
},
"downloads": -1,
"filename": "tum_esm_signal-0.3.0.tar.gz",
"has_sig": false,
"md5_digest": "ef1eaff60c4b20de662dc303fef3bb4d",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.9,<4.0",
"size": 3156,
"upload_time": "2023-06-22T23:02:23",
"upload_time_iso_8601": "2023-06-22T23:02:23.036040Z",
"url": "https://files.pythonhosted.org/packages/7b/ce/c00415faf499b3d2da5ac1ed526ee82b632b055f915df9ccf27f02ecd884/tum_esm_signal-0.3.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-06-22 23:02:23",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "tum-esm",
"github_project": "signal",
"github_not_found": true,
"lcname": "tum-esm-signal"
}