{"id":121,"date":"2022-12-26T10:08:39","date_gmt":"2022-12-26T18:08:39","guid":{"rendered":"https:\/\/dejal.com\/blog\/?p=121"},"modified":"2022-12-26T10:14:23","modified_gmt":"2022-12-26T18:14:23","slug":"simon-tip-watching-the-yellowstone-gate-cam","status":"publish","type":"post","link":"https:\/\/dejal.com\/blog\/simon-tip-watching-the-yellowstone-gate-cam\/","title":{"rendered":"Simon tip: watching the Yellowstone gate cam"},"content":{"rendered":"<body><p><\/p>\n<p>Here\u2019s a fun example of using <a href=\"https:\/\/dejal.com\/simon\/\">Simon<\/a> for a purpose that may not be entirely obvious.<\/p>\n<p>My wife and I had a big trip to <a href=\"https:\/\/www.nps.gov\/yell\/\">Yellowstone National Park<\/a>\u00a0coming up, so I was curious about what the traffic was like to get into the park.<\/p>\n<p>Conveniently, Yellowstone has <a href=\"https:\/\/www.nps.gov\/yell\/learn\/photosmultimedia\/webcams.htm\">a number of webcams that watch the park<\/a>, including the west entrance gate, where we\u2019d be entering.<\/p>\n<p>So I thought I could leverage Simon to help me watch it over time \u2014 rather than keeping the web page open and watching it throughout the day, I can have Simon capture the webcam images to a local folder, then review at my convenience.<\/p>\n<p>To find the URL of the webcam image, I used Safari\u2019s web inspector:<\/p>\n<p><img data-recalc-dims=\"1\" decoding=\"async\" title=\"Inspector\" src=\"https:\/\/i0.wp.com\/dejal.com\/blog\/wp-content\/uploads\/2022\/12\/inspector.png?resize=1024%2C1035&#038;ssl=1\" alt=\"Inspector\" width=\"1024\" height=\"1035\" border=\"0\" loading=\"lazy\"><\/p>\n<p>Then I added a custom service to Simon to download the webcam images to a folder:<\/p>\n<p><img data-recalc-dims=\"1\" decoding=\"async\" title=\"Simon service script\" src=\"https:\/\/i0.wp.com\/dejal.com\/blog\/wp-content\/uploads\/2022\/12\/simon.png?resize=787%2C460&#038;ssl=1\" alt=\"Simon service script\" width=\"787\" height=\"460\" border=\"0\" loading=\"lazy\"><\/p>\n<p>That uses the <code>curl<\/code> command line tool to download the image and save to a local folder; the <code>`date -v+1H +%Y%m%d%H%M%S`<\/code> part of the path outputs the date and time in the format YYMMDDHHMMSS, adding one hour from my local time zone, since Yellowstone was an hour ahead of me at the time.<\/p>\n<p>To schedule the captures, I added a test in Simon that checks once per minute, using that service. No filters or notifiers needed.<\/p>\n<p>That results in a folder in the Finder with files like this:<\/p>\n<p><img data-recalc-dims=\"1\" decoding=\"async\" title=\"Finder\" src=\"https:\/\/i0.wp.com\/dejal.com\/blog\/wp-content\/uploads\/2022\/12\/finder.png?resize=701%2C687&#038;ssl=1\" alt=\"Finder\" width=\"701\" height=\"687\" border=\"0\" loading=\"lazy\"><\/p>\n<p>I can arrow through them to quickly view them. And I can also do other things, like use <a href=\"https:\/\/flyingmeat.com\/retrobatch\/\">the excellent Retrobatch app<\/a> to convert them to a GIF:<\/p>\n<p><img data-recalc-dims=\"1\" decoding=\"async\" title=\"Retrobatch\" src=\"https:\/\/i0.wp.com\/dejal.com\/blog\/wp-content\/uploads\/2022\/12\/retrobatch.png?resize=1023%2C424&#038;ssl=1\" alt=\"Retrobatch\" width=\"1023\" height=\"424\" border=\"0\" loading=\"lazy\"><\/p>\n<p><a href=\"https:\/\/dejal.com\/files\/2021\/yellowstone\/cam.gif\">Click to view an example of the resulting GIF<\/a>, showing the traffic flow from 06:00 to 18:00 on one day (the GIF is 61 MB, despite being scaled, so might take a moment to load); each frame of the GIF represents one minute, six frames per second:<\/p>\n<p>That seems typical; it gets really busy around 06:30, and eases off around 12:30 every day. So a tip for Yellowstone visitors; enter in the afternoon! Of course, that really only works if you\u2019re staying in the park, since it takes ages to get anywhere in the park. It\u2019s a big place.<\/p>\n<p>If you\u2019re curious, <a href=\"https:\/\/sinclairtrails.com\/tag\/yellowstone\/?order=ASC\">I did several posts about this Yellowstone trip on my Sinclair Trails blog<\/a>. Check it out!<\/p>\n<p><\/p>\n<\/body>","protected":false},"excerpt":{"rendered":"<p>Here\u2019s a fun example of using Simon for a purpose that may not be entirely obvious. My wife and I had a big trip to Yellowstone National Park\u00a0coming up, so I was curious about what the traffic was like to get into the park. Conveniently, Yellowstone has a number of webcams that watch the park, [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[16,4],"tags":[],"class_list":["post-121","post","type-post","status-publish","format-standard","hentry","category-faq","category-simon"],"jetpack_featured_media_url":"","jetpack-related-posts":[],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/dejal.com\/blog\/wp-json\/wp\/v2\/posts\/121","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/dejal.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/dejal.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/dejal.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/dejal.com\/blog\/wp-json\/wp\/v2\/comments?post=121"}],"version-history":[{"count":2,"href":"https:\/\/dejal.com\/blog\/wp-json\/wp\/v2\/posts\/121\/revisions"}],"predecessor-version":[{"id":123,"href":"https:\/\/dejal.com\/blog\/wp-json\/wp\/v2\/posts\/121\/revisions\/123"}],"wp:attachment":[{"href":"https:\/\/dejal.com\/blog\/wp-json\/wp\/v2\/media?parent=121"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dejal.com\/blog\/wp-json\/wp\/v2\/categories?post=121"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dejal.com\/blog\/wp-json\/wp\/v2\/tags?post=121"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}