Questions tagged [ruby]

Ruby is a dynamic, general-purpose high-level programming language, with an object-oriented style. There are many implementations of Ruby, including Ruby-on-Rails, a web app framework using Ruby.

11 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
2
votes
0answers
359 views

Watch for GPIO button while running a timer

I've built to build a timer that shows the content in a 16x2 LCD. So far so good. Now, what I want to achieve is that when I push a button, pause the timer. I'm using ruby, with the library rpi_gpio ...
1
vote
0answers
33 views

Why I can't get Ruby2D running on Raspberry Pi 3 model B?

I have made quite a lot of games in Ruby2D. I can play them on my PC, laptop. Ruby2D is a lot of fun and works very fast! But for some strange reason I can't get Ruby2D window working on a Raspberry ...
1
vote
1answer
65 views

net/http response encoding issues on Raspberry pi

Identical requests and headers to same server from two different platforms get as response two diferent encodings: From Win7 PC I get UTF-8 which is what I want. From Raspberry pi I get ASCII-8bit. ...
1
vote
0answers
372 views

Ruby - I2C - pi_piper - How to use 4x20 LCD display? - HD44780 with PCF8574 converter

Anyone know how I can get use pi_piper gem to use 4x20 LCD display (hd44780) with I2C converter (PCF8574). I'm totally noob in this part of programming. I tried using ruby-i2c-devices gem, but ...
1
vote
0answers
625 views

I have a Raspberry PI, loaded Debian, loaded mysql, loaded RVM, trying to run Bundle install --without production

Originally when I try to run "ruby server" I get this: i@ruby-pi-chas1 ~/projects/sample $ ruby server ruby: No such file or directory -- server (LoadError) When I run the bundle install the system ...
0
votes
0answers
61 views

Rails Server command is failing

I´ve been trying to install rbenv, ruby and rails in my Raspberry Pi 3 B+ in the past couple of days and after some issues here and there I've managed to get everything installed with no errors With ...
0
votes
1answer
174 views

“bash: rbenv: command not found” and “bash: nodenv: command not found”

After trying to install this script using these commands: $ git clone git://github.com/mislav/dotfiles.git ~/dotfiles $ ~/dotfiles/script/bootstrap I restarted my Raspberry Pi and I'm seeing these ...
0
votes
1answer
184 views

How to get gpio status on an output pin in ruby

I'm using the Pi to control some decorative lights. I turn the lights on and off via cron scripts and would like to get status on the lights as well. When I run the code below, it reports 'on' if ...
0
votes
0answers
105 views

Ruby gem gosu not installing, what's wrong

I am using a Raspberry Pi B 2 running Rasbian. It came with Ruby preinstalled on the card. I would like to install the ruby gem Gosu, but even with the internet working it still won't download and ...
0
votes
1answer
356 views

Running ruby script with eventmanager on startup

I hope somebody can help me with the following. I need my Raspberry to run a ruby script on startup which uses ruby's eventmachine package. I've installed rvm, the correct ruby version (2.1.0-dev), ...
0
votes
1answer
150 views

cannot get ruby-opencv to build correctly on Raspberry

I'm trying to use ruby on a Raspberry Pi with the ruby-opencv gem - but alas it will not build :( root@raspberrypi:/usr/lib# uname -a Linux raspberrypi 4.4.50-v7+ #970 SMP Mon Feb 20 19:18:29 GMT ...