Skip to content

Latest commit

 

History

History
20 lines (14 loc) · 1.51 KB

README.md

File metadata and controls

20 lines (14 loc) · 1.51 KB

Tool to manage new OpenStreetMap users monitoring in a country.

Inspired by OSM Welcome Belgium, uses the newestosm feed by Pascal Neis.

Used in production for Italy on http://welcome.openstreetmap.it/.

Installation

To install:

  • Have a working AMP web server (Apache with mod-rewrite, PHP, MySQL)
  • Clone this repository in a folder, run composer update to donwload the libraries, create a mysql database and import welcometool.sql.
  • Register a new Oauth client in your OpenStreetMap user profile.
  • Copy variables.sample.ini.php to variables.ini.php and modify this with your variables (database credentials, Oauth, base url, feed url and main language).

To download new users, run cron_new_user.php either in the browser, or via command line (you could set it up as a cronjob running daily). To update changeset information, run similarly cron_update_cs.php (not at the same time).

Usage

From the admin section set up as many languages as you want with their ISO-alpha-2 code (at least one language, which needs to be registered in the mainLanguage parameter in the variables file). Now you can create "snippets" per each language (a title and a markdown text), which you will use to compose new messages.

Language

Language information is loaded from json files in locales folder. Default language is configured in the variables file.