Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??

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":



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (1)
As of 2024-04-25 04:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found