{"action":"created","issue":{"url":"https://api.github.com/repos/jgyates/genmon/issues/4","repository_url":"https://api.github.com/repos/jgyates/genmon","labels_url":"https://api.github.com/repos/jgyates/genmon/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/jgyates/genmon/issues/4/comments","events_url":"https://api.github.com/repos/jgyates/genmon/issues/4/events","html_url":"https://github.com/jgyates/genmon/issues/4","id":217111723,"number":4,"title":"Serial port error","user":{"login":"JeremyStevenson","id":9870956,"avatar_url":"https://avatars0.githubusercontent.com/u/9870956?v=3","gravatar_id":"","url":"https://api.github.com/users/JeremyStevenson","html_url":"https://github.com/JeremyStevenson","followers_url":"https://api.github.com/users/JeremyStevenson/followers","following_url":"https://api.github.com/users/JeremyStevenson/following{/other_user}","gists_url":"https://api.github.com/users/JeremyStevenson/gists{/gist_id}","starred_url":"https://api.github.com/users/JeremyStevenson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JeremyStevenson/subscriptions","organizations_url":"https://api.github.com/users/JeremyStevenson/orgs","repos_url":"https://api.github.com/users/JeremyStevenson/repos","events_url":"https://api.github.com/users/JeremyStevenson/events{/privacy}","received_events_url":"https://api.github.com/users/JeremyStevenson/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2017-03-27T01:16:37Z","updated_at":"2017-03-28T15:33:48Z","closed_at":null,"body":"jgyates - this is awesome that you've done this. THANK YOU!\r\n\r\nI've run into a few problems on setup, and would appreciate some help.\r\n\r\nFirst, I ran into the exception below. I solved that exception by putting \"enable_uart=1\" at the end of /boot/config.txt. Looks like this is required for all Raspberry Pi 3s if you are using the built in serial port (as opposed to a usb serial port). If this is the correct fix, you may want to add this to the documentation. I am using a Pi Zero W.\r\n\r\nSecond, when I tried to run ClientInterface.py from the OtherApps directory I got an exception that mylog.py wasn't found. I moved the program to the same directory as mylog.py and problem solved. \r\n\r\nThird, and this is where I'm stuck, when I got ClientInterface.py running I got a warning, \"WARNING: Not receiving data. : ,\" I've tried switching around the TX and RX lines in my wiring, and no luck. I don't get any output from genmon.py as if it is hung. Am I supposed to get output from genmon.py? Is there some basic direct access of the serial port I can do to test my hardware?\r\n\r\nThanks in advance, and thank you for writing this including the very detailed documentation.\r\n\r\n-Jeremy\r\n\r\n----\r\nException from First issue:\r\n\r\npi@GeneratorRPi:/genmon $ sudo python genmon.py\r\nTraceback (most recent call last):\r\n  File \"genmon.py\", line 2510, in <module>\r\n    MyGen = GeneratorDevice()\r\n  File \"genmon.py\", line 334, in __init__\r\n    self.FatalError(\"Error opening serial device: \" + str(e1))\r\n  File \"genmon.py\", line 2429, in FatalError\r\n    raise Exception(Message)\r\nException: Error opening serial device: global name 'FatalError' is not defined\r\nError in atexit._run_exitfuncs:\r\nTraceback (most recent call last):\r\n  File \"/usr/lib/python2.7/atexit.py\", line 24, in _run_exitfuncs\r\n    func(*targs, **kargs)\r\n  File \"genmon.py\", line 2434, in Close\r\n    self.mail.sendEmail(\"Generator Monitor Stopping at \" + self.SiteName, \"Generator Monitor Stopping at \" + self.SiteName )\r\nAttributeError: GeneratorDevice instance has no attribute 'mail'\r\nError in sys.exitfunc:\r\nTraceback (most recent call last):\r\n  File \"/usr/lib/python2.7/atexit.py\", line 24, in _run_exitfuncs\r\n    func(*targs, **kargs)\r\n  File \"genmon.py\", line 2434, in Close\r\n    self.mail.sendEmail(\"Generator Monitor Stopping at \" + self.SiteName, \"Generator Monitor Stopping at \" + self.SiteName )\r\nAttributeError: GeneratorDevice instance has no attribute 'mail'\r\n"},"comment":{"url":"https://api.github.com/repos/jgyates/genmon/issues/comments/289809417","html_url":"https://github.com/jgyates/genmon/issues/4#issuecomment-289809417","issue_url":"https://api.github.com/repos/jgyates/genmon/issues/4","id":289809417,"user":{"login":"jgyates","id":4513286,"avatar_url":"https://avatars2.githubusercontent.com/u/4513286?v=3","gravatar_id":"","url":"https://api.github.com/users/jgyates","html_url":"https://github.com/jgyates","followers_url":"https://api.github.com/users/jgyates/followers","following_url":"https://api.github.com/users/jgyates/following{/other_user}","gists_url":"https://api.github.com/users/jgyates/gists{/gist_id}","starred_url":"https://api.github.com/users/jgyates/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jgyates/subscriptions","organizations_url":"https://api.github.com/users/jgyates/orgs","repos_url":"https://api.github.com/users/jgyates/repos","events_url":"https://api.github.com/users/jgyates/events{/privacy}","received_events_url":"https://api.github.com/users/jgyates/received_events","type":"User","site_admin":false},"created_at":"2017-03-28T15:33:48Z","updated_at":"2017-03-28T15:33:48Z","body":"If you want to have direct email for these questions my email is jason.yates (at) gmail . Once you send me an email I will delete this message."}}
{"actor":{"display_login":"jgyates"}}