geokrety / geokrety-scripts Goto Github PK
View Code? Open in Web Editor NEWScripts launched with cron
License: MIT License
Scripts launched with cron
License: MIT License
For #9 it will be required to have API keys for OC* websites. Please request official GK keys and add them to prod environment.
Suggested env variables names are "OC_XX_OKAPI_CONSUMER_KEY"
At least:
Pl https://opencaching.pl/okapi/signup.html
UK https://opencache.uk/okapi/signup.html
DE https://www.opencaching.de/okapi/signup.html
US http://www.opencaching.us/okapi/signup.html
NL https://www.opencaching.nl/okapi/signup.html
Execute the following command
cd /opt/geokrety-scripts/waypointy/oc && php xml2sql.php
waypoint should be imported in one shot, but the mass import stop at the first error, ex:
error 1: 138028 INSERT INTO `gk-waypointy` ( `waypoint`, `lat` , `lon` , `name` , `owner`, `typ`, `kraj` , `link`, `status`)
VALUES ('OC888B', '50.95977', '7.11358', 'Einsatz an der Steinbreche (#2)' //...//
ON DUPLICATE KEY UPDATE `waypoint`='OC888B', `lat`='50.9 //...//
on duplicate log as warn and continue
add OC waypointy english translation for 'kraj' (country) an typ (cache-type)
this issue is a dependency of geokrety/geokrety-website#32
we could also add country code to be able to show corresponding flag image.:
https://cdn.geokrety.org/images/country-codes/
See https://github.com/opencaching/opencaching-pl/blob/master/xml/README.txt and geokrety/geokrety-website#427
GeoKrety should use OKAPI for fetching data from OC.pl.
No idea, whether this is the correct repo for my issue...feel free to redirect me.
I installed the Geokrety Toolbox v0.3.3 into my Tampermonkey (in conjunction with Firefox 59.0.2).
In principle the script is executed, however I just recognized it does not report the correct inventory:
Any idea what going wrong?
I've found that all gc.su waypoint name having character "
in the title are badly encoded on import. This is caused by some weird text trasnformation in import script
geokrety-scripts/waypointy/ru/gpx2sql.php
Line 24 in e8c4920
We should rework this script as done for OC in #9
I have created an alias for geo.geokrety.org. Hostname can be safely changed in code.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.