Git Product home page Git Product logo

siriproxy-nestlearningthermostat's People

Contributors

chilitechno avatar snicker avatar worldjoe avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

siriproxy-nestlearningthermostat's Issues

QUESTION: Passing hash or array into plugins from config.yml?

Sorry for the cross post, but I noticed that you have "support multiple Nest's" on you To Do List.
plamoni/SiriProxy#372

I have a similar problem and question how best to support multiple devices.

I have several plugins that need to support multiple devices with the same or similar configuration information. Example: I have two IP2IR devices for IR control and have multiple IP cameras that use the same REST and CGI interfaces, respectively.

Can i use the config..yml file to pass in a hash key/value pairs or an array to make my plugin more generic and support multiple devices? See my code for what I am trying to do.

https://github.com/elvisimprsntr/siriproxy-redeye

Thanks in advance,

Elvis

Multiple Thermostats

I have central heat and air, and the plugin worked right away; but only for the upstairs nest.
I have four nests and if I say away or home, it will set all of them, but I cannot modify any specific nest, just the office. I think it is because it's the first one that appears in the list when it connects to nest.

Warning: I am not a programmer, but I pick up things well. If you can point me to where I could modify or add something; that would be amazing.

Say broken

Here's the current error:

[Info - Plugin Manager] Say: One moment while I set the Nest to away.
/root/SiriProxy/lib/siriproxy/plugin_manager.rb:62:in respond': undefined methodgenerate_siri_utterance' for #SiriProxy::PluginManager:0x0000001e9c0ce8 (NoMethodError)
from /usr/local/rvm/gems/ruby-1.9.3-p385@SiriProxy/gems/cora-0.0.4/lib/cora/plugin.rb:64:in say' from /usr/local/rvm/gems/ruby-1.9.3-p385@SiriProxy/bundler/gems/SiriProxy-NestLearningThermostat-d912f16edca8/lib/siriproxy-nestlearningthermostat.rb:125:inset_thermostat_away_or_home'
from /usr/local/rvm/gems/ruby-1.9.3-p385@SiriProxy/bundler/gems/SiriProxy-NestLearningThermostat-d912f16edca8/lib/siriproxy-nestlearningthermostat.rb:22:in block in <class:NestLearningThermostat>' from /usr/local/rvm/gems/ruby-1.9.3-p385@SiriProxy/gems/cora-0.0.4/lib/cora/plugin.rb:47:ininstance_exec'
from /usr/local/rvm/gems/ruby-1.9.3-p385@SiriProxy/gems/cora-0.0.4/lib/cora/plugin.rb:47:in `block (2 levels) in process'
zlib(finalizer): the stream was freed prematurely.
zlib(finalizer): the stream was freed prematurely.
zlib(finalizer): the stream was freed prematurely.
zlib(finalizer): the stream was freed prematurely.

I fixed this in my local tree, but I'm new to github so I don't know how to merge it into the master.

Here's the diff, I doubt all 3 are required.

diff --git a/lib/siriproxy-nestlearningthermostat.rb b/lib/siriproxy-nestlearningthermostat.rb
index d8def78..b2206ee 100644
--- a/lib/siriproxy-nestlearningthermostat.rb
+++ b/lib/siriproxy-nestlearningthermostat.rb
@@ -3,6 +3,9 @@
require 'rubygems'
require 'httparty'
require 'json'
+require 'siri_objects'
+require 'pp'
+require 'cora'

class SiriProxy::Plugin::NestLearningThermostat < SiriProxy::Plugin
attr_accessor :nest_email

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.