GC Tour
- polikarpov5
- regular
- Contact :
- Profil GC
- Membre: : Premium
- GPS : Garmin etrex summit HC (géocaching)
Navgear GT505-3D (auto) A RENDU L’ÂME.
PDA Lifetec: Logbook(cachemate), cartoexploreur - Localisation : 60310 LAGNY
Message
Re: GC Tour
Y a-t-il quelqu'un qui a réessayé GCtour, et téléchargé un GPX ?
J'obtiens toujours la même erreur
TypeError: geocache.location.split("In ")[1] is undefined
J'obtiens toujours la même erreur
TypeError: geocache.location.split("In ")[1] is undefined
Message
Re: GC Tour
Bon moi evidement je n'ai pas essayé, par contre j'avais que ces derniers jours GCTour avait eu des modif
Peut être les maj auto ne sont pas activées chez toi ?
Peut être les maj auto ne sont pas activées chez toi ?
- TofLaBeuze
- extra
- Contact :
- Profil GC
- Membre: : Premium
- GPS : Samsung J5 + Etrex 30x
- Localisation : Paris
Message
Un exemple de GPX créé : https://docs.google.com/open?id=0B-Ji3E ... lJqUkMxRW8" onclick="window.open(this.href);return false;
Re: Etrex 30 ou MAP62s ?
Comme je disais dans l'autre fil, ça marche bien chez moi, à priori, pas d'erreur comme celle mentionnée par Eric.TofLaBeuze a écrit :Je viens de réessayer GCTour version 2.3 sur Firefox 16.0.1, il marche très bien, je viens de créer un fichier GPX.
Un exemple de GPX créé : https://docs.google.com/open?id=0B-Ji3E ... lJqUkMxRW8" onclick="window.open(this.href);return false;
- polikarpov5
- regular
- Contact :
- Profil GC
- Membre: : Premium
- GPS : Garmin etrex summit HC (géocaching)
Navgear GT505-3D (auto) A RENDU L’ÂME.
PDA Lifetec: Logbook(cachemate), cartoexploreur - Localisation : 60310 LAGNY
Message
Re: GC Tour
non, rien à faire, j'ai supprimer GCTour, relancé Firefox, réinstallé GCtour, idem, même avec une seul cache active.
j'ai essayé de déactiver le pare-feu: idem
J'ai trouvé
Dans le site de l'auteur, il faut modifier le fichier sur les lignes suivantes:
//geocache.location = $("span#ctl00_ContentBody_Location", element).first().text();
// get the country and (if exists) the state!
//if(geocache.location.indexOf(",") < 0){ // if the index of "," < 0 then the state is not given!
// geocache.state = "";
// geocache.country = $.trim(geocache.location.split("In ")[1]);
//} else {
// geocache.state = $.trim(geocache.location.split("In ")[1].split(',')[0]);
// geocache.country = $.trim(geocache.location.split("In ")[1].split(',')[1]);
//}
il faut ajouter //, c'est au niveau des lignes 7426.
Pour trouver le fichier, il faut aller dans le menu Firefox Option->greasemonkey->gerer les scripts utilisateurs
Sur le script GCtour, clic droit -> afficher le dossier contenant
Il suffit de modifier le fichier 36273.user.js après une sauvegarde de prudence.
j'ai essayé de déactiver le pare-feu: idem
J'ai trouvé
Dans le site de l'auteur, il faut modifier le fichier sur les lignes suivantes:
//geocache.location = $("span#ctl00_ContentBody_Location", element).first().text();
// get the country and (if exists) the state!
//if(geocache.location.indexOf(",") < 0){ // if the index of "," < 0 then the state is not given!
// geocache.state = "";
// geocache.country = $.trim(geocache.location.split("In ")[1]);
//} else {
// geocache.state = $.trim(geocache.location.split("In ")[1].split(',')[0]);
// geocache.country = $.trim(geocache.location.split("In ")[1].split(',')[1]);
//}
il faut ajouter //, c'est au niveau des lignes 7426.
Pour trouver le fichier, il faut aller dans le menu Firefox Option->greasemonkey->gerer les scripts utilisateurs
Sur le script GCtour, clic droit -> afficher le dossier contenant
Il suffit de modifier le fichier 36273.user.js après une sauvegarde de prudence.
Modifié en dernier par polikarpov5 le ven. 19 oct. 2012 21:37, modifié 1 fois.
- polikarpov5
- regular
- Contact :
- Profil GC
- Membre: : Premium
- GPS : Garmin etrex summit HC (géocaching)
Navgear GT505-3D (auto) A RENDU L’ÂME.
PDA Lifetec: Logbook(cachemate), cartoexploreur - Localisation : 60310 LAGNY
- TofLaBeuze
- extra
- Contact :
- Profil GC
- Membre: : Premium
- GPS : Samsung J5 + Etrex 30x
- Localisation : Paris
Message
Re: GC Tour
Bizarre, je n'ai rien eu besoin de modifier. Bon, l'essentiel est que ça remarche chez vous
- equipe rabatau
- regular
- Profil GC
- Membre: : Premium
- GPS : montana
- Localisation : 13 Marseille
Message
Re: GC Tour
Bonsoir,
Merci pour les infos. Cela marche pour moi maintenant et je peux télécharges les fichiers GPX.
Merci pour les infos. Cela marche pour moi maintenant et je peux télécharges les fichiers GPX.
Message
Re: GC Tour
Hello
y a-t-il des personnes qui utilisent la fonction AutoTour, car chez moi (avec Firefox) cette dernière boucle sans fin ou remonte une absence de cache…
y a-t-il des personnes qui utilisent la fonction AutoTour, car chez moi (avec Firefox) cette dernière boucle sans fin ou remonte une absence de cache…
Message
Re: GC Tour
J'avais ce problème aussi, je l'ai résolu en modifiant le script de la façon suivante (lignes 2834 à 2837) :
à remplacer par
Code : Tout sélectionner
size = dtsize_details[i].size;
difficulty = dtsize_details[i].difficulty;
terrain = dtsize_details[i].terrain;
Code : Tout sélectionner
size = entryTds.eq(7).find("img").attr("alt").split('Size: ')[1].toLowerCase();
if(size=='not chosen'){size='other';}
difficulty = entryTds.eq(7).find("span").eq(0).text().split('/')[0];
terrain = entryTds.eq(7).find("span").eq(0).text().split('/')[1];
Message
Re: GC Tour
J'ai remarqué que GCTour ne prenait pas en compte les travelbugs. J'ai fait quelques modifications qui fonctionnent sur mon exploristGC. Attention c'est un poil plus complexe que la dernière fois, sauvegardez votre fichier actuel avant de tenter les modifications si vous voulez essayer. Il y a 4 modifications à apporter
1) Vers la ligne 7597 vous trouverez un code qui ressemble à
Insérez entre ces 2 lignes le code
2) Puis vers la ligne 8000 le code ressemble à
Il faut ajouter avant le "return geocache" la ligne
3) ensuite vers la ligne 8034 vous trouvez
à remplacer par
4) enfin vers la ligne 8133 vous trouvez
à remplacer par
Ça rajoute les travelbugs avec leurs noms mais pas leurs identifiants. Sur mon exploristGC c'est suffisant, je ne sais pas si d'autres gps utilisent les identifiants auquel cas ça ne fonctionnera probablement pas.
1) Vers la ligne 7597 vous trouverez un code qui ressemble à
Code : Tout sélectionner
log("fn getGeocacheFromElement - geocache.logs.length: " + geocache.logs.length);
return geocache;
Code : Tout sélectionner
geocache.bugs = [];
var lista = element.getElementsByTagName("a");
for ( zz = 0; zz < lista.length; zz++){
if (lista[zz].href.substring(0,39)=='http://www.geocaching.com/track/details') {
geocache.bugs.push(lista[zz].getElementsByTagName("span")[0].innerHTML);
}
}
Code : Tout sélectionner
log([
"--------------[START " + geocache.gcid + "]-------------",
"gcid: \t\t" + geocache.gcid,
"guid: \t\t" + geocache.guid,
"cacheid: \t" + geocache.cacheid,
"archived: \t" + geocache.archived,
"available: \t" + geocache.available,
"cacheName:\t" + geocache.cacheName,
"cacheSym (GPX):\t" + geocache.cacheSym,
"cacheOwner:\t" + geocache.cacheOwner,
"dateHidden:\t" + geocache.dateHidden,
"cacheType:\t" + geocache.cacheType,
"cacheSize:\t" + geocache.cacheSize,
"difficulty:\t" + geocache.difficulty,
"terrain:\t" + geocache.terrain,
//~ "latLon:\t" + geocache.latLon.innerHTML,
"latitude:\t" + geocache.latitude,
"longitude:\t" + geocache.longitude,
"state:\t\t" + geocache.state,
"country:\t" + geocache.country,
"shortDescription:\n\n" + geocache.shortDescription,
"longDescription:\n\n" + geocache.longDescription,
"hint:\t\t" + geocache.hint,
"--------------[END " + geocache.gcid + "]--------------"
].join("\n"));
return geocache;
}
Code : Tout sélectionner
geocache.bugs = geocache_obj.bugs;
Code : Tout sélectionner
var geocacheTemplate =
'<wpt lat="##LAT##" lon="##LON##">\n' +
' <time>##TIME##</time>\n' +
' <name>##GCID##</name>\n' +
' <desc>##CACHENAME## by ##OWNER##, ##TYPE## (##DIFFICULTY##/##TERRAIN##)</desc>\n' + //' <url>http://www.geocaching.com/seek/cache_details.aspx?wp=##GCID##</url>\n' +
' <url>http://www.geocaching.com/seek/cache_details.aspx?guid=##GUID##</url>\n' +
' <urlname>##CACHENAME##</urlname>\n' +
' <sym>##CACHESYM##</sym>\n' +
' <type>Geocache|##TYPE##</type>\n' +
' <groundspeak:cache id="##CACHEID##" available="##AVAILABLE##" archived="##ARCHIVED##" xmlns:groundspeak="http://www.groundspeak.com/cache/1/0/1">\n' +
' <groundspeak:name>##CACHENAME##</groundspeak:name>\n' +
' <groundspeak:placed_by>##OWNER##</groundspeak:placed_by>\n' +
' <groundspeak:owner>##OWNER##</groundspeak:owner>\n' +
' <groundspeak:type>##TYPE##</groundspeak:type>\n' +
' <groundspeak:container>##CONTAINER##</groundspeak:container>\n' +
' <groundspeak:attributes>\n##ATTRIBUTES## </groundspeak:attributes>\n' +
' <groundspeak:difficulty>##DIFFICULTY##</groundspeak:difficulty>\n' +
' <groundspeak:terrain>##TERRAIN##</groundspeak:terrain>\n' +
' <groundspeak:country>##COUNTRY##</groundspeak:country>\n' +
' <groundspeak:state>##STATE##</groundspeak:state>\n' +
' <groundspeak:short_description html="True">##SUMMARY##</groundspeak:short_description>\n' +
' <groundspeak:long_description html="True">##DESCRIPTION##</groundspeak:long_description>\n' +
' <groundspeak:encoded_hints>##HINT##</groundspeak:encoded_hints>\n' +
' <groundspeak:logs>\n##LOGS## </groundspeak:logs>\n' +
' </groundspeak:cache>\n' +
'</wpt>';
Code : Tout sélectionner
var geocacheTemplate =
'<wpt lat="##LAT##" lon="##LON##">\n' +
' <time>##TIME##</time>\n' +
' <name>##GCID##</name>\n' +
' <desc>##CACHENAME## by ##OWNER##, ##TYPE## (##DIFFICULTY##/##TERRAIN##)</desc>\n' + //' <url>http://www.geocaching.com/seek/cache_details.aspx?wp=##GCID##</url>\n' +
' <url>http://www.geocaching.com/seek/cache_details.aspx?guid=##GUID##</url>\n' +
' <urlname>##CACHENAME##</urlname>\n' +
' <sym>##CACHESYM##</sym>\n' +
' <type>Geocache|##TYPE##</type>\n' +
' <groundspeak:cache id="##CACHEID##" available="##AVAILABLE##" archived="##ARCHIVED##" xmlns:groundspeak="http://www.groundspeak.com/cache/1/0/1">\n' +
' <groundspeak:name>##CACHENAME##</groundspeak:name>\n' +
' <groundspeak:placed_by>##OWNER##</groundspeak:placed_by>\n' +
' <groundspeak:owner>##OWNER##</groundspeak:owner>\n' +
' <groundspeak:type>##TYPE##</groundspeak:type>\n' +
' <groundspeak:container>##CONTAINER##</groundspeak:container>\n' +
' <groundspeak:attributes>\n##ATTRIBUTES## </groundspeak:attributes>\n' +
' <groundspeak:difficulty>##DIFFICULTY##</groundspeak:difficulty>\n' +
' <groundspeak:terrain>##TERRAIN##</groundspeak:terrain>\n' +
' <groundspeak:country>##COUNTRY##</groundspeak:country>\n' +
' <groundspeak:state>##STATE##</groundspeak:state>\n' +
' <groundspeak:short_description html="True">##SUMMARY##</groundspeak:short_description>\n' +
' <groundspeak:long_description html="True">##DESCRIPTION##</groundspeak:long_description>\n' +
' <groundspeak:encoded_hints>##HINT##</groundspeak:encoded_hints>\n' +
' <groundspeak:logs>\n##LOGS## </groundspeak:logs>\n' +
' <groundspeak:travelbugs>##BUGS##</groundspeak:travelbugs>\n' +
' </groundspeak:cache>\n' +
'</wpt>';
var geocacheBugTemplate =
'\n <groundspeak:travelbug id="##BUGID##" ref="##BUGREF##">\n' +
' <groundspeak:name>##BUGNAME##</groundspeak:name>\n' +
' </groundspeak:travelbug>';
Code : Tout sélectionner
var attributesString = "";
for ( ii = 0; (ii < geocache.attributes_array.length); ii++){
attributesString += getAttributeXML(geocache.attributes_array[ii]);
}
var geocacheMapping = [
['LAT', geocache.latitude],
['LON', geocache.longitude],
['TIME', xsdDateTime(geocache.dateHidden)],
['GCID', geocache.gcid],
['CACHEID', geocache.cacheid],
['GUID', geocache.guid],
['AVAILABLE', geocache.available],
['ARCHIVED', geocache.archived],
['CACHENAME', encodeHtml(geocache.cacheName)],
['CACHESYM', geocache.cacheSym],
['OWNER', encodeHtml(geocache.cacheOwner)],
['STATE', encodeHtml(geocache.state)],
['COUNTRY', encodeHtml(geocache.country)],
['TYPE', geocache.cacheType],
['CONTAINER', geocache.cacheSize],
['ATTRIBUTES', attributesString],
['DIFFICULTY', geocache.difficulty],
['TERRAIN', geocache.terrain],
['SUMMARY', encodeHtml(geocache.shortDescription)],
['DESCRIPTION', encodeHtml(geocache.longDescription)],
['HINT', encodeHtml(geocache.hint)],
['LOGS', logsStringArray.join("")],
];
Code : Tout sélectionner
var attributesString = "";
for ( ii = 0; (ii < geocache.attributes_array.length); ii++){
attributesString += getAttributeXML(geocache.attributes_array[ii]);
}
var cacheBugpoints = "";
if (geocache.bugs.length != 0) {
for ( zz = 0; zz < geocache.bugs.length; zz++){
var cacheBugpoint = geocacheBugTemplate;
cacheBugpoint = cacheBugpoint.replace(new RegExp("##BUGNAME##","g"),geocache.bugs[zz]);
cacheBugpoint = cacheBugpoint.replace(new RegExp("##BUGID##","g"),zz);
cacheBugpoint = cacheBugpoint.replace(new RegExp("##BUGREF##","g"),zz);
cacheBugpoints+=cacheBugpoint;
}
}
var geocacheMapping = [
['LAT', geocache.latitude],
['LON', geocache.longitude],
['TIME', xsdDateTime(geocache.dateHidden)],
['GCID', geocache.gcid],
['CACHEID', geocache.cacheid],
['GUID', geocache.guid],
['AVAILABLE', geocache.available],
['ARCHIVED', geocache.archived],
['CACHENAME', encodeHtml(geocache.cacheName)],
['CACHESYM', geocache.cacheSym],
['OWNER', encodeHtml(geocache.cacheOwner)],
['STATE', encodeHtml(geocache.state)],
['COUNTRY', encodeHtml(geocache.country)],
['TYPE', geocache.cacheType],
['CONTAINER', geocache.cacheSize],
['ATTRIBUTES', attributesString],
['DIFFICULTY', geocache.difficulty],
['TERRAIN', geocache.terrain],
['SUMMARY', encodeHtml(geocache.shortDescription)],
['DESCRIPTION', encodeHtml(geocache.longDescription)],
['HINT', encodeHtml(geocache.hint)],
['LOGS', logsStringArray.join("")],
['BUGS', cacheBugpoints]
];
Modifié en dernier par ITSB le jeu. 29 août 2013 23:02, modifié 2 fois.
- TofLaBeuze
- extra
- Contact :
- Profil GC
- Membre: : Premium
- GPS : Samsung J5 + Etrex 30x
- Localisation : Paris
Message
Re: GC Tour
Merci ITSB. Il serait peut-être intéressant de le proposer sur le site de GCTour afin que toute la communauté puisse en profiter
http://userscripts.org/scripts/show/36273" onclick="window.open(this.href);return false;
http://userscripts.org/scripts/show/36273" onclick="window.open(this.href);return false;