Documentation Index
Fetch the complete documentation index at: https://docs.nexalis.io/llms.txt
Use this file to discover all available pages before exploring further.
Python Examples
Learn how to query Nexalis Cloud’s real-time API using Python to fetch time-series data and integrate it into your data pipelines.Basic Query - Fetch scaled data into a JSON
⚠️ Warning: This will print all the data directly in your terminal.The response is a JSON array containing GTS (Geo Time Series) objects with labels, attributes, and time-value pairs.
💡 Tip: Learn how to use filters and regular expressions in the labels parameter to target specific data points. See Filtering Data for examples.
Basic Query - Fetch trapezoidal averages
💡 Tip: Learn how to use filters and regular expressions in the labels parameter to target specific data points. See Filtering Data for examples.
Convert JSON response to Pandas DataFrame
Once you have the JSON response, you can parse it and convert it to a pandas DataFrame:⚠️ Warning: Even if we’re only displaying a few rows of the dataframe (df.head()), your machine is loading it all to memory (pd.DataFrame(rows, columns[…])). It won’t be a problem for small dataframes but it can be slow for larger ones.This approach parses the GTS format into a flat DataFrame structure, making it easy to analyze with pandas or save to Delta Lake for further processing.
Create Plot: Values = f(Time)
Here is a short snippet to create a plot with matplotlib. Here we’re plotting values as a function of time, grouping by “subDeviceID”.Save as Delta table
Next Steps
- Learn about Nexalis Macros for simplified queries
- Explore PowerBI integration for dashboards
- Review the API documentation for more details