Dear fellow-raspberry users,
I ran into a problem concerning a topic for my university. I am constructing flight mills (for insects) which should automattically record tha amount of times the mill makes a complete turn-around. Based on the e-book found here (https://leanpub.com/RPiMRE/read#leanpub ... ut-sensors GREAT book by the way!) I am now able to upload data to an online server. Problem is: no internet at the University. Does anyone know a way to write data onto a USB-device (maybe via a pre-configured excel file?) the code I am using now includes:
con = mdb.connect('localhost', \
cur = con.cursor()
cur.execute("""INSERT INTO events(event) VALUES(%s)""", ('catflap'))
except mdb.Error, e:
(off course I adjusted username and pasword (xxxxxxxxx) in order to acces my own database).
So basically what I want to do is change this code to one that writes the data to a USB device in stead of the internet.
Thanks for reading the long post, I hope somebody can help me out...