On 05/31/2012 09:43 AM, Daniel Bryan wrote:
> Here's an example based on an application that I have in production.
> It's a bit amateurish - and I'm going to mangle the language - but you
> should get the idea.
>
> This is an extract from the main script:
>
> ===
> Class Handler(Resource):
>
Dear All
c/q Itamar, I really appreciate your enlightment
On 05/29/2012 09:14 PM, Itamar Turner-Trauring wrote:
>
> Applications are just a *deployment* method, providing startup and
> shutdown notification; they're not really relevant to how you interact
> with dbus. See
> http://twistedmatrix.co
Dear All
On 05/25/2012 04:27 PM, vinod kumar wrote:
> Hi everyone,
>
> I'm trying to connect to homematic server at address '192.168.1.251'
> and port '2001'. I have a sample twisted server and client on my localhost.
> It's working fine. Now to the functions in server protocol.py file, I add
Dear all ...
I need my twistd script to also 'listen' to dbus.
The only example that I found so far is :
http://twistedmatrix.com/trac/attachment/ticket/1352/dbus-twisted.py
Buit that example not using some thing like :
application = service.Application("MyApp")
Is there any example of dbus impl
Dear All ..
I'm trying to received json formated text using LineReceiver
Here is my code
START
class ArduinoReceiver(LineReceiver):
def __init__(self):
print 'INIT : ArduinoReceiver'
def lineReceived(self, line):
line = line.strip()
print 'Received li
Dear All ..
My system is an ubuntu box with openbox and Slim.
in my tac file with a SerialService, I have this line
serial = SerialPort(ArduinoReceiver(), '/dev/arduino',
reactor,baudrate=4800)
This tac file always run well when I start it manualy from xterm.
I call it using an sh script :
--
Dear all
Currently I use wokkel to bridge SerialService to my Pub/Sub system
(currently based on Jabber XMPP)
my co-worker is PHP guys, so it's hard to get access to XMPP from PHP.
he told me about Redis, and I found txredis and TxRedisapi
I want my application basically :
1. Send whatever recei
Dear all.
Recently, for my MDT project I use 2 twisted script.
one for the core process (XMPP, LineReceiver, SerialService), and
one for displaying msg (twisted with WxPython)
I need 2 of them .. since I cannot combine them in single script.
I Only familiar with 'service.Application' method.
Know
Argh ignore my post about this problem.
I just need to add --> mynotify.show() to fix it.
BTW it's not needed when we are not in twisted.
Sincerely
-bino-
On 03/06/2012 05:38 PM, bino oetomo wrote:
> Dear Phil
> On 03/06/2012 04:33 PM, Phil Mayers wrote:
>> So pyn
Dear Phil
On 03/06/2012 04:33 PM, Phil Mayers wrote:
>
> So pynotify is a GTK thing?
>
I don't know
> Are you using the GTK reactor?
>
Ooopss .. no ...
Could you please tell me how to do it with MultiService ?
I still need run my script using twistd
Sincerely
-bino-
> _
Dear All ...
I have a Serial service in my twisted script
Inside my 'class ArduinoReceiver(LineReceiver):' ,
I have a function like :
---START
def setdisplay(self, dispmode):
global mynotify
self.ntf_title = 'TOMBOL'
self.ntf_body = 'Coba aja'
try :
Dear All ...
I try to simulate a gps with gpsfake.
gpsfake create virtual port at /dev/pts/4
my code is posted at : http://pastebin.com/j2wn1aXh
It's never reach the 'lineReceived' part.
I Got no error msg.
The log only said
2012-02-23 16:02:50+0700 [-] Log opened.
2012-02-23 16:02:50+0700 [-]
Dear All ..
I just test my simple txjson-rpc server with PHP , and found it 'works'
Here is the also simple php script i use
--START-
http://jsonrpcphp.org/
$myExample = new jsonRPCClient('http://127.0.0.1:50008');
// performs some basic operation
echo 'Attempt to perform basic operat
Dear All ...
I try to use txjsonrpc web2.
I download the source from
http://pypi.python.org/packages/source/t/txJSON-RPC/txJSON-RPC-0.3.1.tar.gz
after extracting and installing .. I go to the examples/web2 directory ...
and run :
bino@bino-desktop:~/Documents/IWIC/JSONRPC/txJSON-RPC-0.3.1/example
Hi Jessica
On 01/10/2012 08:10 AM, Jessica McKellar wrote:
> Hi Bino,
>
> I received your e-mails from today, as well as the other e-mails that
> have been sent in the last couple of days, which you can check here:
>
> http://twistedmatrix.com/pipermail/twisted-python/2012-January/thread.html
>
> T
Hi Jessica.
"Strangely" I also receive this "test" post
But I didn't receive my previous post
Sincerely
-bino-
___
Twisted-Python mailing list
Twisted-Python@twistedmatrix.com
http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python
screen/panel/window when started
2. wait for command input via TCP/UDP/UnixSocket in JSON format
3. update the display based on variables inside incoming command
And if it not to much ... i prefer using twisted .tac file and
service.MultiService() and service.Application().
Sincerely
-bino-
**On
I don't receive any new post for several days.
Is there a problem with this list ?
-bino-
___
Twisted-Python mailing list
Twisted-Python@twistedmatrix.com
http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python
Dear All ...
I just copy and paste the code from
http://code.activestate.com/recipes/298985/
and adding lines :
--
self.allowNone = True
self.useDateTime = False
--
just before line# 45,
and it work great.
I need to adopting that script to my applicatio
Dear Tim Allen and Jean-Paul
I realy appreciate your enlightment .. i try it and it works
Sincerely
-bino-
On 12/23/2011 11:15 AM, Tim Allen wrote:
> It looks like "self.writethis" is an Element, not a string. Python's
> print statement will automatically call str() on things before it prints
> th
Dear Jean-Paul
Thankyou for your help.
On 12/23/2011 09:57 AM, exar...@twistedmatrix.com wrote:
>
> A SerialPort doesn't have a transport. It is a transport. Instead of:
>
> self.serial.transport.write(foo)
>
> try
>
> self.serial.write(foo)
>
Here is my function (edited)
---START-
Dear Lucas
I realy appreciate your pastebin
On 12/22/2011 01:12 PM, Lucas Taylor wrote:
>
>
> ...and an update to your pastebin that may be helpful for context:
> http://pastebin.com/2EJ22wXa
>
When I first try to adapt your script, there is error complaining about
that "serial" have no "setParen
Dear Lucas Taylor
Thankyou for your fast enlightment.
It's time for me to re-build my ejabberd turnkey linux
Sincerely
-bino-
On 12/22/2011 01:12 PM, Lucas Taylor wrote:
>
>
> This is a relevant FAQ for this situation:
> http://twistedmatrix.com/trac/wiki/FrequentlyAskedQuestions#HowdoImakeinpu
Dear All ..
A year ago, I need send some defined message to a jabber conference.
The message content will depend on a "button-press".
My trick is to use ttyctrl (http://ttyctrl.sourceforge.net/).
So basicaly my "system" is builded from several parts:
1. TTYCTRL : I made some small python XMLRPC c
Dear All ..
Base on a need, I need to build a JSON-RPC to Postgres "bridge".
For now, I try to take the ORM way, so I'm looking for ORM "engine" that
work well with Twisted and support for Postgres as it's backend.
First try I look into SqlAlchemy ... but there is a lot of talk that
SqlAlchemy
25 matches
Mail list logo