{"id":41,"date":"2018-01-26T11:54:21","date_gmt":"2018-01-26T11:54:21","guid":{"rendered":"http:\/\/learnlearn.uk\/raspberrypi\/?p=41"},"modified":"2019-02-10T09:39:33","modified_gmt":"2019-02-10T09:39:33","slug":"minecraft-python-clock-tutorial","status":"publish","type":"post","link":"https:\/\/learnlearn.uk\/raspberrypi\/2018\/01\/26\/minecraft-python-clock-tutorial\/","title":{"rendered":"Minecraft Python Clock Tutorial"},"content":{"rendered":"<p>In this video tutorial we walk through the process of creating a clock in Minecraft using some in-built Python modules. You will learn how to:<\/p>\n<ul>\n<li>Find the date and time using the datetime Python module<\/li>\n<li>Find how to draw a circle using the python maths module<\/li>\n<li>How to draw the clock arms using the current time<\/li>\n<\/ul>\n<h3>Tutorial Video<\/h3>\n<p>Here is the YouTube tutorial video. If you can&#8217;t access the link because you are behind a firewall then try the Google Drive version instead!<\/p>\n<p><iframe loading=\"lazy\" src=\"https:\/\/www.youtube.com\/embed\/SZ5qg2zKnNA\" width=\"800\" height=\"600\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\"><\/iframe><\/p>\n<p>&nbsp;<\/p>\n<p><a href=\"https:\/\/drive.google.com\/file\/d\/1FGBy0Rbk2jUvESFi8URa7ULwES9VMeuw\/view?usp=sharing\">Can&#8217;t access YouTube? Click here<\/a><\/p>\n<p>&nbsp;<\/p>\n<h3>Cheat Sheet<\/h3>\n<p>Here is the coding cheat sheet, for reference. You can just copy he contents of the sheet in to Python, but you are unlickely to learnas much as watching the video and following along with the code as it is developed!<\/p>\n<p><a href=\"https:\/\/drive.google.com\/file\/d\/1ukb-T69P66joEYa0OTNk7OOta3Ecm2fI\/view?usp=sharing\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-medium wp-image-42\" src=\"https:\/\/learnlearn.uk\/raspberrypi\/wp-content\/uploads\/sites\/17\/2018\/01\/clock-thmb-212x300.png\" alt=\"Minecraft Python Clock Tutorial\" width=\"212\" height=\"300\" srcset=\"https:\/\/learnlearn.uk\/raspberrypi\/wp-content\/uploads\/sites\/17\/2018\/01\/clock-thmb-212x300.png 212w, https:\/\/learnlearn.uk\/raspberrypi\/wp-content\/uploads\/sites\/17\/2018\/01\/clock-thmb.png 450w\" sizes=\"(max-width: 212px) 100vw, 212px\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Never be late again (yeah right!) with a working clock, scripted using Python.<\/p>\n","protected":false},"author":1,"featured_media":51,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"neve_meta_sidebar":"","neve_meta_container":"","neve_meta_enable_content_width":"","neve_meta_content_width":70,"neve_meta_title_alignment":"","neve_meta_author_avatar":"","neve_post_elements_order":"","neve_meta_disable_header":"","neve_meta_disable_footer":"","neve_meta_disable_title":""},"categories":[3],"tags":[6,11,7,12,4,8,9,10,5],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.6 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Minecraft Python Clock Tutorial - LearnLearn Raspberry Pi Hacking<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/learnlearn.uk\/raspberrypi\/2018\/01\/26\/minecraft-python-clock-tutorial\/\" \/>\n<meta property=\"og:locale\" content=\"en_GB\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Minecraft Python Clock Tutorial - LearnLearn Raspberry Pi Hacking\" \/>\n<meta property=\"og:description\" content=\"Never be late again (yeah right!) with a working clock, scripted using Python.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/learnlearn.uk\/raspberrypi\/2018\/01\/26\/minecraft-python-clock-tutorial\/\" \/>\n<meta property=\"og:site_name\" content=\"LearnLearn Raspberry Pi Hacking\" \/>\n<meta property=\"article:published_time\" content=\"2018-01-26T11:54:21+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2019-02-10T09:39:33+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/learnlearn.uk\/raspberrypi\/wp-content\/uploads\/sites\/17\/2018\/01\/Miecraft-Clock-YOutube-thumb.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1301\" \/>\n\t<meta property=\"og:image:height\" content=\"834\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"learnlearnadmin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"learnlearnadmin\" \/>\n\t<meta name=\"twitter:label2\" content=\"Estimated reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/learnlearn.uk\/raspberrypi\/2018\/01\/26\/minecraft-python-clock-tutorial\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/learnlearn.uk\/raspberrypi\/2018\/01\/26\/minecraft-python-clock-tutorial\/\"},\"author\":{\"name\":\"learnlearnadmin\",\"@id\":\"https:\/\/learnlearn.uk\/raspberrypi\/#\/schema\/person\/37d61760b611e12d655e20de44b12f02\"},\"headline\":\"Minecraft Python Clock Tutorial\",\"datePublished\":\"2018-01-26T11:54:21+00:00\",\"dateModified\":\"2019-02-10T09:39:33+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/learnlearn.uk\/raspberrypi\/2018\/01\/26\/minecraft-python-clock-tutorial\/\"},\"wordCount\":139,\"publisher\":{\"@id\":\"https:\/\/learnlearn.uk\/raspberrypi\/#organization\"},\"keywords\":[\"clock\",\"datetime\",\"easy\",\"math\",\"minecraft\",\"python\",\"raspberry pi\",\"time\",\"tutorial\"],\"articleSection\":[\"Minecraft\"],\"inLanguage\":\"en-GB\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/learnlearn.uk\/raspberrypi\/2018\/01\/26\/minecraft-python-clock-tutorial\/\",\"url\":\"https:\/\/learnlearn.uk\/raspberrypi\/2018\/01\/26\/minecraft-python-clock-tutorial\/\",\"name\":\"Minecraft Python Clock Tutorial - LearnLearn Raspberry Pi Hacking\",\"isPartOf\":{\"@id\":\"https:\/\/learnlearn.uk\/raspberrypi\/#website\"},\"datePublished\":\"2018-01-26T11:54:21+00:00\",\"dateModified\":\"2019-02-10T09:39:33+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/learnlearn.uk\/raspberrypi\/2018\/01\/26\/minecraft-python-clock-tutorial\/#breadcrumb\"},\"inLanguage\":\"en-GB\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/learnlearn.uk\/raspberrypi\/2018\/01\/26\/minecraft-python-clock-tutorial\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/learnlearn.uk\/raspberrypi\/2018\/01\/26\/minecraft-python-clock-tutorial\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/learnlearn.uk\/raspberrypi\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Minecraft Python Clock Tutorial\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/learnlearn.uk\/raspberrypi\/#website\",\"url\":\"https:\/\/learnlearn.uk\/raspberrypi\/\",\"name\":\"LearnLearn Raspberry Pi Hacking\",\"description\":\"learnlearn.uk\",\"publisher\":{\"@id\":\"https:\/\/learnlearn.uk\/raspberrypi\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/learnlearn.uk\/raspberrypi\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-GB\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/learnlearn.uk\/raspberrypi\/#organization\",\"name\":\"LearnLearn Raspberry Pi Hacking\",\"url\":\"https:\/\/learnlearn.uk\/raspberrypi\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\/\/learnlearn.uk\/raspberrypi\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/learnlearn.uk\/raspberrypi\/wp-content\/uploads\/sites\/17\/2019\/02\/LearnLearnLogowhite.png\",\"contentUrl\":\"https:\/\/learnlearn.uk\/raspberrypi\/wp-content\/uploads\/sites\/17\/2019\/02\/LearnLearnLogowhite.png\",\"width\":710,\"height\":98,\"caption\":\"LearnLearn Raspberry Pi Hacking\"},\"image\":{\"@id\":\"https:\/\/learnlearn.uk\/raspberrypi\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/learnlearn.uk\/raspberrypi\/#\/schema\/person\/37d61760b611e12d655e20de44b12f02\",\"name\":\"learnlearnadmin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\/\/learnlearn.uk\/raspberrypi\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/07a2ee7e04b8bee91a78709b019de541?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/07a2ee7e04b8bee91a78709b019de541?s=96&d=mm&r=g\",\"caption\":\"learnlearnadmin\"},\"url\":\"https:\/\/learnlearn.uk\/raspberrypi\/author\/learnlearnadmin\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Minecraft Python Clock Tutorial - LearnLearn Raspberry Pi Hacking","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/learnlearn.uk\/raspberrypi\/2018\/01\/26\/minecraft-python-clock-tutorial\/","og_locale":"en_GB","og_type":"article","og_title":"Minecraft Python Clock Tutorial - LearnLearn Raspberry Pi Hacking","og_description":"Never be late again (yeah right!) with a working clock, scripted using Python.","og_url":"https:\/\/learnlearn.uk\/raspberrypi\/2018\/01\/26\/minecraft-python-clock-tutorial\/","og_site_name":"LearnLearn Raspberry Pi Hacking","article_published_time":"2018-01-26T11:54:21+00:00","article_modified_time":"2019-02-10T09:39:33+00:00","og_image":[{"width":1301,"height":834,"url":"https:\/\/learnlearn.uk\/raspberrypi\/wp-content\/uploads\/sites\/17\/2018\/01\/Miecraft-Clock-YOutube-thumb.jpg","type":"image\/jpeg"}],"author":"learnlearnadmin","twitter_card":"summary_large_image","twitter_misc":{"Written by":"learnlearnadmin","Estimated reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/learnlearn.uk\/raspberrypi\/2018\/01\/26\/minecraft-python-clock-tutorial\/#article","isPartOf":{"@id":"https:\/\/learnlearn.uk\/raspberrypi\/2018\/01\/26\/minecraft-python-clock-tutorial\/"},"author":{"name":"learnlearnadmin","@id":"https:\/\/learnlearn.uk\/raspberrypi\/#\/schema\/person\/37d61760b611e12d655e20de44b12f02"},"headline":"Minecraft Python Clock Tutorial","datePublished":"2018-01-26T11:54:21+00:00","dateModified":"2019-02-10T09:39:33+00:00","mainEntityOfPage":{"@id":"https:\/\/learnlearn.uk\/raspberrypi\/2018\/01\/26\/minecraft-python-clock-tutorial\/"},"wordCount":139,"publisher":{"@id":"https:\/\/learnlearn.uk\/raspberrypi\/#organization"},"keywords":["clock","datetime","easy","math","minecraft","python","raspberry pi","time","tutorial"],"articleSection":["Minecraft"],"inLanguage":"en-GB"},{"@type":"WebPage","@id":"https:\/\/learnlearn.uk\/raspberrypi\/2018\/01\/26\/minecraft-python-clock-tutorial\/","url":"https:\/\/learnlearn.uk\/raspberrypi\/2018\/01\/26\/minecraft-python-clock-tutorial\/","name":"Minecraft Python Clock Tutorial - LearnLearn Raspberry Pi Hacking","isPartOf":{"@id":"https:\/\/learnlearn.uk\/raspberrypi\/#website"},"datePublished":"2018-01-26T11:54:21+00:00","dateModified":"2019-02-10T09:39:33+00:00","breadcrumb":{"@id":"https:\/\/learnlearn.uk\/raspberrypi\/2018\/01\/26\/minecraft-python-clock-tutorial\/#breadcrumb"},"inLanguage":"en-GB","potentialAction":[{"@type":"ReadAction","target":["https:\/\/learnlearn.uk\/raspberrypi\/2018\/01\/26\/minecraft-python-clock-tutorial\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/learnlearn.uk\/raspberrypi\/2018\/01\/26\/minecraft-python-clock-tutorial\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/learnlearn.uk\/raspberrypi\/"},{"@type":"ListItem","position":2,"name":"Minecraft Python Clock Tutorial"}]},{"@type":"WebSite","@id":"https:\/\/learnlearn.uk\/raspberrypi\/#website","url":"https:\/\/learnlearn.uk\/raspberrypi\/","name":"LearnLearn Raspberry Pi Hacking","description":"learnlearn.uk","publisher":{"@id":"https:\/\/learnlearn.uk\/raspberrypi\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/learnlearn.uk\/raspberrypi\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-GB"},{"@type":"Organization","@id":"https:\/\/learnlearn.uk\/raspberrypi\/#organization","name":"LearnLearn Raspberry Pi Hacking","url":"https:\/\/learnlearn.uk\/raspberrypi\/","logo":{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/learnlearn.uk\/raspberrypi\/#\/schema\/logo\/image\/","url":"https:\/\/learnlearn.uk\/raspberrypi\/wp-content\/uploads\/sites\/17\/2019\/02\/LearnLearnLogowhite.png","contentUrl":"https:\/\/learnlearn.uk\/raspberrypi\/wp-content\/uploads\/sites\/17\/2019\/02\/LearnLearnLogowhite.png","width":710,"height":98,"caption":"LearnLearn Raspberry Pi Hacking"},"image":{"@id":"https:\/\/learnlearn.uk\/raspberrypi\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/learnlearn.uk\/raspberrypi\/#\/schema\/person\/37d61760b611e12d655e20de44b12f02","name":"learnlearnadmin","image":{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/learnlearn.uk\/raspberrypi\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/07a2ee7e04b8bee91a78709b019de541?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/07a2ee7e04b8bee91a78709b019de541?s=96&d=mm&r=g","caption":"learnlearnadmin"},"url":"https:\/\/learnlearn.uk\/raspberrypi\/author\/learnlearnadmin\/"}]}},"rttpg_featured_image_url":{"full":["https:\/\/learnlearn.uk\/raspberrypi\/wp-content\/uploads\/sites\/17\/2018\/01\/Miecraft-Clock-YOutube-thumb.jpg",1301,834,false],"landscape":["https:\/\/learnlearn.uk\/raspberrypi\/wp-content\/uploads\/sites\/17\/2018\/01\/Miecraft-Clock-YOutube-thumb.jpg",1301,834,false],"portraits":["https:\/\/learnlearn.uk\/raspberrypi\/wp-content\/uploads\/sites\/17\/2018\/01\/Miecraft-Clock-YOutube-thumb.jpg",1301,834,false],"thumbnail":["https:\/\/learnlearn.uk\/raspberrypi\/wp-content\/uploads\/sites\/17\/2018\/01\/Miecraft-Clock-YOutube-thumb-150x150.jpg",150,150,true],"medium":["https:\/\/learnlearn.uk\/raspberrypi\/wp-content\/uploads\/sites\/17\/2018\/01\/Miecraft-Clock-YOutube-thumb-300x192.jpg",300,192,true],"large":["https:\/\/learnlearn.uk\/raspberrypi\/wp-content\/uploads\/sites\/17\/2018\/01\/Miecraft-Clock-YOutube-thumb-1024x656.jpg",1024,656,true],"1536x1536":["https:\/\/learnlearn.uk\/raspberrypi\/wp-content\/uploads\/sites\/17\/2018\/01\/Miecraft-Clock-YOutube-thumb.jpg",1301,834,false],"2048x2048":["https:\/\/learnlearn.uk\/raspberrypi\/wp-content\/uploads\/sites\/17\/2018\/01\/Miecraft-Clock-YOutube-thumb.jpg",1301,834,false],"medium_image_cropped":["https:\/\/learnlearn.uk\/raspberrypi\/wp-content\/uploads\/sites\/17\/2018\/01\/Miecraft-Clock-YOutube-thumb-300x200.jpg",300,200,true],"neve-blog":["https:\/\/learnlearn.uk\/raspberrypi\/wp-content\/uploads\/sites\/17\/2018\/01\/Miecraft-Clock-YOutube-thumb.jpg",930,596,false]},"rttpg_author":{"display_name":"learnlearnadmin","author_link":"https:\/\/learnlearn.uk\/raspberrypi\/author\/learnlearnadmin\/"},"rttpg_comment":0,"rttpg_category":"<a href=\"https:\/\/learnlearn.uk\/raspberrypi\/category\/minecraft\/\" rel=\"category tag\">Minecraft<\/a>","rttpg_excerpt":"Never be late again (yeah right!) with a working clock, scripted using Python.","_links":{"self":[{"href":"https:\/\/learnlearn.uk\/raspberrypi\/wp-json\/wp\/v2\/posts\/41"}],"collection":[{"href":"https:\/\/learnlearn.uk\/raspberrypi\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/learnlearn.uk\/raspberrypi\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/learnlearn.uk\/raspberrypi\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/learnlearn.uk\/raspberrypi\/wp-json\/wp\/v2\/comments?post=41"}],"version-history":[{"count":8,"href":"https:\/\/learnlearn.uk\/raspberrypi\/wp-json\/wp\/v2\/posts\/41\/revisions"}],"predecessor-version":[{"id":126,"href":"https:\/\/learnlearn.uk\/raspberrypi\/wp-json\/wp\/v2\/posts\/41\/revisions\/126"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/learnlearn.uk\/raspberrypi\/wp-json\/wp\/v2\/media\/51"}],"wp:attachment":[{"href":"https:\/\/learnlearn.uk\/raspberrypi\/wp-json\/wp\/v2\/media?parent=41"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/learnlearn.uk\/raspberrypi\/wp-json\/wp\/v2\/categories?post=41"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/learnlearn.uk\/raspberrypi\/wp-json\/wp\/v2\/tags?post=41"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}