{"id":312,"date":"2013-09-13T09:12:00","date_gmt":"2013-09-13T09:12:00","guid":{"rendered":"http:\/\/thomas.w-p.me.uk\/blog\/2013\/09\/fiddling-with-python-and-pyrow\/"},"modified":"2013-09-13T09:12:00","modified_gmt":"2013-09-13T09:12:00","slug":"fiddling-with-python-and-pyrow","status":"publish","type":"post","link":"https:\/\/thomas.w-p.me.uk\/blog\/2013\/09\/fiddling-with-python-and-pyrow\/","title":{"rendered":"Fiddling with python and pyrow"},"content":{"rendered":"<p>Got pyrow working last night.\u00a0 Today not so good, so going to document steps here.\u00a0 It is as good a place as any other.<\/p>\n<p><span>cstate = results[&#8216;CSAFE_GETSTATUS_CMD&#8217;][0]<\/span><\/p>\n<p>Throws <i>&#8220;TypeError: list indices must be integers, not str&#8221;<\/i> all of a sudden.\u00a0 I have changed nothing.\u00a0 I think that this is because there is nothing coming back from the erg so the <i>results<\/i> array is empty.<\/p>\n<p>CSAFE is some sort of open source means of communicating with gym equipment I think.<\/p>\n<p>I give up for now.\u00a0 Frustrating that it worked last night!<\/p>\n<p>Bleah.<\/p>\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Got pyrow working last night.\u00a0 Today not so good, so going to document steps here.\u00a0 It is as good a place as any other. cstate = results[&#8216;CSAFE_GETSTATUS_CMD&#8217;][0] Throws &#8220;TypeError: list indices must be integers, not str&#8221; all of a sudden.\u00a0 I have changed nothing.\u00a0 I think that this is because there is nothing coming back &hellip; <a href=\"https:\/\/thomas.w-p.me.uk\/blog\/2013\/09\/fiddling-with-python-and-pyrow\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Fiddling with python and pyrow<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[37,40,39],"class_list":["post-312","post","type-post","status-publish","format-standard","hentry","tag-frustration","tag-pyrow","tag-python"],"_links":{"self":[{"href":"https:\/\/thomas.w-p.me.uk\/blog\/wp-json\/wp\/v2\/posts\/312","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/thomas.w-p.me.uk\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/thomas.w-p.me.uk\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/thomas.w-p.me.uk\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/thomas.w-p.me.uk\/blog\/wp-json\/wp\/v2\/comments?post=312"}],"version-history":[{"count":0,"href":"https:\/\/thomas.w-p.me.uk\/blog\/wp-json\/wp\/v2\/posts\/312\/revisions"}],"wp:attachment":[{"href":"https:\/\/thomas.w-p.me.uk\/blog\/wp-json\/wp\/v2\/media?parent=312"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/thomas.w-p.me.uk\/blog\/wp-json\/wp\/v2\/categories?post=312"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/thomas.w-p.me.uk\/blog\/wp-json\/wp\/v2\/tags?post=312"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}