Project details
We already use the forum API to populate the chapters map dynamically with chapter info such as country tag (nl), group members and the chapters website. But we can enhance it further by adding Activism > Events, which include the correct metadata when adding an event. Everyone will be able to create new events and these events will then automatically show up on the map, as it should for a grassroots movement.
Project description
This can and will be done in a few steps. A Python script will be created to fetch and transform the data to be used in the chapters map, more details in the checklist.
Your personal background
I izzz IT person and built and maintain this forum already from scratch. I got this.
Estimated timeline
Should be finished by the end of 2025.
Resources
- A proof of concept might take an afternoon (making it work)
- Fine tuning it and including it in infrastructure as code might take about 2 weeks (making it perfect)
- The public API of the forum
Checklist
Get a list of all topics, which can be done with the public API: https://tzm.one/c/11.json
Then, loop through all topic IDs and fetch the first post, e.g. https://tzm.one/t/48918/1.json, from that JSON structure, fetch the event name (if not set, replace it with the topic title), event date and event location
Store the above in a Python class called Event to apply object oriented programming
Enrich the Event object with longitude and latitude coordinates
Write a JSON file with this information, which should then be used in the JavaScript from the chapters map.
Perfect the code
Setup a schedule to run the script to keep the events on the map current
Include everything in the infrastructure as code repository


