Official SDKs and community libraries to integrate KSP Cloud into your applications
Maintained by KSP Electronics with comprehensive documentation and support
Official Python library for KSP Cloud API. Perfect for data science and automation.
pip install ksp-cloudBrowser and Node.js compatible SDK. Build web apps and dashboards.
npm install @ksp/cloud-sdkEnterprise-grade Java library for Android and server applications.
implementation "com.ksp:cloud-sdk:1.0.5"Lightweight Go package for high-performance applications.
go get github.com/ksp-electronics/ksp-go-sdkConnect Arduino devices directly to KSP Cloud. ESP8266/ESP32 compatible.
Arduino Library Manager: "KSP Cloud"# Install
pip install ksp-cloud
# Usage
from ksp_cloud import KSPClient
# Initialize client
client = KSPClient(api_key="your_api_key")
# Get all devices
devices = client.devices.list()
print(f"Found {len(devices)} devices")
# Get device data
data = client.devices.get_data("deltax_001")
print(f"Temperature: {data.temperature}°C")
# Set up alert
client.alerts.create(
device_id="deltax_001",
min_temp=2.0,
max_temp=8.0,
notify_whatsapp=True
)
# Get historical data
history = client.devices.get_history(
device_id="deltax_001",
start="2025-12-01",
end="2025-12-07",
interval="1h"
)
# Export to pandas DataFrame
df = history.to_dataframe()
print(df.describe())// Install
npm install @ksp/cloud-sdk
// Usage (Node.js / Browser)
import { KSPClient } from '@ksp/cloud-sdk';
// Initialize client
const client = new KSPClient({
apiKey: 'your_api_key'
});
// Get all devices
const devices = await client.devices.list();
console.log(`Found ${devices.length} devices`);
// Get device data
const data = await client.devices.getData('deltax_001');
console.log(`Temperature: ${data.temperature}°C`);
// Real-time updates with WebSocket
client.subscribe('deltax_001', (data) => {
console.log('New reading:', data.temperature);
});
// React Hook Example
import { useDevice } from '@ksp/cloud-sdk/react';
function DeviceMonitor() {
const { data, loading } = useDevice('deltax_001');
if (loading) return <div>Loading...</div>;
return (
<div>
Temperature: {data.temperature}°C
</div>
);
}// Install via Arduino Library Manager: "KSP Cloud"
#include <KSPCloud.h>
// Initialize
KSPCloud cloud("your_api_key");
void setup() {
Serial.begin(115200);
// Connect to WiFi
cloud.begin("YourWiFi", "YourPassword");
// Register device
cloud.registerDevice("my_sensor");
}
void loop() {
// Read sensor
float temp = readTemperature();
// Send to cloud
cloud.send("temperature", temp);
// Check for OTA updates
cloud.checkUpdate();
delay(60000); // Send every minute
}
float readTemperature() {
// Your sensor reading code
return 25.3;
}Third-party integrations and tools built by the community
Built something cool with KSP Cloud?
Share on GitHubCheck out our comprehensive documentation and code examples