Giter VIP home page Giter VIP logo

Comments (12)

Lineflyer avatar Lineflyer commented on June 16, 2024

From @toze3 on June 25, 2012 14:8

Hi.

yes this could be a nice feature. Maybe a creation in the browser of lists, and then the option to import these list in C:GEO with automatic creation of lists or importing to a list with the same name.

Best regards

from send2cgeo.

chaelli avatar chaelli commented on June 16, 2024

I just had the need to send all caches of a country. The list is about 20'000 caches long. I used the new search-results page and the following script (which you might be able to integrate into the tampermonkey/greasmonkey script):

function loadCachesAndSubmit(currentStart) {
    jQuery.get("https://www.geocaching.com/play/search/more-results?startIndex="+currentStart+"&inputOrigin="+resultsParams.inputOrigin+"&sortOrigin="+resultsParams.homeCoords+"&fbu=false&filteredByOtherUsersFinds=false&filteredByOtherUsersFindsUsername=&originTreatment="+resultsParams.originTreatment, function(data) {
        jQuery("a[href*='http://www.geocaching.com/geocache/GC']", jQuery(data.HtmlString)).each(function() {
            var cachenr = jQuery(this).attr("href").replace("http://www.geocaching.com/geocache/","");
            jQuery.getScript("https://send2.cgeo.org/add.html?cache=" + cachenr);
        });
        if (data.ShowLoadMore) {
            loadCachesAndSubmit(currentStart + 50);
        }
        else {
            alert("Finished sending");
        }
    });
}
loadCachesAndSubmit(0);

from send2cgeo.

Lineflyer avatar Lineflyer commented on June 16, 2024

As @arminus was asking us if we could implement a batch transfer of caches in send2cgeo and maybe willing to implement it, we should think about publishing the server code into this repository as well?!

from send2cgeo.

SammysHP avatar SammysHP commented on June 16, 2024

AFAIK the server code needs a review and probably some refactoring before it can be made public. But it is almost 7 years old without any modifications. Maybe it is better to rewrite everything from scratch.

from send2cgeo.

mucek4 avatar mucek4 commented on June 16, 2024

Think is we moved our webpage to github. By the time we just disabled the old webpage but couldn't disable server code for send2cgeo. The main problem is core of webpage and send2cgeo is the same, so technically old webpage still has to be running in background for send2.
Basically send2cgeo needs to be re-written (parts could be copy-pasted)

from send2cgeo.

mirabilos avatar mirabilos commented on June 16, 2024

For future reference, I managed to do it, thanks to the hints from the posters above (thanks!), by opening Firebug (F11) on GC.COM and copy/pasting a line like the following into the Konsole tab of Firebug:

jQuery.each(["GC4HNPP","GC5QK6Y", …, "OC1424A","OC14357","OC1438D"], function (k,v) { jQuery.getScript("https://send2.cgeo.org/add.html?cache=" + v); })

(I’ve shortened the line, just list all the caches you want there.)

Then, I ignored all console warnings. A proper webinterface would be more welcome, though, of course.

Individually clicking on hyperlinks like https://send2.cgeo.org/add.html?cache=GC6CXT96 also works, of course.

from send2cgeo.

Lineflyer avatar Lineflyer commented on June 16, 2024

Partially implemented with bff566f in version 0.45

from send2cgeo.

mirabilos avatar mirabilos commented on June 16, 2024

Doesn’t help my use case, as I never use the search page. At best the map, or I have a list of caches as text file.

But if it helps someone else… sure.

from send2cgeo.

capoaira avatar capoaira commented on June 16, 2024

I tried something. What do you think? @triakcz @mirabilos
With the link in the dashboard you can send a list of gccodes to c:geo.

grafik
https://github.com/capoaira/send2cgeo/raw/Send2cgeo-load-multiple-caches-on-one-click/send2cgeo.user.js

from send2cgeo.

mirabilos avatar mirabilos commented on June 16, 2024

I don’t use the dashboard, and this would only work for GC.COM users anyway.

I’d rather have it near the box on https://www.cgeo.org/send2cgeo.html as it’ll take a list of waypoint codes and therefore is independent of the platform.

from send2cgeo.

capoaira avatar capoaira commented on June 16, 2024

It would be not a problem to implement this feature also at OC. Or at https://www.cgeo.org/send2cgeo.html
It make no difference if you send a GC- or a OC-Code.

from send2cgeo.

capoaira avatar capoaira commented on June 16, 2024

Hello,
Since sending a GC code list has been requested many times, I implemented this feature today.

You can test the function here: https://github.com/capoaira/send2cgeo/raw/send-multi/send2cgeo.user.js

Here it goes back to the current version: https://github.com/cgeo/send2cgeo/raw/release/send2cgeo.user.js

How to use the function:
Click the "Send List" link. You can find this link on geocaching.com in the new and old dashboards under the renewal date and on opencaching.de at the top of your profile (https://www.opencaching.de/myhome.php).
Then a popup will open where you can insert your list and send it.
The seperator is irrelevant, it can be spaces, commas, line breaks, etc.

from send2cgeo.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.