Skip to main content

Topics

This section allows you to view all Topics made by this member. Note that you can only see Topics made in areas you currently have access to.

Topics - andrew

1
#twatch network LCD backpack / Winamp Status on Twatch (via Python)
Thread title is pretty self explanitory.
After not being able to find a virtual serial port to get LCD Smartie to work, I decided to have a go at writing my own code to do it.

The bulk of the program is the winamp IPC junk that I stole via google. (Link to original is in source).

It's pretty basic at the moment, but I thought people might like to see. I've got some speakers in my lounge room driven by my computer (long wires), this lets me know what's playing.

It shows artist on row 1, title on row 2, and a test string on row 3. Long stuff scrolls at a rate proportional to its length. The winamp code has hooks to add a play/pause indication, times, and a bunch more. It can also control winamp, but that's not really applicable to this application (unless there's a way to add buttons to the twatch, then it would be).


You'll proably need Python 2.6, and you will need pywin32. I'm running Python 2.6.4, pywin 214, and winamp 5.572.

{Attachment renamed to .txt for forum rules compliance, change it back to .py when you download}

TODOs:
make scrolling more robust
port to Python 3
2
#twatch network LCD backpack / Virtual Serial Ports
Ahh the joys of DRM....

I can't seem to find any (free as in beer) virtual serial ports that work with 64-bit Windows 7.

com0com & com2tcp looked promising, claims to work in win 7, but didn't for me. Got a cryptic error message when trying to create the virtual port.

The one linked from the page about using lcd smartie with the twatch wants money for the 64 bit version.

Anyone had any luck in 64 bit win 7?
Should I abandon hope and write my own python script?

( ! ) Fatal error: Uncaught exception 'Elk_Exception' with message 'Please try again. If you come back to this error screen, report the error to an administrator.' in /var/www/dangerousprototypes/forum/sources/database/Db-mysql.class.php on line 696
( ! ) Elk_Exception: Please try again. If you come back to this error screen, report the error to an administrator. in /var/www/dangerousprototypes/forum/sources/database/Db-mysql.class.php on line 696
Call Stack
#TimeMemoryFunctionLocation
10.01172278416session_write_close ( )...(null):0
20.01202410008ElkArte\sources\subs\SessionHandler\DatabaseHandler->write( )...(null):0
30.01202410784Database_MySQL->query( ).../DatabaseHandler.php:119
40.05732549520Database_MySQL->error( ).../Db-mysql.class.php:273