Socket
Book a DemoInstallSign in
Socket

kaede

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

kaede

0.2.0
bundlerRubygems
Version published
Maintainers
1
Created
Source

Kaede

Gem Version Build Status Coverage Status Code Climate

Scheduler for recpt1 recorder using Syoboi Calendar.

Installation

Add this line to your application's Gemfile:

gem 'kaede'

And then execute:

$ bundle

Or install it yourself as:

$ gem install kaede

Usage

Requirements

  • SQLite3 or PostgreSQL
  • redis
  • dbus
  • recpt1
  • b25
  • statvfs
  • clean-ts
  • assdumper

Some of them should be optional, though.

Setup

kaede dbus-policy $KAEDE_USER > kaede.conf
sudo mv kaede.conf /etc/dbus-1/system.d/kaede.conf

cp kaede.rb.sample kaede.rb
vim kaede.rb
gem install pg  # gem install sqlite3
kaede db-prepare

cp kaede.service.sample kaede.service
vim kaede.service

sudo cp kaede.service /etc/systemd/system/kaede.service
sudo systemctl enable kaede.service
sudo systemctl start kaede.service

Add your available channels.

kaede add-channel MX -c kaede.rb --recorder 16 --syoboi 19
kaede add-channel BS11 -c kaede.rb --recorder 211 --syoboi 128
...

Add your favorite anime tids.

kaede add-tid -c kaede.rb 3331
...

Operations

Update programs and schedules. It supposed to be run periodically (by cron or systemd.timer).

kaede update -c kaede.rb

List schedules.

gdbus introspect --system --dest cc.wanko.kaede1 --object-path /cc/wanko/kaede1/program -r

Reload schedules (usually not needed).

dbus-send --system --dest=cc.wanko.kaede1 /cc/wanko/kaede1/scheduler cc.wanko.kaede1.Scheduler.Reload

Stop scheduler. The current scheduler process exits after all the running recorders finish.

dbus-send --system --dest=cc.wanko.kaede1 /cc/wanko/kaede1/scheduler cc.wanko.kaede1.Scheduler.Stop

What recorder does

  • Post the earlier tweet (optional).
  • Record the program into record_dir by recpt1.
    • At the same time, decode into cache_dir by b25.
    • At the same time, dump ass into cache_dir by assdumper.
  • Post the later tweet (optional).
  • Clean the recorded TS (in cache_dir) into cabinet_dir.
  • Move dumped ass (in cache_dir) into cabinet_dir.
  • Enqueue the filename into redis_queue.

Contributing

  • Fork it ( https://github.com/eagletmt/kaede/fork )
  • Create your feature branch (git checkout -b my-new-feature)
  • Commit your changes (git commit -am 'Add some feature')
  • Push to the branch (git push origin my-new-feature)
  • Create new Pull Request

FAQs

Package last updated on 21 Jul 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.