Comments (7)
The openssl gem is required and it appears it isn't installed on your machine. Try installing openssl and compile ruby with openssl support, which is pretty easy using RVM.
from dropcam.
I was able to get it working using https://rvm.io/packages/openssl/.
Thanks.
Now to setup a cron job to turn ON and OFF the dropcam to save from uploading video of an empty room.
from dropcam.
Since this topic is still open I'll post here as I'm getting the same error with Ruby 2.0.0-p247:
$ ruby -v
ruby 2.0.0p247 (2013-06-27 revision 41674) [x86_64-darwin12.5.0]
$ ./dropcam.rb
/Users/steven/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/dropcam-0.0.4/lib/dropcam/base.rb:138:in `_dropcam_http': uninitialized constant Dropcam::Base::OpenSSL (NameError)
from /Users/steven/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/dropcam-0.0.4/lib/dropcam/base.rb:69:in `post'
from /Users/steven/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/dropcam-0.0.4/lib/dropcam/session.rb:14:in `authenticate'
from /Users/steven/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/dropcam-0.0.4/lib/dropcam.rb:11:in `initialize'
from ./dropcam.rb:6:in `new'
from ./dropcam.rb:6:in `<main>'
However, OpenSSL itself seems to be working with Ruby just fine:
$ irb
> require 'openssl'
=> true
> key = OpenSSL::PKey::RSA.new 2048
=> #<OpenSSL::PKey::RSA:0x007fd0b137ae68>
Any other ideas what could be triggering this error?
from dropcam.
By the way, this seems to be working fine with Ruby 1.9.3-p448. It's only 2.x that seems to be having issues.
from dropcam.
I'll take a look and see. The library was only tested with 1.9.3 and there may be some landmines with adding support for 2.x.
from dropcam.
@nolanbrown understandable, I wouldn't sweat it too much. It's easy to set RBENV_VERSION as an ENV variable before running the script ;)
from dropcam.
This fixed it for me:
#8
from dropcam.
Related Issues (9)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dropcam.