User Tools

Site Tools


python-osc-arduino

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
python-osc-arduino [2014/05/25 20:10]
zoza
python-osc-arduino [2014/05/26 08:43]
zoza
Line 11: Line 11:
 # open a file on the SD card and write the date and time of access # open a file on the SD card and write the date and time of access
 f_out = codecs.open("/​mnt/​sd/​arduino/​www/​pajton.csv",​ "​w",​ encoding="​utf-8"​) f_out = codecs.open("/​mnt/​sd/​arduino/​www/​pajton.csv",​ "​w",​ encoding="​utf-8"​)
-currentTime = datetime.fromtimestamp(int(time.time())).strftime('​%Y-%m-%d %H:%M: +currentTime = datetime.fromtimestamp(int(time.time())).strftime('​%Y-%m-%d %H:%M:%S') 
-f_out.write('​pisao'​+str(currentTime))+f_out.write('​pisao '​+str(currentTime))
 f_out.close() f_out.close()
  
  
 </​code>​ </​code>​
python-osc-arduino.txt · Last modified: 2014/05/26 09:01 by zoza