New Plugin: GhostXML

Posted on
Mon Aug 27, 2018 5:56 pm
DaveL17 offline
User avatar
Posts: 4314
Joined: Aug 20, 2013
Location: Chicago, IL, USA

Re: New Plugin: GhostXML

That's great news. Thanks for letting me know.

Cheers!

I came here to drink milk and kick ass....and I've just finished my milk.

[My Plugins] - [My Forums]

Posted on
Mon Sep 24, 2018 1:03 pm
Albatros offline
Posts: 132
Joined: Feb 07, 2015

Re: New Plugin: GhostXML

I have the latest plugin and now getting the following error on one of my GhostXML devices:

GhostXML Error plugin does not have a <CallbackMethod> specified for action id refreshDataForDev

It is getting data from a Solaredge Solarpanel Converter via an API with a API key in the url. It is not always giving this error. Any suggestions

Posted on
Mon Sep 24, 2018 1:55 pm
DaveL17 offline
User avatar
Posts: 4314
Joined: Aug 20, 2013
Location: Chicago, IL, USA

Re: New Plugin: GhostXML

Hi - yeah, that error is due to some changes under the hood. Please open any GhostXML actions that you have already established and you may see the Type field has become unpopulated. Select action type Refresh Data for Device (GhostXML Controls) and you may also have to select the target device again. Then click OK. This *should* clear the error.

I came here to drink milk and kick ass....and I've just finished my milk.

[My Plugins] - [My Forums]

Posted on
Thu Sep 27, 2018 1:33 pm
Albatros offline
Posts: 132
Joined: Feb 07, 2015

Re: New Plugin: GhostXML

Hi Dave - Iam trying to connect to an Energy Data Website via an API but getting an error. It looks like it makes a connection but than a HTTP/1.1 500 Internal Server Error. Any ideas..

Link to api documentation
https://enelogic.docs.apiary.io/#introd ... formatting

Example py
https://gist.github.com/kleptog/572b529 ... edaa18d670


