maciekish / siriproxy-tellsticknet

A SiriProxy plugin for Tellstick Net
1 stars 0 forks source link

- Make sure tdtool.py is somewhere in your $path. ? #1

Closed olehumborstad closed 11 years ago

olehumborstad commented 11 years ago

Could you be a little more specific please?

olehumborstad commented 11 years ago

path

olehumborstad commented 11 years ago

Where am I supposed to put tdtool.py?

maciekish commented 11 years ago

Do

echo $PATH

and put tdtool.py in any of those folders so that it can be executed from anywhere without having to do

/home/Home/SiriProxy/plugins/siriproxy-tellsticknet/lib/tdtool.py

olehumborstad commented 11 years ago

siri@siri:~/SiriProxy$ echo $PATH /home/siri/.rvm/gems/ruby-1.9.3-p194@SiriProxy/bin:/home/siri/.rvm/gems/ruby-1.9.3-p194@global/bin:/home/siri/.rvm/rubies/ruby-1.9.3-p194/bin:/home/siri/.rvm/bin:/usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games

i placed it here;

Still, no such file or directory... Am I missing some config info where to find tdtool.py or something?

olehumborstad commented 11 years ago

tdtool.py is authenticated and works from every location when i test it with python, but your script cant find any of the $PATH(s)

Any idea, hints?

maciekish commented 11 years ago

In that case i have no real clue about what's wrong. I can check where my tdtool.py is on my Pi when i get home, but it shouldn't matter as its invoked as 'tdtool.py ...' in the code.

Can't say Python or tdtool is anything I've worked with a lot, this is more of a hack :)

olehumborstad commented 11 years ago

i c, i didn't even know telldus had a python version of tdtool until i stumbled upon your "hack" here so that's very nice anyhow :) Let me know when you can, i'm real eager to run this script with dimming and so on :D it might be that I've changed some path in a stupid bash file somewhere on Ubuntu, it wouldn't surprise me. Hopefully it just works like magic when i place the .py script wherever you have :)

olehumborstad commented 11 years ago

Never mind, i just got it working =D it had something to do with the properties of the tdtool.py i think, anyways, thanks for your reply! :D

maciekish commented 11 years ago

Great, hope you find it useful!

Do you mind sharing what you did to make it work in case someone has the same problem? If you know what fixed it eventually.

Maciej

On Thu, Apr 4, 2013 at 4:37 PM, whitehum notifications@github.com wrote:

Never mind, i just got it working =D it had something to do with the properties of the tdtool.py i think, anyways, thanks for your reply! :D

Reply to this email directly or view it on GitHub: https://github.com/maciekish/siriproxy-tellsticknet/issues/1#issuecomment-15900981

olehumborstad commented 11 years ago

Works like a charm :D Great little script, having some problems with siri understanding "darker" as "barcher" for some reason, must be my crappy English, but i'll add that to your line along with Dr. and so on ;)

I'm not quite sure what resolved it really, i messed around a bit, but the last thing i did was to just set the permission properties of tdtool.py to execute as program and read and write access really, hope that this could help someone else: allow

Thanks for making this, its really awesome! :D