<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Send data from FiPy to server]]></title><description><![CDATA[<p dir="auto">Hello Team,</p>
<p dir="auto">I am trying to send sensor data from FiPy to server. (Ex. i am using my local computer as server with MySQL as DB). Am running below code in atom but getting ImportError No module named MySQLdb.</p>
<p dir="auto">#!/usr/bin/python<br />
import MySQLdb<br />
#Setting up connection<br />
db = MySQLdb.connect(host=&quot; &quot;,  # your host<br />
user=&quot; &quot;,       # username<br />
passwd=&quot; &quot;,     # password<br />
db=&quot; &quot;) # fill with dredentials</p>
<p dir="auto">cursor = db.cursor()<br />
sql = &quot;INSERT INTO EMPLOYEE(FIRST_NAME, <br />
LAST_NAME, AGE, SEX, INCOME) <br />
VALUES ('%s', '%s', '%d', '%c', '%d' )&quot;</p>
<p dir="auto">try:<br />
cursor.execute(sql)<br />
db.commit() #// SAVE PERMANENTLY<br />
except:<br />
db.rollback() #// IF U GOT ERROR ROLL BACK ALL UR CHANGES<br />
db.close()</p>
<p dir="auto">Please help me with this. How to send data from FiPy to server, if anyone can share code for the same it would be great help.</p>
<p dir="auto">Waiting for you valuable responses , kindly reply as soon as possible.</p>
<p dir="auto">Thank You</p>
]]></description><link>https://forum.pycom.io/topic/3004/send-data-from-fipy-to-server</link><generator>RSS for Node</generator><lastBuildDate>Sat, 13 Jun 2026 02:40:03 GMT</lastBuildDate><atom:link href="https://forum.pycom.io/topic/3004.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 09 Apr 2018 10:30:06 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Send data from FiPy to server on Mon, 09 Apr 2018 10:30:06 GMT]]></title><description><![CDATA[<p dir="auto">Hello Team,</p>
<p dir="auto">I am trying to send sensor data from FiPy to server. (Ex. i am using my local computer as server with MySQL as DB). Am running below code in atom but getting ImportError No module named MySQLdb.</p>
<p dir="auto">#!/usr/bin/python<br />
import MySQLdb<br />
#Setting up connection<br />
db = MySQLdb.connect(host=&quot; &quot;,  # your host<br />
user=&quot; &quot;,       # username<br />
passwd=&quot; &quot;,     # password<br />
db=&quot; &quot;) # fill with dredentials</p>
<p dir="auto">cursor = db.cursor()<br />
sql = &quot;INSERT INTO EMPLOYEE(FIRST_NAME, <br />
LAST_NAME, AGE, SEX, INCOME) <br />
VALUES ('%s', '%s', '%d', '%c', '%d' )&quot;</p>
<p dir="auto">try:<br />
cursor.execute(sql)<br />
db.commit() #// SAVE PERMANENTLY<br />
except:<br />
db.rollback() #// IF U GOT ERROR ROLL BACK ALL UR CHANGES<br />
db.close()</p>
<p dir="auto">Please help me with this. How to send data from FiPy to server, if anyone can share code for the same it would be great help.</p>
<p dir="auto">Waiting for you valuable responses , kindly reply as soon as possible.</p>
<p dir="auto">Thank You</p>
]]></description><link>https://forum.pycom.io/post/18203</link><guid isPermaLink="true">https://forum.pycom.io/post/18203</guid><dc:creator><![CDATA[Nazz]]></dc:creator><pubDate>Mon, 09 Apr 2018 10:30:06 GMT</pubDate></item><item><title><![CDATA[Reply to Send data from FiPy to server on Mon, 09 Apr 2018 10:33:42 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.pycom.io/uid/2591">@nazz</a><br />
You cannot use mysql directly - create some service on your computer and connect your Fipy to it<br />
<a href="https://forum.pycom.io/topic/813/mysql">https://forum.pycom.io/topic/813/mysql</a></p>
]]></description><link>https://forum.pycom.io/post/18204</link><guid isPermaLink="true">https://forum.pycom.io/post/18204</guid><dc:creator><![CDATA[livius]]></dc:creator><pubDate>Mon, 09 Apr 2018 10:33:42 GMT</pubDate></item><item><title><![CDATA[Reply to Send data from FiPy to server on Mon, 09 Apr 2018 10:57:46 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.pycom.io/uid/199">@livius</a><br />
Hello,</p>
<p dir="auto">Thank you very much for your quick response, as am new to server and pycom, it would be great help if you could share the code from fipy side and server side with step by step procedure.</p>
<p dir="auto">Thank You</p>
]]></description><link>https://forum.pycom.io/post/18208</link><guid isPermaLink="true">https://forum.pycom.io/post/18208</guid><dc:creator><![CDATA[Nazz]]></dc:creator><pubDate>Mon, 09 Apr 2018 10:57:46 GMT</pubDate></item></channel></rss>