Skip to content

Instantly share code, notes, and snippets.

@Janjko
Janjko / osm_tag_translations_export.py
Created October 21, 2026 23:21
Wikibase P55 and P56 import scripts
#!/usr/bin/env python3
"""
Prepare values for two OSM Wikibase (Data items) properties by joining
three sources, one row per tag (e.g. building=apartments):
1. openstreetmap-website (config/locales/en.yml, geocoder prefixes) -> P56
2. openstreetmap-tag-translations (tags/en.json, used by OpenStreetBrowser) -> P55
3. OSM Wikibase items: which item belongs to which tag
This script only READS. It never edits the wiki. Its output is a CSV for
@Janjko
Janjko / wikibasep55p56.csv
Last active October 20, 2026 14:58
OSM Wikibase P55 P56 import
qid property value tag
Q26 P55 abandoned abandoned
Q30 P55 abutters abutters
Q31 P55 access access
Q7744 P55 access=agricultural access=agricultural
Q5243 P55 access=customers access=customers
Q7754 P55 access=delivery access=delivery
Q5928 P55 access=designated access=designated
Q5875 P55 access=destination access=destination
Q7771 P55 access=forestry access=forestry
naseljeid language
22861 it
55638 it
41831 it
42366 it
42480 it
63525 it
63843 it
64041 it
18376 it
22861 it
55638 it
41831 it
42366 it
42480 it
63525 it
63843 it
64041 it
18376 it
@Janjko
Janjko / docker-command
Last active December 23, 2022 14:06
OPC-UA memory usage test
docker run -it -d --restart always -p 81:81 -v /home/user/opcplc/appdata:/appdata -v /home/user/opcplc/test:/test --name opcplc mcr.microsoft.com/iotedge/opc-plc:latest --pn=81 --autoaccept --dalm=/test/eventmemorytest.json
@Janjko
Janjko / docker-compose.yml
Created October 15, 2021 15:10
Docker compose za conflator megaprojekt
version: "3"
services:
overpass:
container_name: overpass
image: wiktorn/overpass-api:0.7.56.4
environment:
- OVERPASS_META=yes
- OVERPASS_MODE=init
- OVERPASS_PLANET_URL=https://data.osm-hr.org/croatia/croatia.osm.pbf
conflator:
Generated at 2018-04-11 12:11:24 +0200
SocketError: remote_file[C:/adnet/mercury_package/Adnet.EASS.zip] (mercury_web::default line 22) had an error: SocketError: getaddrinfo: No such host is known.
C:/opscode/chef/embedded/lib/ruby/2.4.0/socket.rb:227:in `getaddrinfo'
C:/opscode/chef/embedded/lib/ruby/2.4.0/socket.rb:227:in `foreach'
C:/opscode/chef/embedded/lib/ruby/2.4.0/socket.rb:617:in `tcp'
C:/opscode/chef/embedded/lib/ruby/gems/2.4.0/gems/net-ssh-4.2.0/lib/net/ssh/transport/session.rb:70:in `initialize'
C:/opscode/chef/embedded/lib/ruby/gems/2.4.0/gems/net-ssh-4.2.0/lib/net/ssh.rb:237:in `new'
C:/opscode/chef/embedded/lib/ruby/gems/2.4.0/gems/net-ssh-4.2.0/lib/net/ssh.rb:237:in `start'
C:/opscode/chef/embedded/lib/ruby/gems/2.4.0/gems/net-sftp-2.1.2/lib/net/sftp.rb:31:in `start'
C:/opscode/chef/embedded/lib/ruby/gems/2.4.0/gems/chef-13.8.5-universal-mingw32/lib/chef/provider/remote_file/sftp.rb:61:in `sftp'