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...


In reply to Automating Backup of a Google Map by jmlynesjr

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.