Page 18 of 20

Re: New Plugin: GhostXML

PostPosted: Mon Aug 27, 2018 5:56 pm
by DaveL17
That's great news. Thanks for letting me know.

Cheers!

Re: New Plugin: GhostXML

PostPosted: Mon Sep 24, 2018 1:03 pm
by Albatros
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

Re: New Plugin: GhostXML

PostPosted: Mon Sep 24, 2018 1:55 pm
by DaveL17
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.

Re: New Plugin: GhostXML

PostPosted: Thu Sep 27, 2018 1:33 pm
by Albatros
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

Re: New Plugin: GhostXML

PostPosted: Fri Sep 28, 2018 4:40 am
by DaveL17
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.

Re: New Plugin: GhostXML

PostPosted: Mon Oct 01, 2018 6:40 pm
by DaveL17
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.

Re: New Plugin: GhostXML

PostPosted: Fri Oct 05, 2018 1:32 pm
by Albatros
Thanks very much for looking into it!!

Re: New Plugin: GhostXML

PostPosted: Tue Oct 30, 2018 4:14 pm
by jalves
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?

Re: New Plugin: GhostXML

PostPosted: Tue Oct 30, 2018 6:00 pm
by DaveL17
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

Re: New Plugin: GhostXML

PostPosted: Wed Oct 31, 2018 6:48 am
by jalves
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.

Re: New Plugin: GhostXML

PostPosted: Wed Oct 31, 2018 8:52 am
by DaveL17
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:

Re: New Plugin: GhostXML

PostPosted: Wed Oct 31, 2018 1:48 pm
by jalves
That did it! Thanks Much.

Re: New Plugin: GhostXML

PostPosted: Wed Oct 31, 2018 2:33 pm
by DaveL17
Excellent. Thanks for letting me know.


Sent from my iPhone using Tapatalk

GhostXML install error...

PostPosted: Fri Mar 29, 2019 10:57 pm
by russg
Hi Folks,
I'm trying to install ghostxml v0.4.23. and the shows the following:

[size=50]Enabling plugin "GhostXML 0.4.23"
Starting plugin "GhostXML 0.4.23" (pid 17427)
GhostXML
GhostXML ================================================ Initializing New Plugin Session =================================================
GhostXML Plugin name: GhostXML
GhostXML Plugin version: 0.4.23
GhostXML Plugin ID: com.fogbert.indigoplugin.GhostXML
GhostXML Indigo version: 7.2.0
GhostXML Python version: 2.7.10 (default, Aug 17 2018, 17:41:52) [GCC 4.2.1 Compatible Apple LLVM 10.0.0 (clang-1000.0.42)]
GhostXML Process ID: 17427
GhostXML ==================================================================================================================================
Started plugin "GhostXML 0.4.23"
[/size]

But when I go to configure it, I get a simplified configuration screen (picture attached) and the following error in the log:

GhostXML Error Error in plugin execution UiValidate:

Traceback (most recent call last):
File "plugin.py", line 355, in validatePrefsConfigUi
KeyError: key updaterEmail not found in dict:


Any suggestions?
thanks. in advance! -russg

Re: New Plugin: GhostXML

PostPosted: Sat Mar 30, 2019 5:01 am
by DaveL17
Yep, that's a bug. Sorry about that.

I've just posted 0.4.24, which should take care of it.