automate posting from this repo to w8emv.weblog.lol #7

Open
opened 2026-01-01 05:48:15 +00:00 by w8emv · 4 comments
Owner

I want to minimize the amount of time I spend posting and fiddling with entries, and maximize the time writing them.

ideally the command line would be as simple as

omgblogpost file.md

and it would take care of everything. I don't know quite if the API supports setting all of the options and variables from within the md file or if I need a second argument to handle some of that.

I want to minimize the amount of time I spend posting and fiddling with entries, and maximize the time writing them. ideally the command line would be as simple as omgblogpost file.md and it would take care of everything. I don't know quite if the API supports setting all of the options and variables from within the md file or if I need a second argument to handle some of that.
Author
Owner

yeah, gotta refine it a bit, or limp along with what I have until a better system reveals itself.

yeah, gotta refine it a bit, or limp along with what I have until a better system reveals itself.
Author
Owner

getting closer, with --data-binary instead of --data so that I can feed in a file and not have it mangle line endings

getting closer, with --data-binary instead of --data so that I can feed in a file and not have it mangle line endings
Author
Owner

and being realistic about this, I'm waiting patiently for Neato at the moment.

and being realistic about this, I'm waiting patiently for Neato at the moment.
Author
Owner
#!/bin/sh
curl --location --request POST --header 'Authorization: Bearer token' 'https://api.omg.lol/address/w8emv/weblog/entry/'$1 --data-binary @$1.md

drawback, this doesn't handle dates all that well, and I haven't sorted out how to represent tags yet.

``` #!/bin/sh curl --location --request POST --header 'Authorization: Bearer token' 'https://api.omg.lol/address/w8emv/weblog/entry/'$1 --data-binary @$1.md ``` drawback, this doesn't handle dates all that well, and I haven't sorted out how to represent tags yet.
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
w8emv/omg-todo#7
No description provided.