{"action":"created","issue":{"url":"https://api.github.com/repos/simat/BatteryMonitor/issues/12","repository_url":"https://api.github.com/repos/simat/BatteryMonitor","labels_url":"https://api.github.com/repos/simat/BatteryMonitor/issues/12/labels{/name}","comments_url":"https://api.github.com/repos/simat/BatteryMonitor/issues/12/comments","events_url":"https://api.github.com/repos/simat/BatteryMonitor/issues/12/events","html_url":"https://github.com/simat/BatteryMonitor/issues/12","id":283522695,"number":12,"title":"Upgrading to new version","user":{"login":"simat","id":8691554,"avatar_url":"https://avatars0.githubusercontent.com/u/8691554?v=4","gravatar_id":"","url":"https://api.github.com/users/simat","html_url":"https://github.com/simat","followers_url":"https://api.github.com/users/simat/followers","following_url":"https://api.github.com/users/simat/following{/other_user}","gists_url":"https://api.github.com/users/simat/gists{/gist_id}","starred_url":"https://api.github.com/users/simat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/simat/subscriptions","organizations_url":"https://api.github.com/users/simat/orgs","repos_url":"https://api.github.com/users/simat/repos","events_url":"https://api.github.com/users/simat/events{/privacy}","received_events_url":"https://api.github.com/users/simat/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":21,"created_at":"2017-12-20T10:51:30Z","updated_at":"2018-03-09T13:56:39Z","closed_at":null,"author_association":"OWNER","body":"> I did the git pull and there were a handful of files updated.  I must be off on some update or two with software and config.  Should be getting close.\r\n> Now when I run I get the following error:\r\n> \r\n> root@beaglebone:/mnt/SD/BatteryMonitor# python3\r\n> Python 3.5.3 (default, Jan 19 2017, 14:11:04)\r\n> [GCC 6.3.0 20170118] on linux\r\n> Type \"help\", \"copyright\", \"credits\" or \"license\" for more information.\r\n> >>> import batteries\r\n> Traceback (most recent call last):\r\n>   File \"<stdin>\", line 1, in <module>\r\n>   File \"/mnt/SD/BatteryMonitor/batteries.py\", line 30, in <module>\r\n>     from getdata import Readings\r\n>   File \"/mnt/SD/BatteryMonitor/getdata.py\", line 22, in <module>\r\n>     exec(config['files']['interface'])\r\n>   File \"<string>\", line 1, in <module>\r\n>   File \"/mnt/SD/BatteryMonitor/getatod.py\", line 23, in <module>\r\n>     exec(i + '=' + config['AtoDs'][i])\r\n>   File \"<string>\", line 1, in <module>\r\n> NameError: name 'AtoD' is not defined\r\n\r\nHi George,\r\n\r\nIt looks like you are missing the **AtoDs** section in the battery.cfg file. \r\n\r\nWhenever you clone the software, make a new copy  or upgrade the software you should make sure you copy your existing **battery.cfg** file to the same directory as the Battery Monitor software which is setup for your hardware configuration. You might have to make changes to this file to work with the newer version of the software. You can use the different variants of the sample battery configuration file that I supply as a guide to see what needs to be changed in your config file. \r\n\r\nThis file \r\n[batteryGeorge.cfg.txt](https://github.com/simat/BatteryMonitor/files/1575211/batteryGeorge.cfg.txt)\r\nshould I hope be the one that will work with your hardware.\r\n\r\nSimon\r\n"},"comment":{"url":"https://api.github.com/repos/simat/BatteryMonitor/issues/comments/371818732","html_url":"https://github.com/simat/BatteryMonitor/issues/12#issuecomment-371818732","issue_url":"https://api.github.com/repos/simat/BatteryMonitor/issues/12","id":371818732,"user":{"login":"simat","id":8691554,"avatar_url":"https://avatars0.githubusercontent.com/u/8691554?v=4","gravatar_id":"","url":"https://api.github.com/users/simat","html_url":"https://github.com/simat","followers_url":"https://api.github.com/users/simat/followers","following_url":"https://api.github.com/users/simat/following{/other_user}","gists_url":"https://api.github.com/users/simat/gists{/gist_id}","starred_url":"https://api.github.com/users/simat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/simat/subscriptions","organizations_url":"https://api.github.com/users/simat/orgs","repos_url":"https://api.github.com/users/simat/repos","events_url":"https://api.github.com/users/simat/events{/privacy}","received_events_url":"https://api.github.com/users/simat/received_events","type":"User","site_admin":false},"created_at":"2018-03-09T13:56:39Z","updated_at":"2018-03-09T13:56:39Z","author_association":"OWNER","body":"Hi Michael,\r\nThe module that communicates with the BMS board is called `getbms.py` There is a function within the module `getbmsdat` that will send a command string and return the reply string in the variable 'data'\r\n\r\nCan you make use of this?\r\n\r\nIt should be possible to use the alarms section of my code to trigger sending the mosfet on and off commands.\r\n\r\nSimon"}}
{"actor":{"display_login":"simat"}}