Skip to content

A simple nodejs script(s) to interact with mobilizon via command line

Notifications You must be signed in to change notification settings

allilengyi/mobilizon-poster

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mobilizon-poster

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.

This tool enable a mobilizon user to post in their account.

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:

bin/poster

this is the tool that post events in mobilizone

bin/postEvent

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"
}

bin/deleter

this delete an event previously submit by 'poster'

bin/ical

this tool read from an ical event and call 'poster' as many time as events found

bin/login

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

bin/group-list


renamer (not yet implemented)

This tool rename a group, so it should be used when a "— unofficial" group become renamed.

uploader (not yet implemented)

A picture should be uploaded separately and then linked to the event. It is a task that require a dedicated tool.

Configuration variables

Location

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

About

A simple nodejs script(s) to interact with mobilizon via command line

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 98.7%
  • Shell 1.3%