Re: Unable to insert data into MongoDB.

2016-02-16 Thread Arjun Srivatsa
Thanks a lot. Will implement that. Although I am able to do using just 2 scripts as well. On Monday, February 15, 2016 at 5:34:08 PM UTC+1, Peter Otten wrote: > Arjun Srivatsa wrote: > > > Hi Peter. > > > > Thank you for the reply. > > > > This is the read

Re: Unable to insert data into MongoDB.

2016-02-15 Thread Arjun Srivatsa
oth these scripts work independently. While, read_server shows the > output of the actual data from PLC, write_db inserts the sample data into the > MongoDB. > > I am not sure as to how to combine these both and get the desired output. > > > > On Monday, February 15, 2016 at 12:37:02

Re: Unable to insert data into MongoDB.

2016-02-15 Thread Arjun Srivatsa
oth and get the desired output. On Monday, February 15, 2016 at 12:37:02 PM UTC+1, Peter Otten wrote: > Arjun Srivatsa wrote: > > > I changed the port number from 27017 to 5 in the code segment: > > Instead of throwing arbitrary changes at your script in the hope that one > works

Re: Unable to insert data into MongoDB.

2016-02-15 Thread Arjun Srivatsa
t 5:09:53 PM UTC+1, MRAB wrote: > On 2016-02-11 15:12, Arjun Srivatsa wrote: > > Hi guys. I am basically transferring the data from PLC to PC (where the > > Python API runs) but I'm unable to insert into MongoDB thereafter. When I > > run the Python script on IDLE, the output is > &

Unable to insert data into MongoDB.

2016-02-11 Thread Arjun Srivatsa
Hi guys. I am basically transferring the data from PLC to PC (where the Python API runs) but I'm unable to insert into MongoDB thereafter. When I run the Python script on IDLE, the output is Hello World! Traceback (most recent call last): File "C:\Users\SRA2LO\Desktop\API.py", line 32, in

Re: Unable to insert data into MongoDB.

2016-02-11 Thread Arjun Srivatsa
Hello, I changed PORT = 27017 to PORT = 5. I am not getting the error anymore. But I am still unable to insert the data into MongoDB. On Thursday, February 11, 2016 at 4:12:30 PM UTC+1, Arjun Srivatsa wrote: > Hi guys. I am basically transferring the data from PLC to