Autodesk tandem

Autodesk tandem

s315186
Participant Participant
761 Views
5 Replies
Message 1 of 6

Autodesk tandem

s315186
Participant
Participant

I’m experiencing an issue with Autodesk Tandem. I used Postman to upload data spanning 10 days for parameters such as air quality, humidity, and temperature. Despite this, the charts on the Tandem dashboard are not showing any variations.

s315186_0-1735048776216.png

 

0 Likes
762 Views
5 Replies
Replies (5)
Message 2 of 6

eimhin_raffertyC7GFZ
Autodesk
Autodesk

Could you confirm that: 

1. You have included a timestamp to each data point & that timestamp is mapped in the configure connections settings, The thread linked here may be helpful for you:  https://forums.autodesk.com/t5/tandem-forum/stream-load-data-chart-not-work/m-p/12237951#M338 

2. That the dates of your time series data fall into the most recent 14 day window?

 

0 Likes
Message 3 of 6

s315186
Participant
Participant

Yes, for both points:

  1. I have included a timestamp for each data point, and the timestamp is mapped in the "Configure Connections" settings.
  2. The dates of the time series data fall within the most recent 14-day window.

s315186_1-1735815808336.png

 

0 Likes
Message 4 of 6

eimhin_raffertyC7GFZ
Autodesk
Autodesk

Thanks for the clarification. I think the issue may be in how the payload is structured, 

 

Here is a simple example I use to test streams using Postman. The body is an array of objects, which results in many time series data points for a single stream as you would be expecting to see. I can't confirm that this is the only format which works for loading historic data, but this format has worked for me reliably.  

 

 

 

[
  {
    "ts": 1735815600,
    "temperature": 20,
    "humidity": 60
  },
  {
    "ts": 1735815900,
    "temperature": 20.5,
    "humidity": 61
  },
  {
    "ts": 1735816200,
    "temperature": 20.5,
    "humidity": 61
  }
]

 

 

 

Below you can see that object is a single payload, and i can cycle between the 3 objects which I posted in the configure connections panel. 

 

eimhin_raffertyC7GFZ_2-1735822616118.png

 

 

eimhin_raffertyC7GFZ_1-1735821852345.png

 

0 Likes
Message 5 of 6

s315186
Participant
Participant

I have encountered some challenges regarding historical data, bulk uploads, and Python-based integration with Autodesk Tandem. I would appreciate your guidance on these topics.

Here are my specific questions:

  1. Historical Data Handling:
    While I have successfully uploaded real-time data to Tandem and observed proper visualization, my attempts to upload historical data (using accurate epoch timestamps in milliseconds) did not yield the expected variations or updates in the chart. Does Tandem support backdated historical data visualization, and if so, are there any additional steps required to enable this functionality?

  2. Bulk Data Upload:
    I have been using Postman to upload JSON payloads in bulk. While it works for smaller batches, I am concerned about potential limitations (e.g., payload size or the number of data points per request). Could you provide guidelines or best practices for uploading large datasets efficiently?

  3. Python Integration and Authentication:
    I am implementing a Python script to automate the data upload process to Tandem. While I have successfully converted historical data (from CSV format) into JSON and formatted the timestamps to epoch time in milliseconds, I am facing issues with:

    • Authentication Token: I am unsure about the correct method to generate and manage the token required for authentication. Are there any specific Python libraries or best practices for handling the token exchange process?
    • Tandem Stream URL: I am unclear on how to correctly configure and authenticate against the stream URL for uploading data. Could you provide a detailed guide or API documentation on setting up and interacting with the Tandem streams using Python?

If possible, I would greatly appreciate arranging a Zoom meeting to discuss these topics in more detail. This would also allow me to share my current approach and receive direct feedback from your team. Please let me know a suitable time, and I will ensure my availability accordingly.

Thank you for your time and support. I look forward to your response.

s315186_0-1736410229403.png

 

0 Likes
Message 6 of 6

eimhin_raffertyC7GFZ
Autodesk
Autodesk

Here are some comments to your post:

1. Historical Data Handling

  •   Does Tandem support backdated historical data visualization,

Tandem does support historical data, including my previous post showing an example which works. The two issues you may be having are related to the format of the payload you are sending, or that your account is a free account and your most recent data and the historical data you are trying to upload is out of the free tier 14 day window.

If you continue to face issues, I suggest you share a anonymised sample of your data format here and we can have a look. 

 

  • and if so, are there any additional steps required to enable this functionality

The only additional step beyond what is needed for live stream data, is that you may require mapping the timestamp value in the configure connections menu. 

 

2. Bulk Data Upload

  • Could you provide guidelines or best practices for uploading large datasets efficiently

This is the API documentation regarding Tandem rate limits etc.  Tandem Data Rate Limits and Quotas | Tandem Data | Autodesk Platform Services reaching those limits. How you might reach those limits really depends on your data sets, I can imagine 3 years of sensor data at 1s intervals for 100s of data points could be problematic, but for typical IoT data set at 1-15min intervals within your 14 day window, I would expect it to be no issue, however this fully depends on your data and how you are sending it. 

 

3. Python Integration and Authentication

  • Authentication Token: I am unsure about the correct method to generate and manage the token required for authentication. Are there any specific Python libraries or best practices for handling the token exchange process?

There are loads of great python examples available in the Tandem Github repo specifically there is a section on the Readme which addresses 2-legged authentication

 

  • Tandem Stream URL: I am unclear on how to correctly configure and authenticate against the stream URL for uploading data. Could you provide a detailed guide or API documentation on setting up and interacting with the Tandem streams using Python

This may be a good example of what you are trying to achieve  github: tutorial-rest-python/streams/ingest-data-multiple-streams.py

in additional this blog post may be informative: Adding IOT sensors into Tandem API | Autodesk Platform Services. 

 

Hope this is helpful, and if you need more specific support share some sample data!