{"id":303,"date":"2013-07-12T01:11:08","date_gmt":"2013-07-12T01:11:08","guid":{"rendered":"http:\/\/nf3v.com\/wp\/?p=303"},"modified":"2013-07-12T01:11:08","modified_gmt":"2013-07-12T01:11:08","slug":"automatic-uploading-of-files-to-my-web-page","status":"publish","type":"post","link":"http:\/\/nf3v.com\/wp\/?p=303","title":{"rendered":"Automatic uploading of files to my web page"},"content":{"rendered":"<p>I thought that I might relate some of my experience with the automatic uploading of files (images) on my systems. \u00a0On my systems, the weather data and POES images are uploaded via their respective programs (<a href=\"http:\/\/www.wxtoimg.com\/\" target=\"_blank\">WXtoImg<\/a> and <a href=\"http:\/\/www.weather-display.com\/index.php\" target=\"_blank\">Weather Display<\/a>) Image files for my seismometer, geiger counter and LRIT images are created on the computers capturing the data, but there is no function in the respective programs for uploading. \u00a0For these programs, the images are written to a particular directory while awaiting for subsequent uploading to the webpages. \u00a0Here is the problem : A file should be uploaded whenever it has been a replaced with a newer one. \u00a0But, I don&#8217;t want to upload an directory whenever there has been a single replaced file&#8230;I really only want to upload the updated one(s) to conserve bandwidth.<\/p>\n<p>The solution that I came up with is not elegant, but it works. I think that it would have been easier if I was working with Linux, but I&#8217;m stuck with windows for now. \u00a0I have seen some shareware and\u00a0commercial\u00a0software to do this&#8230;but I try to be frugal and conserve money where I can.<\/p>\n<p>I currently use two different programs for the task. \u00a0One is called <a href=\"http:\/\/leelusoft.blogspot.com\/2011\/10\/watch-4-folder-23.html\" target=\"_blank\">Watch4Folder<\/a>. \u00a0This particular program watches a\u00a0particular\u00a0directory on my computer for any changes in the files there. \u00a0Once a change is noted, something can happen, and in my case, a batch file is then run. \u00a0The batch file calles a second program called <a href=\"http:\/\/winscp.net\/eng\/index.php\" target=\"_blank\">WinSCP<\/a>. \u00a0(I use version 4.3.7 as I havn&#8217;t upgraded to the later releases yet. \u00a0Also, I happen to use the\u00a0portable\u00a0version) \u00a0WinSCP has the nice feature of directory synchronization, which allows the program to connect to my webpage, compare a specific directory on my computer to a directory on my server, and <em>only upload the changed files,<\/em> again, to conserve bandwidth.<\/p>\n<p>Some have\u00a0suggested\u00a0that I might use a .bat file to do this. \u00a0Unfortunately, I am not well enough versed in DOS bat files to figure out how to do this. \u00a0Maybe a .bat file could do this, but some of the complications are that 1, 2, 5, or all the files might have changed, and being able to account for that is just too complex for me.<\/p>\n<p>If anyone knows of better solutions, please write a comment or drop me a line.<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I thought that I might relate some of my experience with the automatic uploading of files (images) on my systems. \u00a0On my systems, the weather data and POES images are uploaded via their respective programs (WXtoImg and Weather Display) Image &hellip; <a href=\"http:\/\/nf3v.com\/wp\/?p=303\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[10],"tags":[],"_links":{"self":[{"href":"http:\/\/nf3v.com\/wp\/index.php?rest_route=\/wp\/v2\/posts\/303"}],"collection":[{"href":"http:\/\/nf3v.com\/wp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/nf3v.com\/wp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/nf3v.com\/wp\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/nf3v.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=303"}],"version-history":[{"count":2,"href":"http:\/\/nf3v.com\/wp\/index.php?rest_route=\/wp\/v2\/posts\/303\/revisions"}],"predecessor-version":[{"id":305,"href":"http:\/\/nf3v.com\/wp\/index.php?rest_route=\/wp\/v2\/posts\/303\/revisions\/305"}],"wp:attachment":[{"href":"http:\/\/nf3v.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=303"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/nf3v.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=303"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/nf3v.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=303"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}