(Update) Application of local postponed posting

in #programming7 years ago

Приветствую.

Сегодня я выношу на суд общественности обновленное приложение локального отложенного постинга.
По указанному пути находиться исходный код приложения на языке програмирования GO, а также скомпилированные бинарные файлы для более распространенных систем windows, linux и mac.


Greetings.

Today, I am bringing to the public's court an updated [application of local postponed posting.] (Https://github.com/asuleymanov/ppost)
On the specified path is the source code of the application in the programming language GO, as well as compiled binaries for the more common systems of windows, linux and mac.

Нововведения/Innovations

  • Изменен формат создания публикации.
  • Программа умеет вставлять в публикации графические файлы размещая их на хостинге imgur.com.

  • The format for creating a publication has been changed.
  • The program can insert graphic files into the publication by placing them on hosting imgur.com.

Установка/Installation

  1. Либо скомпилировать проект в исполняемый файл для вашей системы.
  2. Либо взять 1 из уже скомпилорованных бинарных файлов из папки bin.

  1. Either compile the project into an executable file for your system.
  2. Or, take 1 of the already compiled binaries from the bin folder.

Настройка/Customize

Скопировать рядом с бинарником файл config.json. И установить в нем параметры.

  • username - Имя пользователя в системе Golos или Steem.
  • posting_key - Постинг ключь пользователя.
  • chain_name - Имя системы (golos, steem).
  • chain_url - Путь к ноде системы. Указываеться либо одно из известных (wss://ws.golos.io, wss://steemd.steemit.com), либо любой из известных Вам.
  • post_dir - Относительны или полный путь к папке где будут располагаться публикации.
  • arch_dir - Относительный или полный путь к папке куда будут складываться обработанные публикации в виде арховов *.tar.gz.
  • web_port - Порт для сервера статистики.

Copy the config.json file next to the binary. And set the parameters in it.

  • username - The user name in the Golos or Steem system.
  • posting_key - Posting the user's key.
  • chain_name - The name of the system (golos, steem).
  • chain_url - The path to the node of the system. It is indicated either one of the known (wss: // ws.golos.io, wss: //steemd.steemit.com), or any one known to you.
  • post_dir - Relative or full path to the folder where the publications will be located.
  • arch_dir - The relative or full path to the folder where the processed publications will appear in the form of archives * .tar.gz.
  • web_port - The port for the statistics server.

Использование/Using

Для создания задания необходимо в папке для публикаций создать папку вида (2017-08-08@@10:10).
В данной папке необходимо разместить необходимые файлы с картинками.
И непосредственно файл публикации с названием body.md.

Формат файла body.md

  • 1-я строка - Непосредственно наименование публикации (так как Вы хотите назвать свою публикацию)
  • 2-я сторка - Список тэгов разделенных запятыми
  • 3-я строка и далее непосредственно Ваша публикация
  • P.S. Для того чтобы система автоматически загрузила и вставила картинки в Вашу публикацию необходимо в нужном Вам месте вставить "![<имя графического файла>]". Система автоматически загрузит файлы на хостинг imgur.com. По получении линка от хостинга автоматически его интерпретирует в необходимый формат и вставит в публикацию

После обработки директория упакуеться в архив tar.gz и переместиться в папку arch.
Система работает постоянно и при появлении новой директории в папке публикаций автоматически (раз в 30 секунд) её обрабатывает.


To create a job, you must create a folder of the form (2017-08-08 @@ 10: 10) in the folder for publications.
In this folder you need to place the necessary files with pictures.
And directly the publication file named body.md.

The format of the file body.md

  • 1st line - Directly the name of the publication (since you want to name your publication)
  • 2nd Story - A list of tags separated by commas
  • 3rd line and then directly your publication
  • P.S. In order for the system to automatically download and insert pictures into your publication, you need to insert "![< Graphic file name >]" in the desired place. The system will automatically download files to imgur.com hosting. Upon receipt of the link from the hosting service, it automatically interprets it into the required format and inserts it into the publication

After processing, the directory will be compressed into the tar.gz archive and moved to the arch folder.
The system works constantly and when a new directory appears in the publications folder automatically (every 30 seconds) it processes.

Coin Marketplace

STEEM 0.26
TRX 0.13
JST 0.031
BTC 61699.33
ETH 2887.31
USDT 1.00
SBD 3.47