| Author |
Message |
![[Post New]](/forum/templates/default/images/icon_minipost_new.gif) 20/12/2010 05:44:23
|
profnova
Initiate
Joined: 17/01/2010 16:13:53
Messages: 6
Offline
|
Hi,
is it possible somehow to create a texte file (csv for example) as
data source? Can someone give me ideas? Thanks...
|
|
|
 |
![[Post New]](/forum/templates/default/images/icon_minipost_new.gif) 07/01/2011 12:07:10
|
mlohbihler
Master
![[Avatar]](/forum/images/avatar/eccbc87e4b5ce2fe28308fd9f2a7baf3.png)
Joined: 01/03/2007 22:48:52
Messages: 1850
Offline
|
Currently, no. But it is something that is being considered. You'd just want to be able to do a browse/upload of a file?
|
Best regards,
Matthew Lohbihler |
|
|
 |
![[Post New]](/forum/templates/default/images/icon_minipost_new.gif) 11/03/2011 06:56:39
|
mkhadem
Initiate
Joined: 11/03/2011 06:49:36
Messages: 5
Offline
|
Hi,
I need this functinality too. I like to setup a schedule for example every five minutes read the file (CSV format) from ftp server and link each value to a data point. Your help is appreciated.
Similar to SQL data sources
Thanks
Mo
|
|
|
 |
![[Post New]](/forum/templates/default/images/icon_minipost_new.gif) 11/03/2011 08:11:48
|
oja
Initiate
Joined: 07/10/2010 03:49:54
Messages: 40
Offline
|
Maybe the way exists.
You can use Javascript with imported FileInputStream and FileOutputStream. Or, you can create JAVA library for CSV file controlling and import to Javascript in datapoint.
I am using this for serial communication with unsuported protocols etc. Siemens Elan protocol.
Please, describe your requirements for CSV access.
Oja
|
|
|
 |
![[Post New]](/forum/templates/default/images/icon_minipost_new.gif) 11/03/2011 15:41:20
|
mkhadem
Initiate
Joined: 11/03/2011 06:49:36
Messages: 5
Offline
|
Hi,
I can use the event handler and choose the type as Process and run the script (e.g. JavaScript) to read the CSV file and write it into a database (Derby, MySQL, etc).
The rest is easy to setup a SQL data source and map the table columns into data points. I appreciate if you can suggest an effective way to write the script to read the file and write it into DB.
Thanks
Mo
|
|
|
 |
![[Post New]](/forum/templates/default/images/icon_minipost_new.gif) 15/03/2011 00:38:27
|
mlohbihler
Master
![[Avatar]](/forum/images/avatar/eccbc87e4b5ce2fe28308fd9f2a7baf3.png)
Joined: 01/03/2007 22:48:52
Messages: 1850
Offline
|
The most effective way would be to create a data source that can read CSV text files, similar to how the point data upload module works in M2M2.
|
Best regards,
Matthew Lohbihler |
|
|
 |
![[Post New]](/forum/templates/default/images/icon_minipost_new.gif) 15/03/2011 06:05:52
|
mkhadem
Initiate
Joined: 11/03/2011 06:49:36
Messages: 5
Offline
|
Thx Matthew,
Is there any plan to integrate it in M2M2?
Mo
|
|
|
 |
![[Post New]](/forum/templates/default/images/icon_minipost_new.gif) 18/03/2011 21:55:52
|
mlohbihler
Master
![[Avatar]](/forum/images/avatar/eccbc87e4b5ce2fe28308fd9f2a7baf3.png)
Joined: 01/03/2007 22:48:52
Messages: 1850
Offline
|
You mean in M2M? No, there are no plans to port it over.
|
Best regards,
Matthew Lohbihler |
|
|
 |
![[Post New]](/forum/templates/default/images/icon_minipost_new.gif) 31/05/2013 22:09:11
|
pbisiac
Initiate
Joined: 31/05/2013 13:26:35
Messages: 5
Offline
|
oja wrote:Maybe the way exists.
You can use Javascript with imported FileInputStream and FileOutputStream. Or, you can create JAVA library for CSV file controlling and import to Javascript in datapoint.
I am using this for serial communication with unsuported protocols etc. Siemens Elan protocol.
Please, describe your requirements for CSV access.
Oja
Hi, that's exactly what I need
I wish to read some datapoints BOTH via Modbus/TCP when my device is online, and to read same datapoints stored locally in devices filesystem and uploaded to my server via some backup connection, in roder not to lose recordings on unreliable networks. Could you please explain better how to implement such a Javascript task and to integrate into Mango, or address me to a working example ?
|
|
|
 |
|
|