This repository contains several example applications that demonstrate the integration capabilities of the Profinity API and how you can use these APIs to develop custom website, mobile applications or do data science using Profinity as your back end datasource.
- Battery Charging Station (Web Application)
- Artificial Intelligence Chat (Web Application)
- Vehicle Dashboard (Mobile Application)
- Matlab Data Science using Prohelion BMS (Matlab/Octave Example)
- Python Data Science using Prohelion BMS (Python Example)
All of these examples have been developed to use data from the supplied example PET Profile. To get examples working load the PET Profile and replay the Example PET CAN Log, putting the log in replay mode will keep the example CAN running.
A web application that demonstrates how to integrate Profinity APIs with Square's payment processing system to create a battery-powered charging station. The application monitors battery pack usage through Profinity's APIs and processes payments using Square's APIs for the consumed power.
- Real-time monitoring of battery pack status and power consumption
- Secure payment processing through Square
- User-friendly interface for both station operators and customers
- Detailed logging of power consumption and associated costs
A web application that provides a chat interface for querying Profinity data using natural language. It uses Ollama for local LLM inference and connects to Profinity via MCP (Model Context Protocol) so you can ask questions about components, signals, and historical data.
- Natural language queries about Profinity data
- MCP integration for Profinity components, signals, and metadata
- Login via the web UI or optional token for headless use
- Works with any Ollama model that supports tool calling (e.g. qwen3:14b, llama3.2)
A cross-platform mobile application built with React Native and Expo that demonstrates how to connect to and use Profinity APIs. The app provides real-time access to WaveSculptor and BMS information, offering a simple vehicle monitoring solution.
Login Screen |
Dashboard Screen |
- Cross-platform support (Android & iOS)
- Real-time vehicle data monitoring
- WaveSculptor and BMS information integration
- User authentication and secure access
- Modern, responsive user interface
A Matlab/Octave script that demonstrates how to authenticate with the Prohelion API, retrieve data from a Gen1 1000V BMS, and plot the cell voltages from each Cell Management Unit (CMU).
- Compatible with Matlab and GNU Octave
- Prompts for server URL, username, and password
- Plots cell voltages for each CMU
Example Output:
-
This example requires GNU Octave 10.0 or later for full compatibility with web APIs (such as webwrite and webread with JSON payloads).
-
Older versions of Octave (prior to 10.0) may not work correctly with webwrite for JSON APIs due to limitations in HTTP and JSON support.
-
If you encounter errors with webwrite or web API access, please upgrade your Octave installation to version 10 or later.
-
MATLAB is also supported.
A Python script that demonstrates how to authenticate with the Prohelion API, retrieve data from a Gen1 1000V BMS, and plot the cell voltages from each Cell Management Unit (CMU).
- Written in Python 3
- Uses requests and matplotlib
- Prompts for server URL, username, and password
- Plots cell voltages for each CMU
Example Output:
Each example application has its own detailed documentation and setup instructions. Please refer to the respective README files in each application's directory for specific setup and running instructions.
Common prerequisites for all applications:
- Profinity API access credentials
- A running Profinity instance
- Internet connection
Additional requirements for each application:
-
Battery Charging Station (Web):
- Node.js (v14 or later)
- Yarn (recommended) or npm
- Square API credentials
-
Vehicle Dashboard (Mobile):
- Node.js (v14 or later)
- Yarn (recommended) or npm
- Expo CLI
- For iOS development: Xcode (Mac only)
- For Android development: Android Studio
-
Matlab Data Science using Prohelion BMS:
- Matlab (R2018b or later) or GNU Octave (v10.0.0 or later)
-
Python Data Science using Prohelion BMS:
- Python 3.7 or later
- pip (for installing dependencies)
-
Artificial Intelligence Chat (Web):
- Python 3.12 or later
- Ollama installed and running
- An Ollama model that supports tool calling (e.g. qwen3:14b)
- Profinity running with MCP enabled
This project is licensed under the MIT License - see the LICENSE.txt file for details.
For support, please contact Prohelion Support via our website at www.prohelion.com
/public/screen-shot.png)
/AI_Example.png)
/assets/login-screen-shot.png)
/assets/dashboard-screen-shot.png)

