jmlynesjr has asked for the wisdom of the Perl Monks concerning the following question:
My Experience: I have done zero web programming.
Background: The Bitx40 is a 40 meter Ham transcevier kit. Designed by Ashar Farhan as a very economical entry point for Indian Hams into Single Sideband(SSB) amateur radio, the Bitx40 has now become popular with Hams world wide. This low power(QRP) radio is an excellent platform for experimentation with both hardware and Arduino software(the VFO and display). A very active discussion group is located at https://groups.io/g/BITX20/topics. A group member has created a google map(http://BITXmap.com) that members may add their location to.
The Problem: The map creater would prefer to not be the map Czar and would like to leave the map open for members to maintain their own information. Unfortunately, bungled updates have trashed portions of the map several times. The map can be backed up by manually downloading a .kml file, a royal pain...
The Map: The map has two panes. The left pane is information/configuration oriented. The right pane is the map. One of the left pane pull-down menus leads to a "Download KML File" choice. Clicking through several pop-up boxes will download the .kml file.
Possible Solution: It would seem that a Perl script in a cron job could automate these backups.
The Question: Is this a reasonable approach and where are the snakes?
Hey, it's a start.
#! /usr/bin/perl # Script to experiment with the WWW::Mechanize::Firefox module # Must install WWW::Mechanize::Firefox from CPAN(sudo cpanm WWW::Me +chanize::Firefox) # Must install MozRepl Firefox plug-in Tools->Add-ons # (MozRepl is in the Firefox Web Development Add-ons section) # Must start MozRepl from Firefox Tools->MozRepl->Start use strict; use warnings; use WWW::Mechanize::Firefox; # Bring up the Bitx Map, Firefox needs to be running in this version my $mech = WWW::Mechanize::Firefox->new( activate => 1 ); $mech->get('http://BITXmap.com'); # ???Click through to download .kml file to backup the map(add to cron + job???)
James
There's never enough time to do it right, but always enough time to do it over...
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Automating Backup of a Google Map
by SuicideJunkie (Vicar) on Jun 15, 2017 at 22:16 UTC | |
by jmlynesjr (Deacon) on Jun 17, 2017 at 00:20 UTC | |
Re: Automating Backup of a Google Map
by RonW (Parson) on Jun 15, 2017 at 23:15 UTC | |
Re: Automating Backup of a Google Map
by marto (Cardinal) on Jun 16, 2017 at 08:38 UTC | |
by jmlynesjr (Deacon) on Jun 17, 2017 at 00:22 UTC | |
Re: Automating Backup of a Google Map
by RonW (Parson) on Jun 15, 2017 at 21:06 UTC | |
by jmlynesjr (Deacon) on Jun 17, 2017 at 00:16 UTC | |
Re: Automating Backup of a Google Map
by Sinistral (Monsignor) on Jun 16, 2017 at 14:40 UTC | |
by jmlynesjr (Deacon) on Jun 17, 2017 at 00:28 UTC | |
by jmlynesjr (Deacon) on Jun 18, 2017 at 19:22 UTC | |
by huck (Prior) on Jun 18, 2017 at 23:29 UTC | |
by afoken (Chancellor) on Jun 19, 2017 at 19:30 UTC | |
by jmlynesjr (Deacon) on Jun 19, 2017 at 16:34 UTC |