I previously had a neat little home theater remote setup using a minimal ubuntu machine and a Tira-2 USB IR transceiver.
The old machine finally died after about 5 years of continuous operation, so I've replaced it with a Pi
The old setup worked like this:
web page button (form) press -> AJAX & Javascript -> CGI -> perl script -> Tira-2.py -> IR command transmitted
I've set up my web host (apache2), perl is up to date and python is up to date.
Naturally, it isn't working as planned.
In attempting to run the Tira-2.py script directly (bash)
I get the following errors:
Code: Select all
Tira-2.py: line 20:
Control program for the Home Electronics Tira-2 IR transceiver
Copyright © 2006,2007 Lincor Solutions…
…See the GNU General Public License for more details.
: No such file or directory
Tira-2.py: line 60: import: command not found
Tira-2.py: line 62: syntax error near unexpected token `('
Tira-2.py: line 62: `def get_options():'The full script is still available here http://www.pixelbeat.org/programs/Tira-2/
Any help getting this much operating would be really appreciated!
After this I can get into making everything else cooperate, which will be many more questions.