A simple nodejs script(s) to interact with mobilizon via command line.
It grows organically it means it might not follow a precise and robust development pattern. You should consider this is an alpha stage working prototype.
Read here for usage tips and documentation.
We should separate the tool from the groups managed by individual, if you want to keep a small list:
- https://mobilize.berlin/@radarsquatnet\_repost
- https://mobilize.berlin/@facebook\_repost
- [add yours via PR]
this is the tool that post events in mobilizone
this is the tool to create an Event on a mobilizon instance using a json file as input.
Usage: node bin/postEvent.js /absolute/path/to/jile.json
As json keys are expected:
{
"start": "YYYY-MM-DD HH:mm",
"end": null or "YYYY-MM-DD HH:mm",
"title": "$string",
"description": "$string",
"address": "$string",
"url": "$url",
"picture": {
"media_id": "$idFromUploader.sh"
},
"organizer_id": "$id",
"attributed_to_id": "$id"
}
this delete an event previously submit by 'poster'
this tool read from an ical event and call 'poster' as many time as events found
this is the tool that perform access to mobilizon server and save the authentication token, so the other tools can use it.
Usage: node bin/login.js --login=$login --password=$password
This tool rename a group, so it should be used when a "— unofficial" group become renamed.
A picture should be uploaded separately and then linked to the event. It is a task that require a dedicated tool.
node bin/poster.js --start "2021-05-09 10:22" --end "2021-05-09 11:22" --title "Test event new structure" --description "blah blah" --url "nothing" --location "Moritzplatz, Berlin, Germany