{"id":15195545,"url":"https://github.com/mindsphere/analytics-examples","last_synced_at":"2025-10-02T11:31:21.718Z","repository":{"id":52600056,"uuid":"239200911","full_name":"mindsphere/analytics-examples","owner":"mindsphere","description":"Introduction to MindSphere Analytics APIs - The notebooks use @mindconnect/mindconnect-nodejs CLI for API calls.","archived":true,"fork":false,"pushed_at":"2021-04-23T21:48:56.000Z","size":2466,"stargazers_count":18,"open_issues_count":0,"forks_count":10,"subscribers_count":8,"default_branch":"master","last_synced_at":"2024-09-28T23:41:09.081Z","etag":null,"topics":["analytics","docker","hacktoberfest","ipynb","jupyter-lab","kpi-calculation","kpi-calculation-api","mindsphere","mindsphere-analytics","mindsphere-analytics-apis","siemens","spectrum-analysis","spectrum-analysis-api","trend-prediction","trend-prediction-api"],"latest_commit_sha":null,"homepage":"","language":"Jupyter Notebook","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mindsphere.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-02-08T20:37:01.000Z","updated_at":"2024-07-06T06:35:19.000Z","dependencies_parsed_at":"2022-09-07T05:51:32.752Z","dependency_job_id":null,"html_url":"https://github.com/mindsphere/analytics-examples","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mindsphere%2Fanalytics-examples","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mindsphere%2Fanalytics-examples/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mindsphere%2Fanalytics-examples/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mindsphere%2Fanalytics-examples/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mindsphere","download_url":"https://codeload.github.com/mindsphere/analytics-examples/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":234983162,"owners_count":18917425,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["analytics","docker","hacktoberfest","ipynb","jupyter-lab","kpi-calculation","kpi-calculation-api","mindsphere","mindsphere-analytics","mindsphere-analytics-apis","siemens","spectrum-analysis","spectrum-analysis-api","trend-prediction","trend-prediction-api"],"created_at":"2024-09-27T23:41:14.562Z","updated_at":"2025-10-02T11:31:16.288Z","avatar_url":"https://github.com/mindsphere.png","language":"Jupyter Notebook","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003c!-- @format --\u003e\n\n# MindSphere Analytics Examples\n\n\u003c!-- markdownlint-disable MD033 --\u003e\n\u003cimg src=\"images/analytics-examples.svg\" alt=\"mindconnect-nodejs\" width=\"250px\"/\u003e\n\u003c!-- markdownlint-enableMD033 --\u003e\n\nExamples how to use the mindSphere analytics APIs.\n\n[![The MIT License](https://img.shields.io/badge/license-MIT-009999.svg?style=flat)](./LICENSE.md)\n[![Documentation](https://img.shields.io/badge/mindsphere-documentation-%23009999.svg)](https://opensource.mindsphere.io/docs/analytics-examples/index.html)\n[![Forum](https://img.shields.io/badge/mindsphere-community-%23009999.svg)](https://community.plm.automation.siemens.com/t5/Developer-Space/bd-p/MindSphere-platform-forum)\n\n## Jupyter Notebooks demonstrating the use of the MindSphere Analytics APIs\n\n\n### Trend Prediction API\n\nThe Trend Prediction API predicts future values for time series using linear and nonlinear regression models. It is a forecasting framework, that has many useful applications in the area of Process \u0026 Condition Monitoring.\n\nExample: [Trend Prediction API](trend-prediction.ipynb)\n\n### KPI Calculation API\n\nThe KPI Calculation API computes Key Performance Indicators (KPIs) for an asset. It uses data sources such as sensors, control units and calendars.\n\nExample: [KPI Calculation API](kpi-calculation.ipynb)\n\n### Spectrum Analysis API\n\nSpectrum Analysis API allows users to perform time domain and frequency domain analysis. It provides functions to transform a time-domain signal into its frequency components (via Discrete Fourier Transform) and to detect threshold breaches of their amplitudes.\n\nExample: [Spectrum Analysis API](spectrum-analysis.ipynb)\n\n## Running the notebook\n\nThe easiest way to run the notebook is to use `mindspheredemos/analytics-examples` [docker container](https://hub.docker.com/r/mindspheredemos/analytics-examples).\n\nYou can either build the container locally\n\n```bash\ndocker build .\n```\n\nor you can pull the container from docker hub.\n\n```bash\ndocker pull mindspheredemos/analytics-examples\n```\n\nYou can run the container using following command:\n\n```bash\ndocker run -it -p:8888:8888 -p:4994:4994 --name examples mindspheredemos/analytics-examples\n```\n\nThe container will offer two endpoints:\n\n-   MindSphere CLI [http://localhost:4994](http://localhost:4994)\n-   Jupyter Lab [http://localhost:8888](http://localhost:8888)\n\nPlease configure the CLI with app credentials [as described here](https://opensource.mindsphere.io/docs/mindconnect-nodejs/cli/setting-up-the-cli.html)\n\nAfter that you can start using the jupyter lab with the notebooks. Just copy the token from the container output. The notebooks can be found in `work` folder.\n\n![jupyter lab](images/notebook.png)\n\n(If you have started the container in the background you can get the token by running `docker logs examples` command.)\n\n## Docker Base Image\n\nThe docker image is based on [jupyter/scipy-notebook docker image](https://hub.docker.com/r/jupyter/scipy-notebook/).\n\n\n## Siemens API Notice\n\nThis project has been released under an [Open Source license](./LICENSE.md). The release may include and/or use APIs to Siemens’ or third parties’ products or services. In no event shall the project’s Open Source license grant any rights in or to these APIs, products or services that would alter, expand, be inconsistent with, or supersede any terms of separate license agreements applicable to those APIs. “API” means application programming interfaces and their specifications and implementing code that allows other software to communicate with or call on Siemens’ or third parties’ products or services and may be made available through Siemens’ or third parties’ products, documentations or otherwise.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmindsphere%2Fanalytics-examples","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmindsphere%2Fanalytics-examples","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmindsphere%2Fanalytics-examples/lists"}