+Tequila Posted May 18, 2009 Share Posted May 18, 2009 Someone on one of the other forums suggested that Garmin create a file manager capability in the OR and CO to allow users to change which .gpx file is used for geocaches. Since that is a long shot, it was suggested that it might be possible to create a Wherigo cartridge that would allow you to change the names of files. For example, Under the device:Garmin/GPX directory I have two files: Cache 1.gpx and Cache 2.bak I want to be able to reverse the extensions so that the OR will see Cache 2 instead of Cache 1 on the next power cycle. Anyone think that is possible? Quote Link to comment
+sTeamTraen Posted May 19, 2009 Share Posted May 19, 2009 Well, the code would be simple enough: os.rename ("cache1.gpx", "cache1.bak") os.rename ("cache2.bak", "cache2.gpx") Can the Lua runtime system on the Oregon "see" the file system? Let us know. Quote Link to comment
+Tequila Posted May 19, 2009 Author Share Posted May 19, 2009 Someone tried that and the OR died. I suspect it doesn't have any hooks in to handle that type of call. Quote Link to comment
+northernpenguin Posted May 19, 2009 Share Posted May 19, 2009 Someone tried that and the OR died. I suspect it doesn't have any hooks in to handle that type of call. Problem #2 is that you'll need to change the timestamp on the 'new' file or the unit will ignore the caches file as already loaded/not updated. Quote Link to comment
+sTeamTraen Posted May 19, 2009 Share Posted May 19, 2009 Problem #2 is that you'll need to change the timestamp on the 'new' file or the unit will ignore the caches file as already loaded/not updated. With a bit of luck this might do it, in the absence of a U*x style "touch" command: io.close(io.open("cache2.gpx", "a+")) Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.