Dawn Robotics Forum Support and community forums for Dawn Robotics Ltd 2014-09-28T11:52:41+01:00 http://forum.dawnrobotics.co.uk/feed.php?f=15&t=1280 2014-09-28T11:52:41+01:00 2014-09-28T11:52:41+01:00 http://forum.dawnrobotics.co.uk/viewtopic.php?t=1280&p=1463#p1463 <![CDATA[Re: How to negate vernose Pymata messages?]]>
Arnold

Statistics: Posted by arnoldbail — Sun Sep 28, 2014 11:52 am


]]>
2014-09-28T11:35:22+01:00 2014-09-28T11:35:22+01:00 http://forum.dawnrobotics.co.uk/viewtopic.php?t=1280&p=1461#p1461 <![CDATA[Re: How to negate vernose Pymata messages?]]>
You need to go into the PyMata/PyMata source directory, then open up each of the .py files in turn and search for 'print' lines. You can comment these out, or ideally you could do what is done in ino_uploader.py which is to put

import logging

at the top of the file, and then replace print calls to logging.info, logging.warning etc. This way you can use the Python logging module to redirect error messages to either the terminal or a log file (or both).

Once you've made the code change you need to reinstall PyMata so that the changes work in your scripts. This is done from the main PyMata directory by running

sudo python setup.py install

Hope that helps, let me know if you need any more detail anywhere.

Regards

Alan

Statistics: Posted by Alan — Sun Sep 28, 2014 11:35 am


]]>
2014-09-27T12:02:01+01:00 2014-09-27T12:02:01+01:00 http://forum.dawnrobotics.co.uk/viewtopic.php?t=1280&p=1458#p1458 <![CDATA[How to negate vernose Pymata messages?]]>
I'm a relative noob with the Pi Co-op and I'm not sure where to ask this question?

How do I negate the runtime Pymata/Firmate messages?

Opening Arduino Serial port /dev/ttyS0
Please wait while Arduino is being detected. This can take up to 5 seconds ...
Board initialized in 0 seconds
Total Number of Pins Detected = 20
Total Number of Analog Pins Detected = 6

Statistics: Posted by arnoldbail — Sat Sep 27, 2014 12:02 pm


]]>