Skip to content

Map with all hackerspaces, fablabs and makerspaces

License

Notifications You must be signed in to change notification settings

omegix/map-all-spaces

 
 

Repository files navigation

map-all-spaces

This site exist of two parts, the map and the hackerspace wiki cences

Map

Map with all hackerspaces, fablabs and makerspaces. Check it out here!

Combine several sources and put them together on one map. This will result in a uptodate map.

Sources :

If you want to be added/removed/changed check one of the above source and modify it there.

For details about what 'rules' apply check the FAQ html page.

Any questions or remarks contact me [email protected].

Instal for local use/test

Clone this github to a local directory. I asume you have php and composer installed.

-- User composer to install twitter and database libary's. 'composer require catfan/medoo j7mbo/twitter-api-php'

  • Copy 'settings_example.php' to 'settings.php' and change paths to reflect your local system.
  • Run 'php setup.php' to create a sqlite database with table.
  • You can now get all the data and proces it with 'php update.php'. If you run it for the first time you want to use the options "--init --all"
  • go to 'public_html' directory and use the php server to enjoy the results ('php -S localhost:8000')

Options of update.php --all Process all options --wiki Update data from wiki --fablab Update data from fablab.io --log=0 Define loglevel, 0 for all message, 5 only errors --init Delete all records and logfile --api Spaceapi --comp Dedupe wiki

With the '--all' option it will : -get api data, check if json could be retrieved and procesed. -get fablab.io data, only include the 'active' fablabs -get wiki.hackerspaces.org, only active hackerspaces with a location -dedupe above resuls, check name match 45% and distance <200m

You can only do one part of the processing by giving eg '--wiki' to do only the part of getting and processing the wiki.hackerspaces.org data.

The above steps will generate *.geojson files that will be read by the maps leaflet. You have to have a webserver that points to the 'public_html' directory of alternative you can use the php server to do this.

Used components

Hackerspace Cencus

Check if a hackerspace is still active (and edit status if not)

Create bot via https://wiki.hackerspaces.org/Special:BotPasswords

Curl Errors https://curl.haxx.se/libcurl/c/libcurl-errors.html

About

Map with all hackerspaces, fablabs and makerspaces

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 84.5%
  • HTML 10.8%
  • CSS 4.7%