Hi all,
I would like to use Python to send an HTTP Post.
I am basicly trying to implement the following:
$ curl -X POST -H "Authorization: Bearer ABCDEFGH" \
-H "Content-Type: application/json" \
-d '{"entity_id": "switch.christmas_lights"}' \
http://localhost:8123/api/services/switch/turn_on ...
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.
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.
Search found 29 matches
- Wed Dec 25, 2019 8:52 am
- Forum: General Support
- Topic: HTTP POST
- Replies: 1
- Views: 1395
- Wed Dec 25, 2019 8:02 am
- Forum: Plugin Support
- Topic: HTTPRequest Plugin - v0.1.0
- Replies: 42
- Views: 11209
Re: HTTPRequest Plugin - v0.1.0
Can someone help with how to post this post message:
$ curl -X POST -H "Authorization: Bearer ABCDEFGH" \
-H "Content-Type: application/json" \
-d '{"entity_id": "switch.christmas_lights"}' \
http://localhost:8123/api/services/switch/turn_on
Using this plugin. I am trying to communicate with ...
$ curl -X POST -H "Authorization: Bearer ABCDEFGH" \
-H "Content-Type: application/json" \
-d '{"entity_id": "switch.christmas_lights"}' \
http://localhost:8123/api/services/switch/turn_on
Using this plugin. I am trying to communicate with ...
- Wed Apr 11, 2018 8:59 pm
- Forum: Plugin Support
- Topic: MQTT Client
- Replies: 246
- Views: 86601
Re: MQTT Client
I ran netstat on Raspberry PI and it showed me the port that it is listening to 1883 (default). So I guess this means that the server side is local and os running on the Pi.
EG also seem ok since I run the same settings: Pi's local IP address, default port, username and password, topic and , message ...
EG also seem ok since I run the same settings: Pi's local IP address, default port, username and password, topic and , message ...
- Tue Apr 10, 2018 10:55 am
- Forum: Plugin Support
- Topic: MQTT Client
- Replies: 246
- Views: 86601
Re: MQTT Client
Another thing, when I run netstat like you told me to, I don't see the MQTT port in use by the Pi though the MQTT messages does go through without a problem except for the delay I am talking about.
- Tue Apr 10, 2018 10:32 am
- Forum: Plugin Support
- Topic: MQTT Client
- Replies: 246
- Views: 86601
Re: MQTT Client
Yes you are right.
Any suggestions?
Any suggestions?
- Tue Apr 10, 2018 8:58 am
- Forum: Plugin Support
- Topic: MQTT Client
- Replies: 246
- Views: 86601
Re: MQTT Client
So what you are saying is that I don't need to be subscribed and I can just publish a message and that anyway it shouldn't take so long like I described?
- Tue Apr 10, 2018 7:58 am
- Forum: Plugin Support
- Topic: MQTT Client
- Replies: 246
- Views: 86601
Re: MQTT Client
Hi,
I started using this plugin in order to broadcast messages to Raspberry Pi. I use it to trigger actions in home assistant.
The thing is, it takes about 2.5 seconds from the moment I send the message via MQTT until the light turns on. When I sent the MQTT message through mqtt.fx which is just a ...
I started using this plugin in order to broadcast messages to Raspberry Pi. I use it to trigger actions in home assistant.
The thing is, it takes about 2.5 seconds from the moment I send the message via MQTT until the light turns on. When I sent the MQTT message through mqtt.fx which is just a ...
- Thu Aug 24, 2017 11:07 pm
- Forum: General Support
- Topic: Has anybody done anything with Sensibo Sky?
- Replies: 170
- Views: 23004
Re: Has anybody done anything with Sensibo Sky?
I am using Sensibo with EG.
Works great.
I will write a guide tomorrow on how to activate and turn off the AC through Sensibo and Eventghost.
Alon
Works great.
I will write a guide tomorrow on how to activate and turn off the AC through Sensibo and Eventghost.
Alon
- Thu Aug 24, 2017 11:02 pm
- Forum: Plugin Support
- Topic: prowl plugin stoped working
- Replies: 1
- Views: 1153
prowl plugin stoped working
Hi,
I am using Prowl plugin to forward alerts to my phone.
Two days ago the messages stopped recieving and I get this error:
[Errno 1] _ssl.c:493: error:14077438:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert internal error
Tried from another PC on a different network and I get the same issue ...
I am using Prowl plugin to forward alerts to my phone.
Two days ago the messages stopped recieving and I get this error:
[Errno 1] _ssl.c:493: error:14077438:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert internal error
Tried from another PC on a different network and I get the same issue ...
- Thu Aug 24, 2017 10:55 pm
- Forum: General Support
- Topic: How to Capture Command line resault
- Replies: 2
- Views: 1471
Re: How to Capture Command line resault
Forgot to say thanks 
- Wed Jul 19, 2017 9:07 am
- Forum: General Support
- Topic: How to Capture Command line resault
- Replies: 2
- Views: 1471
How to Capture Command line resault
Hi all,
I am trying to run a program through start application in EG that runs on a command line. I would ike to capture the resault so I can search insdie the string for the word (Success) and to use it to trigger another action. Is it possible to do so?
Thanks,
Alon
I am trying to run a program through start application in EG that runs on a command line. I would ike to capture the resault so I can search insdie the string for the word (Success) and to use it to trigger another action. Is it possible to do so?
Thanks,
Alon
- Mon Jan 09, 2017 11:14 pm
- Forum: General Support
- Topic: Amazon Echo Skill EchoToEventGhost
- Replies: 151
- Views: 77655
Re: Amazon Echo Skill EchoToEventGhost
Hi,
I am using the following code in EG in order to search for the words "irobot" and "on" and then activate the irobot.
if 'irobot' in cmd and 'on' in cmd :
print 'irobot will start'
eg.globals.ibl1_msg = 'Return Msg: OK Done, iRobot is starting'
eg.plugins.Webserver.SetValue(u'bb_response ...
I am using the following code in EG in order to search for the words "irobot" and "on" and then activate the irobot.
if 'irobot' in cmd and 'on' in cmd :
print 'irobot will start'
eg.globals.ibl1_msg = 'Return Msg: OK Done, iRobot is starting'
eg.plugins.Webserver.SetValue(u'bb_response ...
- Sun Jan 08, 2017 6:16 pm
- Forum: General Support
- Topic: Amazon Echo Skill EchoToEventGhost
- Replies: 151
- Views: 77655
Re: Amazon Echo Skill EchoToEventGhost
Yes that was it!!
I guess with all the attempts I have made I probably didn't copy the updated line.
So now I can get the event in event ghost.
How do I import the Marco_AmazonEchoRcv to my EG setup?
Thanks,
Alon
I guess with all the attempts I have made I probably didn't copy the updated line.
So now I can get the event in event ghost.
How do I import the Marco_AmazonEchoRcv to my EG setup?
Thanks,
Alon
- Sun Jan 08, 2017 10:30 am
- Forum: General Support
- Topic: Amazon Echo Skill EchoToEventGhost
- Replies: 151
- Views: 77655
Re: Amazon Echo Skill EchoToEventGhost
Hi Guys,
First I would like to thank M19brandon for all his great work.
I really need your help.
I am trying to setup the Echo to EG. I think I have made a lot of progress but I still have problems and would like some help to figure out what I am doing wrong.
I created the Lambada function in this ...
First I would like to thank M19brandon for all his great work.
I really need your help.
I am trying to setup the Echo to EG. I think I have made a lot of progress but I still have problems and would like some help to figure out what I am doing wrong.
I created the Lambada function in this ...
- Sat Feb 15, 2014 6:28 am
- Forum: Plugin Support
- Topic: RFXtrx
- Replies: 537
- Views: 248829
Re: RFXtrx
Great!! Now it works!!
Thanks alot.
I will keep you up to date if there is any other ussue with the two Rfxtrx Config
BR
Alon
Thanks alot.
I will keep you up to date if there is any other ussue with the two Rfxtrx Config
BR
Alon