I've just found it is possible to do that with a python script connected to the local dbus server as suggested here \+ the gntp library.
I've just found it is possible to do that with a python script connected to the local dbus server as suggested here \+ the gntp library.