{"id":13421789,"url":"https://github.com/leighghunt/tile38-viewer","last_synced_at":"2026-01-22T19:37:01.295Z","repository":{"id":38541556,"uuid":"205254730","full_name":"leighghunt/tile38-viewer","owner":"leighghunt","description":"A tool to visualise geofences and realtime events in Tile38 on a map","archived":false,"fork":false,"pushed_at":"2024-01-14T05:31:54.000Z","size":11463,"stargazers_count":82,"open_issues_count":13,"forks_count":19,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-03-15T10:33:24.277Z","etag":null,"topics":["geo","geofence","geojson","geospatial","gis","leaflet","leafletjs","map","spatial","tile38","viewer","visualization"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/leighghunt.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2019-08-29T21:39:46.000Z","updated_at":"2025-02-11T21:34:43.000Z","dependencies_parsed_at":"2024-02-03T08:59:36.274Z","dependency_job_id":null,"html_url":"https://github.com/leighghunt/tile38-viewer","commit_stats":{"total_commits":31,"total_committers":1,"mean_commits":31.0,"dds":0.0,"last_synced_commit":"1a03b065fc5b8bed0a5c1e21b29e7ea859235ffd"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/leighghunt/tile38-viewer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leighghunt%2Ftile38-viewer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leighghunt%2Ftile38-viewer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leighghunt%2Ftile38-viewer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leighghunt%2Ftile38-viewer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/leighghunt","download_url":"https://codeload.github.com/leighghunt/tile38-viewer/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leighghunt%2Ftile38-viewer/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28669368,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-22T19:36:09.361Z","status":"ssl_error","status_checked_at":"2026-01-22T19:36:05.567Z","response_time":144,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["geo","geofence","geojson","geospatial","gis","leaflet","leafletjs","map","spatial","tile38","viewer","visualization"],"created_at":"2024-07-30T23:00:30.002Z","updated_at":"2026-01-22T19:37:01.267Z","avatar_url":"https://github.com/leighghunt.png","language":"JavaScript","funding_links":[],"categories":["Miscellaneous","JavaScript"],"sub_categories":[],"readme":"# tile38-viewer\nA tool to visualise the state of events in Tile38\n\nZero configuration* - queries all geofence [channels](https://tile38.com/commands/setchan/) and [keys](https://tile38.com/commands/keys/) in your [Tile38](https://github.com/tidwall/tile38) instance.\n\nShows current state of items within tile38:\n![Clip1](img/clip1.gif)\n\nHighlights simple enter/exit/cross geofence events:\n![Clip2](img/clip2.gif)\n\n*May require some configuration.\n\n# Quickstart - on server\n```\nwget https://raw.githubusercontent.com/leighghunt/tile38-viewer/master/docker-compose.yml\nwget https://raw.githubusercontent.com/leighghunt/tile38-viewer/master/docker-environment-list\nsudo docker-compose up -d\n```\n* Ensure that ports 80, 443 and 9851 are open to traffic.\n\n## On local machine using [tile38-cli](https://tile38.com/topics/command-line-interface/):\n```\n$ tile38-cli -h \u003chost\u003e\n\u003chost\u003e:9851\u003e chans *\n{\"ok\":true,\"chans\":[],\"elapsed\":\"4.63µs\"}\n\u003chost\u003e:9851\u003e\n```\n\n\n## Updating geofences in Tile38\n```\nSETCHAN buildingTiakiwai WITHIN traffic FENCE DETECT enter,exit,cross OBJECT {\"type\":\"Polygon\",\"coordinates\":[[[174.77801,-41.27632],[174.77800,-41.27686],[174.77881,-41.27688],[174.77883,-41.27634],[174.77801,-41.27632]]]}\n\nSETCHAN buildingRutherfordHouse WITHIN traffic FENCE DETECT enter,exit,cross OBJECT {\"type\":\"Polygon\",\"coordinates\":[[[174.77861,-41.27881],[174.77893,-41.27917],[174.77895,-41.27916],[174.77900,-41.27919],[174.77921,-41.27907],[174.77920,-41.27906],[174.77927,-41.27902],[174.77922,-41.27898],[174.77925,-41.27895],[174.77921,-41.27889],[174.77924,-41.27886],[174.77926,-41.27888],[174.77943,-41.27870],[174.77949,-41.27873],[174.77959,-41.27863],[174.77926,-41.27847],[174.77861,-41.27881]]]}\n```\n\n\n## Updating points in Tile38\n```\nSET traffic Alice POINT -41.2763 174.7779\nSET traffic Alice POINT -41.2763 174.7781\nSET traffic Alice POINT -41.2763 174.7783\nSET traffic Alice POINT -41.2764 174.7783\n\nSET traffic Bob POINT -41.279823 174.779713\nSET traffic Bob POINT -41.279575 174.779228\nSET traffic Bob POINT -41.279269 174.778916\nSET traffic Bob POINT -41.279091 174.778754\nSET traffic Bob POINT -41.278963 174.778845\nSET traffic Bob POINT -41.278867 174.778982\nSET traffic Bob POINT -41.278763 174.778914\nSET traffic Bob POINT -41.278634 174.778848\n```\n\n![TestResult](img/testResult.png)\n\n\n\n# Walkthrough start on Ubuntu Server 18.04 LTS (HVM)\nhttps://docs.docker.com/install/linux/docker-ce/ubuntu/\n```\n$ sudo apt-get update\n\n$ sudo apt-get install \\\n    apt-transport-https \\\n    ca-certificates \\\n    curl \\\n    gnupg-agent \\\n    software-properties-common\n\n$ curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -\n\n$ sudo apt-key fingerprint 0EBFCD88\n\npub   rsa4096 2017-02-22 [SCEA]\n  9DC8 5822 9FC7 DD38 854A  E2D8 8D81 803C 0EBF CD88\nuid           [ unknown] Docker Release (CE deb) \u003cdocker@docker.com\u003e\nsub   rsa4096 2017-02-22 [S]\n\n$ sudo add-apt-repository \\\n   \"deb [arch=amd64] https://download.docker.com/linux/ubuntu \\\n   $(lsb_release -cs) \\\n   stable\"\n\n$ sudo apt-get update\n\n$ sudo apt-get install docker-ce docker-ce-cli containerd.io\n\n$ sudo docker run hello-world\n\n$ sudo curl -L \"https://github.com/docker/compose/releases/download/1.24.1/docker-compose-$(uname -s)-$(uname -m)\" -o /usr/local/bin/docker-compose\n\n$ sudo chmod +x /usr/local/bin/docker-compose\n\n$ docker-compose --version\ndocker-compose version 1.24.1, build 4667896b\n\n$ wget https://raw.githubusercontent.com/leighghunt/tile38-viewer/master/docker-compose.yml\n$ wget https://raw.githubusercontent.com/leighghunt/tile38-viewer/master/docker-environment-list\n$ sudo docker-compose up -d\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleighghunt%2Ftile38-viewer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fleighghunt%2Ftile38-viewer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleighghunt%2Ftile38-viewer/lists"}