chilitechno / siriproxy-nestlearningthermostat Goto Github PK
View Code? Open in Web Editor NEWSiriProxy plugin to connect to Nest (based on SiriProxy-Thermostat)
SiriProxy plugin to connect to Nest (based on SiriProxy-Thermostat)
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
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.
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 method
generate_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:in
set_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:in
instance_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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.