{"id":461,"date":"2018-05-11T23:02:08","date_gmt":"2018-05-12T03:02:08","guid":{"rendered":"http:\/\/www.mbeckler.org\/blog\/?p=461"},"modified":"2018-05-11T23:02:08","modified_gmt":"2018-05-12T03:02:08","slug":"tool-to-convert-a-running-training-plan-into-an-ics-file-to-import-into-your-calendar","status":"publish","type":"post","link":"https:\/\/www.mbeckler.org\/blog\/?p=461","title":{"rendered":"Tool to convert a running training plan into an ICS file to import into your calendar"},"content":{"rendered":"<p>I decided to train for a marathon this fall, so I looked online for some training plans. Once I found a plan to use, I wanted an easy way to import the training plan into my calendar. I thought it might be cool to write a little tool to let me copy\/paste from the training plan website and generate an ICS file to import into the calendar.<\/p>\n<p>I wrote such a tool in python, posted here: <a href=\"https:\/\/github.com\/matthewbeckler\/training_plan_to_ics\">https:\/\/github.com\/matthewbeckler\/training_plan_to_ics<\/a><\/p>\n<p>You should customize the script by editing five things in the python file:<\/p>\n<ol>\n<li>Set a <code>start_date<\/code> or <code>end_date<\/code> below (but not both).<\/li>\n<li>Copy\/paste the tab-split training plan table into the <code>raw_data<\/code> string.<\/li>\n<li>Then add <code>day_of_week_details<\/code> entries for each day of the week (if you want).<\/li>\n<li>If you want an URL added to the end of the details, add one to the <code>url<\/code> variable below.<\/li>\n<li>The output ICS file will be written to the file <code>output_filename<\/code>, change this filename if you like.<\/li>\n<\/ol>\n<p>Once the script is run, you can import the ICS file into your calendar system.<\/p>\n<p><a href=\"https:\/\/www.mbeckler.org\/blog\/wp-content\/uploads\/2018\/05\/calendar_entries.png\"><img loading=\"lazy\" decoding=\"async\" data-attachment-id=\"464\" data-permalink=\"https:\/\/www.mbeckler.org\/blog\/?attachment_id=464\" data-orig-file=\"https:\/\/www.mbeckler.org\/blog\/wp-content\/uploads\/2018\/05\/calendar_entries.png\" data-orig-size=\"1616,457\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"calendar_entries\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/www.mbeckler.org\/blog\/wp-content\/uploads\/2018\/05\/calendar_entries-1024x290.png\" src=\"https:\/\/www.mbeckler.org\/blog\/wp-content\/uploads\/2018\/05\/calendar_entries-300x85.png\" alt=\"\" width=\"300\" height=\"85\" class=\"aligncenter size-medium wp-image-464\" srcset=\"https:\/\/www.mbeckler.org\/blog\/wp-content\/uploads\/2018\/05\/calendar_entries-300x85.png 300w, https:\/\/www.mbeckler.org\/blog\/wp-content\/uploads\/2018\/05\/calendar_entries-768x217.png 768w, https:\/\/www.mbeckler.org\/blog\/wp-content\/uploads\/2018\/05\/calendar_entries-1024x290.png 1024w, https:\/\/www.mbeckler.org\/blog\/wp-content\/uploads\/2018\/05\/calendar_entries.png 1616w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>I decided to train for a marathon this fall, so I looked online for some training plans. Once I found a plan to use, I wanted an easy way to import the training plan into my calendar. I thought it might be cool to write a little tool to let me copy\/paste from the training [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"Tool to convert a running training plan into an ICS file to import into your calendar","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[1],"tags":[],"class_list":["post-461","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p2BznB-7r","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.mbeckler.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/461","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.mbeckler.org\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.mbeckler.org\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.mbeckler.org\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.mbeckler.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=461"}],"version-history":[{"count":6,"href":"https:\/\/www.mbeckler.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/461\/revisions"}],"predecessor-version":[{"id":469,"href":"https:\/\/www.mbeckler.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/461\/revisions\/469"}],"wp:attachment":[{"href":"https:\/\/www.mbeckler.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=461"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.mbeckler.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=461"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.mbeckler.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=461"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}