{"id":908,"date":"2014-06-01T21:58:43","date_gmt":"2014-06-01T21:58:43","guid":{"rendered":"http:\/\/www.trivedigaurav.com\/blog\/?p=908"},"modified":"2014-06-29T22:44:07","modified_gmt":"2014-06-29T22:44:07","slug":"mid-midterm-activities-on-kivy","status":"publish","type":"post","link":"https:\/\/www.trivedigaurav.com\/blog\/mid-midterm-activities-on-kivy\/","title":{"rendered":"Mid-Midterm Activities on Kivy"},"content":{"rendered":"<p>This week I <a title=\"Kivy Updates from the First Week\" href=\"http:\/\/www.trivedigaurav.com\/blog\/kivy-updates-from-the-first-week\/\">continued<\/a> our Plyer development. I worked on implementing the accelerometer, gyroscope and magnetometer sensors facades.<\/p>\n<p>Although after a discussion with the community on IRC with <a href=\"https:\/\/github.com\/tito\/\">tito<\/a> and <a href=\"https:\/\/github.com\/tshirtman\/\">tshirtman<\/a>, we realized that we may need to rework on some of these implementations to avoid the dependencies that we currently have. We intend to completely avoid any Java and Objective C code to access the platform APIs. Instead, we&#8217;d let <a href=\"https:\/\/github.com\/kivy\/pyjnius\">Pyjnius<\/a> (and <a href=\"https:\/\/github.com\/kivy\/pyobjus\">Pyobjus<\/a>) to directly use the classes provided by these operating systems.<\/p>\n<p>But not all was lost. By working on these implementations I was able to have a better understanding of the architecture that we are aiming for and re-writing the specific portions from here would be much easier.<\/p>\n<p>Apart from that, I was able to bring the accelerometer implementation on OS X to a closure. It was quite interesting to be read the sudden motion sensors available on Macbooks (mostly to safeguard the hard-disks) and use it as an accelerometer sensor:<\/p>\n<figure id=\"attachment_911\" aria-describedby=\"caption-attachment-911\" style=\"width: 307px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/i0.wp.com\/www.trivedigaurav.com\/blog\/wp-content\/uploads\/Screen-Shot-2014-06-01-at-4.10.48-PM.png\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"wp-image-911\" src=\"https:\/\/i0.wp.com\/www.trivedigaurav.com\/blog\/wp-content\/uploads\/Screen-Shot-2014-06-01-at-4.10.48-PM.png?resize=307%2C247\" alt=\"Accelerometer on a Macbook\" width=\"307\" height=\"247\" \/><\/a><figcaption id=\"caption-attachment-911\" class=\"wp-caption-text\">Using the sudden motion sensor on a Macbook Pro as an accelerometer.<\/figcaption><\/figure>\n<p>I see that our <a href=\"https:\/\/github.com\/kivy\/plyer\/pulls\">list of pull requests<\/a> has grown to a considerable size. In the coming week, I hope to resolve the problems pointed out with some of these and be able to merge them as well.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This week I continued our Plyer development. I worked on implementing the accelerometer, gyroscope and magnetometer sensors facades. Although after a discussion with the community on IRC with tito and tshirtman, we realized that we may need to rework on some of these implementations to avoid the dependencies that we currently have. We intend to &hellip; <a href=\"https:\/\/www.trivedigaurav.com\/blog\/mid-midterm-activities-on-kivy\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Mid-Midterm Activities on Kivy<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[22,23,24],"tags":[],"class_list":["post-908","post","type-post","status-publish","format-standard","hentry","category-projects","category-python","category-updates"],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p46eol-eE","jetpack-related-posts":[],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.trivedigaurav.com\/blog\/wp-json\/wp\/v2\/posts\/908","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.trivedigaurav.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.trivedigaurav.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.trivedigaurav.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.trivedigaurav.com\/blog\/wp-json\/wp\/v2\/comments?post=908"}],"version-history":[{"count":5,"href":"https:\/\/www.trivedigaurav.com\/blog\/wp-json\/wp\/v2\/posts\/908\/revisions"}],"predecessor-version":[{"id":916,"href":"https:\/\/www.trivedigaurav.com\/blog\/wp-json\/wp\/v2\/posts\/908\/revisions\/916"}],"wp:attachment":[{"href":"https:\/\/www.trivedigaurav.com\/blog\/wp-json\/wp\/v2\/media?parent=908"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.trivedigaurav.com\/blog\/wp-json\/wp\/v2\/categories?post=908"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.trivedigaurav.com\/blog\/wp-json\/wp\/v2\/tags?post=908"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}