Comments (6)
Okay, so I have got it working. MindSphere was rejecting the data because of the timestamp format.
I was using the "toString()" function, which let it pass the MindConnect node checks but then obviously it got rejected.
To create a timestamp with "new Date()" would return a huge list of errors. It was just a matter of using the toISOString() function.
So in the end my timestamps would be made as such:
var timestamp = new Date().toISOString();
dict.timestamp = timestamp;
I'm quite a novice programmer, so I hope this info can help others like me in the future. Is it possible to add some tidbit like this to the docs for the bulk upload section?
Thanks for taking the time to assist in getting it all working!
from node-red-contrib-mindconnect.
@Peekaboo-Cockatoo At the first glance, you are using the local time stamp instead of the UTC time stamps in your msgFail.txt. Could you please convert those time stamps to UTC and try again ? (Sorry for the brevity, I am on vacation....)
from node-red-contrib-mindconnect.
@sn0wcat Changing the timestamp to UTC gives the exact same result unfortunately.
from node-red-contrib-mindconnect.
@Peekaboo-Cockatoo Have you already checked in the agent diagnostic app (on your launchpadj and/or talked to the support if MindSphere is dropping your data because of some misconfiguration / problem on the MindSphere side? When the agent says that the data has been delivered , it only means that the ingest endpoint has accepted them, not that the data has been stored in the iot or the aggregates have been built (these are both asynchronous processes)
https://documentation.mindsphere.io/resources/html/agent-diagnostic/en-US/122438280075.html
https://community.plm.automation.siemens.com/t5/General-Forum/Uploading-Time-Series-Data/td-p/598700
from node-red-contrib-mindconnect.
@sn0wcat Agent Diagnostics returns:
[Dropped] TimeSeries Data is dropped. Validation failed for reason <Pre-processing of <21> data points ended with <0> valid and <21> dropped data points. Following issues found: Invalid timestamps count is <7> resulting <21> data point value to be dropped.Invalid timestamps includes: <[Tue, 30 Jul 2019 01:31:14 GMT, Tue, 30 Jul 2019 01:31:17 GMT, Tue, 30 Jul 2019 01:31:20 GMT, Tue, 30 Jul 2019 01:31:23 GMT, Tue, 30 Jul 2019 01:31:26 GMT, Tue, 30 Jul 2019 01:31:29 GMT, Tue, 30 Jul 2019 01:31:32 GMT]>.>
I'll contact MindSphere Support and let you know the results.
from node-red-contrib-mindconnect.
The documentation has been updated.
https://opensource.mindsphere.io/docs/node-red-contrib-mindconnect/getting-started.html#tab1anchor3
from node-red-contrib-mindconnect.
Related Issues (20)
- Mindsphere node V3.10.0 gives error in IOT2040 HOT 3
- Typo in the sample flow for IDL upload HOT 1
- ETIMEDOUT when trying to upload data HOT 11
- feat: add message to read static and dynamic variable data from assets
- Installation error in linux HOT 1
- problems with docker image on raspberry pi
- Problems connecting to Mindsphere in Node-Red and Asset connections with more than 100 data point HOT 2
- feat: upgrade node to 2.0. version of node-red HOT 1
- Simatic IOT2040 lost connection
- DietPi 8.1.2, Node-red 2.2.2 HOT 3
- HTTP Status 500 Internal Error
- HTTP Status (500 Internal Error) HOT 2
- Don´t know how to see data received from node-red mindconnect in mindsphere. HOT 2
- feat: add BOOL validator to node.
- feat: add advanced settings to node with custom location for .mc files HOT 1
- IOT2050 - 4G - Network error : Socket hang up HOT 1
- feat: Add Metadata Tags when uploading files to Integrated Data Lake
- Error: EROFS: read-only file system, mkdir '//.mc/' HOT 2
- mindconnect not compatible with node version node:20.2.0-buster-slim
- Node.js Package: jsonwebtoken < 9.0.0 - Multiple Vulnerabilities
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from node-red-contrib-mindconnect.