Giter Club home page Giter Club logo

vdr-ruby's Introduction

VDR ruby client library

Description

This is meant to be a ruby client library for VDR.

It is unfinished. Feel free to continue development. See background story.

Example usage

require 'lib/vdr'

con = Vdr::Connection.new('localhost',2001)
vdr = Vdr::Vdr.new(con)
puts vdr.disk_usage

Background story

I started developing this library in 2006. My parents own a VDR based computer for which I wanted to create a web frontend using Rails and this library.

This was my first attempt at Ruby code. I've been doing Java development before (which you can see in the code, really...). When I started working at imedo in 2007, I didn't take the time to finish this library. It collected dust on my hard drive since then.

I'm putting it up on github so you can develop it further. Or just use it as inspiration.

You can even develop the whole library without access to VDR as I collected example output from all the commands (as of 11/2006). See test directory.

Other than extracting the code to different files and some indentation the code is basically untouched since 2006.

Licence

MIT. See licence file.

Code Ideas

class VDR::VDR

Actions

channel+ channel- channel

press_key

Config / Control

Channels

channels # channel iterator channels << # add new channel

screenshot(filename, quality, heigt, width)

next_timer_date # NEXT

timers # timer iterator / array timers<< # add timer

plugin_command # Magic to discover options => Plugin object

EPG Data

clear_epg add_epg(epgdata) scan

end

class Timer

attr_accessor :active, :channel, :start_date, :end_date, :priority, :title

end

class Channel attr_accessor :name, :frequency, :parameter, :source, :srate, :vpid, :apid, :tpid, :ca, :sid, :nid, :tid, :rid

delete!

end

class Recording play(begin) # PLAY delete! end

class EpgData end

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.