import psutil
import time
import sys

#check to make sure there is an argument passed
args = sys.argv
if len(args) > 1:
	#TODO - connect to the serial port to pass information to the arduino
	while True:
		cpuPercent = psutil.cpu_percent(interval=1)
		memory = psutil.virtual_memory()
		hard_drive = psutil.disk_usage('/')

		#TODO - send information to arduino
		print cpuPercent
		print memory.percent
		print hard_drive.percent
		time.sleep(5)
else:
	print "Please pass the serial port connected to arduino"
@@ -29,16 +29,30 @@
 port sys
+%0Aimport serial
 %0A%0A#check
@@ -198,16 +198,56 @@
 arduino%0A
+%09arduino = serial.Serial(args%5B1%5D, 9600)%0A
 %09while T

Connect to serial port