{"id":897,"date":"2020-05-02T07:09:36","date_gmt":"2020-05-02T12:09:36","guid":{"rendered":"http:\/\/www.k2ie.net\/blog\/?p=897"},"modified":"2020-05-02T07:09:36","modified_gmt":"2020-05-02T12:09:36","slug":"x10-firecracker","status":"publish","type":"post","link":"https:\/\/www.k2ie.net\/blog\/2020\/05\/02\/x10-firecracker\/","title":{"rendered":"X10 Firecracker"},"content":{"rendered":"\n<p>Does anyone still make use of <a href=\"http:\/\/www.x10.com\">X10 powerline control<\/a> devices?  X10 has been largely replaced by more modern wifi based home automation devices, but I still have a few that control lighting.<\/p>\n\n\n\n<p>I recently upgraded my main home\/office server to <a href=\"https:\/\/getfedora.org\/\">Fedora 32<\/a>.  Fedora dropped python2 from new systems because python2 will be considered obsolete by the end of 2020.  I have a serial based device called the <a href=\"https:\/\/www.x10.com\/cm17a.html\">X10 Firecracker<\/a> which I use for wireless on\/off control.  The Firecracker is controlled by a python script run via crond, the system scheduler.<\/p>\n\n\n\n<p>The script was written long ago by someone else in python2.  While doing a post-upgrade checkout, I found that the firecracker.py  script no longer functioned because I no longer had python2 installed on my system.  So, it was time to port it to python3.<\/p>\n\n\n\n<p>Fortunately, the porting effort was trivial.  I have shared the results in my <a href=\"http:\/\/github.com\/K2IE\/x10-firecracker\">Github repository<\/a> in case anyone else needs it.  And if you&#8217;re still running any critical functions using python2 it is time to port them to python3.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Does anyone still make use of X10 powerline control devices? X10 has been largely replaced by more modern wifi based home automation devices, but I still have a few that control lighting. I recently upgraded my main home\/office server to Fedora 32. Fedora dropped python2 from new systems because python2 will be considered obsolete by &hellip; <a href=\"https:\/\/www.k2ie.net\/blog\/2020\/05\/02\/x10-firecracker\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;X10 Firecracker&#8221;<\/span><\/a><\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[197,196,198,194,195],"class_list":["post-897","post","type-post","status-publish","format-standard","hentry","category-technology","tag-fedora-32","tag-firecracker","tag-powerline-control","tag-python","tag-x10"],"_links":{"self":[{"href":"https:\/\/www.k2ie.net\/blog\/wp-json\/wp\/v2\/posts\/897","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.k2ie.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.k2ie.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.k2ie.net\/blog\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.k2ie.net\/blog\/wp-json\/wp\/v2\/comments?post=897"}],"version-history":[{"count":1,"href":"https:\/\/www.k2ie.net\/blog\/wp-json\/wp\/v2\/posts\/897\/revisions"}],"predecessor-version":[{"id":898,"href":"https:\/\/www.k2ie.net\/blog\/wp-json\/wp\/v2\/posts\/897\/revisions\/898"}],"wp:attachment":[{"href":"https:\/\/www.k2ie.net\/blog\/wp-json\/wp\/v2\/media?parent=897"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.k2ie.net\/blog\/wp-json\/wp\/v2\/categories?post=897"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.k2ie.net\/blog\/wp-json\/wp\/v2\/tags?post=897"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}