udpQtscript receiver

Amarok 2.x Scripts

Source (link to git-repo or to original if based on someone elses unmodified work): Add the source-code for this project on opencode.net

0
5.0
Description:

Sometimes dbus methods hasn't all the capabilities that qtscript amarok API has.
This script can bridge some programming languages with Amarok qtscript API.
Is a receiver of udp datagrams to evaluate qtscript commands coming from outside, by default listens on port 45450 and replies the output to 45451.
Included a little python script to broadcast datagrams to udp receiver plugin, and to receive the reply from amarok (look at ~/.kde/share/apps/amarok/scripts/udpreceiver/ for broadcastsenderqt.py).

alfredbach

9 years ago

good script for remote control.

The convert QByteArray convert catch(es) a lot. I don't know the reason but have a simple workarround.

1. append one char so all eval response is always a string.
UDPcommand="X" + eval(command)

2. cut this char before write
response= new QByteArray(message).mid(1);

Alfred

Report

eusonig

10 years ago

Really amazing.

I'm thinking in a method to read lyrics from a plasmoid and here is the solution. Brilliant.

In my test seems to be problems with encoding 'áéíóúñ' and for asian characters :(.

Ah, one thing, turn off your firewall or open needed ports ;).

Report

12345678910
product-maker Count: 2 Rating: 5.0
File (click to download) Version Description Downloads Date Filesize DL OCS-Install
Pling
*Needs ocs-url or ocs-store to install things
Details
license
version
0.0.1
updated Apr 10 2009
added Apr 10 2009
downloads today
0
page views today 3
System Tags addon
+