Hi Gang-
I'm a complete newbie trying to create my first moteino project- the mailbox sensor/MotionMote to email/sms using the instructions in the project (http://lowpowerlab.com/blog/2013/03/01/mailboxnotifier-moteino-based-mail-event-notifier/). I feel that I have the hardware portion operational but I am having trouble with the python script that I would like to run through mac OS X. I believe that I've successfully installed pyserial, and I've copied and tried to modify the code from the github directory (sendemail.py). Specifically, I've tried to input the serial port, but I keep receiving the following error upon execution.
File "movement.py", line 21, in <module>
ser = serial.Serial(SERIALPORT, BAUDRATE, timeout=10)
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/serial/serialutil.py", line 282, in __init__
self.open()
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/serial/serialposix.py", line 289, in open
self.fd = os.open(self.portstr, os.O_RDWR|os.O_NOCTTY|os.O_NONBLOCK)
OSError: [Errno 2] No such file or directory: '/dev/tty.usbserial-DA01714F'
Any advice or input would be greatly appreciated. Thank you all for your time and Felix for these awesome toys.
Hi and welcome loegel,
First I'd like to say the latest and greatest mailbox project (at this time) is using the hardware upgrades described in this post (http://lowpowerlab.com/blog/2015/02/03/mailbox-notifier-upgrade-3/). It really just addresses the lipo battery freezing issue (http://lowpowerlab.com/blog/2015/02/03/chinese-lithium-cells-freezing/) and adds a WeatherShield in the mailbox notifier for added weather parameters notifications. That being said all the past hardware versions should work and serve quite well. Just get whatever you have working then look into upgrading if that's something you might want.
Regarding the python ... you need to make sure you installed pyserial correctly, it sounds like you did.
The error you dumped looks like it cannot identify the serial port. Please check that your /dev/tty.usbserial-DA01714F serial port exists. You can run a program like minicom to do some basic serial loopback checking etc. For more on that search for minicom in this post (http://lowpowerlab.com/blog/2012/12/28/wattmote-moteino-based-wireless-killawatt/).