Notice: This forum has been recovered from an old backup, so some content, links, and dates may be outdated. The forum is currently read-only while we restore sign-in and registration functionality. Details

If you find this forum valuable and would like to help keep it online, donations to help cover hosting and domain costs are greatly appreciated, but never expected. You can support the forum through Buy Me a Coffee or Ko-fi. Thank you for helping preserve the EventGhost community.

http Aufruf

Allgemeines zum Thema EventGhost
Post Reply
Unique24
Posts: 5
Joined: Mon Dec 01, 2008 9:10 am

http Aufruf

Post by Unique24 »

Hallo,

kann ich auch Befehle f├╝r einen http Aufruf erstellen?
Wenn ein Ereignis eintritt m├Âchte ich zum Beispiel "http://192.168.1.1/demo.html" aufrufen ... wobei aber der Explorer nicht ge├Âffnet werden soll, sondern nur 1x der Link angesteuert werden soll.
Sobald der Link nämlich aufgerufen wird, wird am Webserver eine Folgeaktion ausgeführt.

Danke
Bartman
Plugin Developer
Posts: 881
Joined: Sun Feb 12, 2006 9:03 am

Re: http Aufruf

Post by Bartman »

Notfalls mit "wget" die Seite runterladen lassen.
Geht bestimmt auch mit Python direkt, da m├╝sste ich aber erst nachgucken.
User avatar
Bitmonster
Site Admin
Posts: 2239
Joined: Mon Feb 06, 2006 10:28 pm

Re: http Aufruf

Post by Bitmonster »

PythonScript:

Code: Select all

import urllib2
urllib2.urlopen("http://192.168.1.1/demo.html")
Please post software-related questions in the forum - PMs will only be answered, if really private, thanks!
User avatar
Pako
Plugin Developer
Posts: 2294
Joined: Sat Nov 11, 2006 1:31 pm
Location: Czech Republic
Contact:

Re: http Aufruf

Post by Pako »

Vielleicht wird dies dazu beitragen:

Code: Select all

wx.LaunchDefaultBrowser("http://192.168.1.1/demo.html")
Pako
User avatar
Bitmonster
Site Admin
Posts: 2239
Joined: Mon Feb 06, 2006 10:28 pm

Re: http Aufruf

Post by Bitmonster »

@Pako
He didn't wanted to open the page in a browser. He only wants to invisibly initiate a request to his webserver, that will then react in some way on the request.
Please post software-related questions in the forum - PMs will only be answered, if really private, thanks!
Unique24
Posts: 5
Joined: Mon Dec 01, 2008 9:10 am

Re: http Aufruf

Post by Unique24 »

Hallo an alle,

danke f├╝r die Zahlreichen Infos ... wie bekomme ich die Codezeilen zum laufen, bzw. wo gebe ich diese ein?

Und es ist wie BitMonster es geschrieben hat ... die Seite soll nur einmal initialisiert werden ... ein Aufruf oder Anzeigen ist nicht n├Âtig.

Danke
CHeitkamp
Plugin Developer
Posts: 49
Joined: Sun Jan 27, 2008 12:42 pm
Location: M├╝nster / Germany

Re: http Aufruf

Post by CHeitkamp »

Unique24 wrote:... wie bekomme ich die Codezeilen zum laufen, bzw. wo gebe ich diese ein?
Befehl hinzuf├╝gen... => EventGhost => Python Skript

Einfach Copy & Paste in das Fenster
Unique24
Posts: 5
Joined: Mon Dec 01, 2008 9:10 am

Re: http Aufruf

Post by Unique24 »

Sorry für die späte Antwort,

es hat geklappt mit dem Pyton Script.Habt vielen Dank!
Post Reply