GhostXML Debug HTTPS CURL result: * Trying XX.171.XXX.140...
* TCP_NODELAY set
* Connected to enelogic.com (XX.171.XXX.140) port 443 (#0)
* TLS 1.2 connection using TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384
* Server certificate: enelogic.com
* Server certificate: COMODO ECC Extended Validation Secure Server CA
* Server certificate: COMODO ECC Certification Authority
* Server auth using Basic with user 'appid.tacoroest@hotmail.com'
> GET /api/measuringpoints/ HTTP/1.1
> Host: enelogic.com
> Authorization: Basic MzUxOV8zNHNqMnBpd284bzQ0czBvNDgwazRjZ2M0MDA4c2djZ2trODQ4a29nc2drY2t3dzRray50YWNvcm9lc3RAaG90bWFpbC5jb206NGlzdmY2aXh5cnM0NDh3NDRjc2c0a3N3MGs4bzBrdzR3Y29zY2s0MGNzc2swd2NvMDQudGxjMTY0bWFuOWM0NDhjMDA4YzAwd3MwYzRjd3dvNA==
> User-Agent: curl/7.54.0
> Accept: */*
>
< HTTP/1.1 500 Internal Server Error
< Server: nginx
< Content-Type: application/json
< Transfer-Encoding: chunked
< Connection: keep-alive
< Cache-Control: private
< Date: Thu, 27 Sep 2018 18:55:31 GMT
<
{ [5 bytes data]
* Connection #0 to host enelogic.com left intact

Posted on
Fri Sep 28, 2018 4:40 am
DaveL17 offline
User avatar
Posts: 4314
Joined: Aug 20, 2013
Location: Chicago, IL, USA

Re: New Plugin: GhostXML

Albatros wrote:
Hi Dave - Iam trying to connect to an Energy Data Website via an API but getting an error. It looks like it makes a connection but than a HTTP/1.1 500 Internal Server Error. Any ideas..

Link to api documentation
https://enelogic.docs.apiary.io/#introd ... formatting

Example py
https://gist.github.com/kleptog/572b529 ... edaa18d670

Hi Albatros -

I'm sorry that you're running into trouble.

I took a quick look at the developer docs and the enrollment process is fairly involved. I'm currently on the road for business so it will be a little while before I can look into this. At first blush, I wonder if the internal server error is them and not us. Please continue to give it a try (periodically) until I can get back to you and report back if you find different results. There may be a chance that it will still work as you've set it up.

I came here to drink milk and kick ass....and I've just finished my milk.

[My Plugins] - [My Forums]

Posted on
Mon Oct 01, 2018 6:40 pm
DaveL17 offline
User avatar
Posts: 4314
Joined: Aug 20, 2013
Location: Chicago, IL, USA

Re: New Plugin: GhostXML

I've looked over the developer docs and I'm pretty sure that the plugin won't presently work with this particular API because it looks to require either WSSE or Oauth2 authentication. The plugin currently supports None, Basic, Digest and Token auth. While it's certainly possible to add additional authentication schemes to the GhostXML plugin, what might work for you now is to use the example script you pointed to in order to download API data to a file and then use the GhostXML plugin to migrate the data from the file into Indigo.

I came here to drink milk and kick ass....and I've just finished my milk.

[My Plugins] - [My Forums]

Posted on
Fri Oct 05, 2018 1:32 pm
Albatros offline
Posts: 132
Joined: Feb 07, 2015

Re: New Plugin: GhostXML

Thanks very much for looking into it!!

Posted on
Tue Oct 30, 2018 4:14 pm
jalves offline
Posts: 485
Joined: Jun 16, 2013

Re: New Plugin: GhostXML

I'm getting an error "curl error ." in my very simple airport status device. Its exactly the same as the airport example at the beginning of this thread except I'm using MCO for the AirPort code. This was functioning fine but at some point (not sure when) the error started.

I think its the result of a change in the web access for this data. I've tried pasting the address (http://services.faa.gov/airport/status/MCO.xml) into a browser and get an error that it can't find the server "services.faa.gov" I've done some web searches but can't find the correct address.

Anybody else come across this? Solution?

Running Indigo 7.2.0 on a 27" iMac (mid-2017), 40G memory, 1T Fusion Drive, OS X 10.13.6
Jeff

Posted on
Tue Oct 30, 2018 6:00 pm
DaveL17 offline
User avatar
Posts: 4314
Joined: Aug 20, 2013
Location: Chicago, IL, USA

Re: New Plugin: GhostXML

jalves wrote:
I'm getting an error "curl error ." in my very simple airport status device. Its exactly the same as the airport example at the beginning of this thread except I'm using MCO for the AirPort code. This was functioning fine but at some point (not sure when) the error started.

I think its the result of a change in the web access for this data. I've tried pasting the address (http://services.faa.gov/airport/status/MCO.xml) into a browser and get an error that it can't find the server "services.faa.gov" I've done some web searches but can't find the correct address.

Anybody else come across this? Solution?

Try this and see if it will suit your needs.

https://soa.smext.faa.gov/asws/api/airport/status/MCO

I came here to drink milk and kick ass....and I've just finished my milk.

[My Plugins] - [My Forums]

Posted on
Wed Oct 31, 2018 6:48 am
jalves offline
Posts: 485
Joined: Jun 16, 2013

Re: New Plugin: GhostXML

Thanks! That at least got part way there. Its obviously finding a page now.

However I get "There was a parse error. Check XML source." I'm totally unfamiliar with this stuff so I have no clue as to what to do about it.

Running Indigo 7.2.0 on a 27" iMac (mid-2017), 40G memory, 1T Fusion Drive, OS X 10.13.6
Jeff

Posted on
Wed Oct 31, 2018 8:52 am
DaveL17 offline
User avatar
Posts: 4314
Joined: Aug 20, 2013
Location: Chicago, IL, USA

Re: New Plugin: GhostXML

jalves wrote:
Thanks! That at least got part way there. Its obviously finding a page now.

However I get "There was a parse error. Check XML source." I'm totally unfamiliar with this stuff so I have no clue as to what to do about it.

Try setting the source data type to JSON from XML. I should've mentioned that, too. :oops:

I came here to drink milk and kick ass....and I've just finished my milk.

[My Plugins] - [My Forums]

Posted on
Wed Oct 31, 2018 1:48 pm
jalves offline
Posts: 485
Joined: Jun 16, 2013

Re: New Plugin: GhostXML

That did it! Thanks Much.

Running Indigo 7.2.0 on a 27" iMac (mid-2017), 40G memory, 1T Fusion Drive, OS X 10.13.6
Jeff

Posted on
Wed Oct 31, 2018 2:33 pm
DaveL17 offline
User avatar
Posts: 4314
Joined: Aug 20, 2013
Location: Chicago, IL, USA

Re: New Plugin: GhostXML

Excellent. Thanks for letting me know.


Sent from my iPhone using Tapatalk

I came here to drink milk and kick ass....and I've just finished my milk.

[My Plugins] - [My Forums]

Who is online

Users browsing this forum: No registered users and 1 guest