Search found 14 matches

by Kleriker
Sun Jan 09, 2011 6:23 pm
Forum: Coding Corner
Topic: Dynamic Webserver + special characters (ASCII)
Replies: 14
Views: 5605

Re: Dynamic Webserver + special characters (ASCII)

Woow that´s just great. I was a little bit afraid, that the EG-projekt will die with bitmonster gone, but there is a new hope with your program. Thanks for that. I will have a closer look the next days.

Best regards,
Alex
by Kleriker
Sun Jan 09, 2011 6:10 pm
Forum: Hilfe und Support
Topic: EG + XBMC + Power DVD 10 = Große Verzweiflung
Replies: 5
Views: 3953

Re: EG + XBMC + Power DVD 10 = Große Verzweiflung

Hi, probier dochmal "Suche Fenster: PowerDVD" + "Schließe Fenster". So habe ich das zumindest bei mir mit Mediaportal und TMT3 eingestellt. Problem könnte auch sein, dass du vielleicht die Stop Taste 2mal zugewiesen hast. Also einmal bei Close und einmal bei PowerDVD-Stop. Ist das bei dir so ? Gruß,...
by Kleriker
Sun Jan 09, 2011 5:49 pm
Forum: Coding Corner
Topic: Dynamic Webserver + special characters (ASCII)
Replies: 14
Views: 5605

Re: Dynamic Webserver + special characters (ASCII)

Hi Brett :)

No problem at all. I am not in a hurry. Quick question: what do you mean by "fork" ?

Best regards and good luck with your move,
Alex
by Kleriker
Thu Jan 06, 2011 11:33 am
Forum: Coding Corner
Topic: Dynamic Webserver + special characters (ASCII)
Replies: 14
Views: 5605

Re: Dynamic Webserver + special characters (ASCII)

Hey guys, ok i found out that i had to convert the html file to "UTF-8 without BOM". Btw. i use Notepad++. But when my html code looks like this: <html> <head></head> <body> Umlaute: 12ä </body> </html> it stops working again, followed by error messages in EG. Also i found out that the .py file from...
by Kleriker
Wed Jan 05, 2011 10:26 pm
Forum: Coding Corner
Topic: Dynamic Webserver + special characters (ASCII)
Replies: 14
Views: 5605

Re: Dynamic Webserver + special characters (ASCII)

You are right ... i am sorry. Here the html: <html> <head></head> <body> <p> Umlaute: {{eg.globals.test}} </p> </body> </html> and here the code for the variable: eg.globals.test = "13" As i said, when i convert the html to utf-8 it is followed by these error messages: Webserver socket error /test2....
by Kleriker
Wed Jan 05, 2011 9:55 pm
Forum: Coding Corner
Topic: Dynamic Webserver + special characters (ASCII)
Replies: 14
Views: 5605

Re: Dynamic Webserver + special characters (ASCII)

Hi,

ok i just found out, that at the moment i converted the html file to utf-8 the error-messages show up even when my variable is just "123".
Maybe i have a bigger problem ?!

Best regards,
Alex
by Kleriker
Wed Jan 05, 2011 9:32 pm
Forum: Coding Corner
Topic: Dynamic Webserver + special characters (ASCII)
Replies: 14
Views: 5605

Re: Dynamic Webserver + special characters (ASCII)

Hi,

thank you for your answer, but it didn´t help :(

I converted the html into utf-8 but eventghost still showes error messages. Any idea ?

Best regards,
Alex
by Kleriker
Wed Jan 05, 2011 5:35 pm
Forum: Coding Corner
Topic: Dynamic Webserver + special characters (ASCII)
Replies: 14
Views: 5605

Dynamic Webserver + special characters (ASCII)

Hey guys, i have a big problem and i am in need of your help. The dynamic webserver is not able to handle special german characters (like äüö) and eventghost only delivers error messages "'ascii' codec can't decode byte 0xc3 in position 1: ordinal not in range(128))". I use dynamic variables which c...
by Kleriker
Tue Jan 04, 2011 10:11 pm
Forum: Hilfe und Support
Topic: Anfängerfrage: Shortcut ausführen
Replies: 2
Views: 2491

Re: Anfängerfrage: Shortcut ausführen

Hi,

"Neues Makro" oder "Befehl" | "Fenster" | "Emuliere Tastatureingabe"

Damit kannst du die Tastaturbefehle eingeben. Wichtig ist auch, dass du vorher vielleicht den Befehl "Finde Fenster" einfügst und auf Winamp verweisen lässt. Dann klappt die Tastaturemulation immer.

Viele Grüße,
Alex
by Kleriker
Tue Jan 04, 2011 10:02 pm
Forum: Hilfe und Support
Topic: Dynamic Webserver + Umlaute (ASCII)
Replies: 0
Views: 1965

Dynamic Webserver + Umlaute (ASCII)

Hallo, komme gerade nicht weiter und brauche eure Hilfe. Ich möchte mir Variablen meiner Weboberfläche anzeigen lassen. Nur diese können auch Umlaute (äöü) enthalten. Jedesmal wenn ich ich eine solche Variable über den Webserver abfragen will, kommen Fehlermeldungen bei Eventghost (z.B.: UnicodeDeco...
by Kleriker
Tue Jan 04, 2011 2:54 pm
Forum: General Support
Topic: How to parse the payload ?
Replies: 6
Views: 5425

Re: How to parse the payload ?

Hi miljbee, thank you for your help, but obviously i am to stupid, to bring your explaination into my script. Can you help me please ? I want to get rid off the [] and " u' " and the " ' " at the end. Best regards, Alex EDIT: Never mind - it worked :) Thank you ! z = eg.event.payload p = z[0] p = p....
by Kleriker
Tue Jan 04, 2011 12:01 pm
Forum: General Support
Topic: How to parse the payload ?
Replies: 6
Views: 5425

Re: How to parse the payload ?

Hi krambriw,

i have noticed that your script is working a bit better, so i want to use it. But there is one problem, because the actual payload looks like this:

Code: Select all

[u'MSN/Name/Number/Date/Time']
The problem are the "[ ]". How do i get rid of them with your script ?

Best regards,
Alex
by Kleriker
Tue Jan 04, 2011 8:11 am
Forum: General Support
Topic: How to parse the payload ?
Replies: 6
Views: 5425

Re: How to parse the payload ?

Thank you very much for your help :) The Final Script looks like this (a friend was able to help me): s = eg.event.payload res = s[0].split(',') msn = res[0].split('/')[0] name = res[1].strip() phone = res[2].split('/')[1].strip() date = res[2].split('/')[2] time = res[2].split('/')[3] Best regards,...
by Kleriker
Mon Jan 03, 2011 5:56 pm
Forum: General Support
Topic: How to parse the payload ?
Replies: 6
Views: 5425

How to parse the payload ?

Hey guys, i am not new to eventghost but i am new to scripting with python :lol:. The last days i worked hard on my home-automation and i am now at the point, where i want to get my call monitor (janrufmonitor) involved. I am now able the get this data sent to EG as payload: "MSN / Callername / Call...