GhostXML Pre-release Beta

Posted on
Wed Jun 20, 2018 7:49 pm
DaveL17 offline
User avatar
Posts: 5909
Joined: Aug 20, 2013
Location: Chicago, IL, USA

GhostXML Pre-release Beta

The GhostXML v0.4.04 pre-release beta is open for testing.

Updates to the plugin don't typically involve pre-releases, but the changes here are significant enough that a slower rollout is probably a good idea. This version should be considerably more stable, consume fewer system resources, and run more quickly than prior versions.

Changes include:
  • Adds authentication option for sites that require token authentication
  • Completely refactors threading
  • Drastically reduces logging under normal operation
  • Code refinements
  • Fixes bug where changes to debug level were not applied
  • Fixes bug where curl reported error when completed successfully
  • Fixes 'bug' where JSON and XML values containing empty lists ( [] ) or empty dicts [ {} ] were not mapped to device states (device state will be set to the string 'None'
You can download the beta directly from GitHub. Select "Clone or Download" and then select "Download ZIP".

p.s. Special shout-out to @Rogue Proleator and @berkinet for their help with this version.

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

[My Plugins] - [My Forums]

Posted on
Thu Jun 21, 2018 11:27 am
DaveL17 offline
User avatar
Posts: 5909
Joined: Aug 20, 2013
Location: Chicago, IL, USA

Re: GhostXML Pre-release Beta

I have posted an update to the beta which includes:

  • a new trap where a device will be automatically disabled after 10 unsuccessful attempts.
  • a bug fix for instances where a legacy device was updated to the new device definition schema.
Thanks to @berkinet for the bug fix.

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

[My Plugins] - [My Forums]

Posted on
Fri Jul 06, 2018 7:17 am
Umtauscher offline
User avatar
Posts: 552
Joined: Oct 03, 2014
Location: Cologne, Germany

Re: GhostXML Pre-release Beta

Thanks Dave,

I just found the new beta and updated right away.
The new version brought down the IndigoPluginHost %CPU from 150% to 1.5%
All my devices still seem to be fine and regulary updated.

Great Work!

Cheers
Wilhelm

Posted on
Fri Jul 06, 2018 7:31 am
DaveL17 offline
User avatar
Posts: 5909
Joined: Aug 20, 2013
Location: Chicago, IL, USA

Re: GhostXML Pre-release Beta

Thanks Wilhelm - glad that the pre-release is working well for you.

While the Fantastic Weather beta percolates for a bit, I’m going to button up a couple things with the GhostXML plugin and roll out a final release.


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]

Posted on
Tue Jul 10, 2018 10:39 am
Umtauscher offline
User avatar
Posts: 552
Joined: Oct 03, 2014
Location: Cologne, Germany

Re: GhostXML Pre-release Beta

Hi Dave,

sorry to bother you again. I have to report an anomaly in your beta plugin 0.4.6

I use the plugin to query the state of my Musiccast speakers. To do that I have a Schedule that runs every 10 seconds to "Refresh Data of all devices".
About once every hour my log shows several warnings:
Code: Select all
   GhostXML Warning                [1560892193] curl error * Adding handle: conn: 0x7fd35180aa00 * Adding handle: send: 0 * Adding handle: recv: 0 * Curl_addHandleToPipeline: length: 1 * - Conn 0 (0x7fd35180aa00) send_pipe: 1, recv_pipe: 0 * About to connect() to wx010-2.voyager95.de port 80 (#0) *   Trying 192.168.1.206... * Connected to wx010-2.voyager95.de (192.168.1.206) port 80 (#0) * Server auth using Basic with user '' > GET /YamahaExtendedControl/v1/main/getStatus HTTP/1.1
 > Authorization: Basic Og==
 > User-Agent: curl/7.30.0
 > Host: wx010-2.voyager95.de
 > Accept: */*
 >
 * Empty reply from server * Connection #0 to host wx010-2.voyager95.de left intact .

10.07.2018 18:26:36
   GhostXML Warning                [1560892193] curl error * Adding handle: conn: 0x7fa499004400 * Adding handle: send: 0 * Adding handle: recv: 0 * Curl_addHandleToPipeline: length: 1 * - Conn 0 (0x7fa499004400) send_pipe: 1, recv_pipe: 0 * About to connect() to wx010-2.voyager95.de port 80 (#0) *   Trying 192.168.1.206... * Connected to wx010-2.voyager95.de (192.168.1.206) port 80 (#0) * Server auth using Basic with user '' > GET /YamahaExtendedControl/v1/main/getStatus HTTP/1.1
 > Authorization: Basic Og==
 > User-Agent: curl/7.30.0
 > Host: wx010-2.voyager95.de
 > Accept: */*
 >
 * Empty reply from server * Connection #0 to host wx010-2.voyager95.de left intact .

10.07.2018 18:27:46
   GhostXML Warning                [1031503364] curl error * Adding handle: conn: 0x7fcac900ba00 * Adding handle: send: 0 * Adding handle: recv: 0 * Curl_addHandleToPipeline: length: 1 * - Conn 0 (0x7fcac900ba00) send_pipe: 1, recv_pipe: 0 * About to connect() to wx010-1.voyager95.de port 80 (#0) *   Trying 192.168.1.205... * Connected to wx010-1.voyager95.de (192.168.1.205) port 80 (#0) * Server auth using Basic with user '' > GET /YamahaExtendedControl/v1/main/getStatus HTTP/1.1
 > Authorization: Basic Og==
 > User-Agent: curl/7.30.0
 > Host: wx010-1.voyager95.de
 > Accept: */*
 >

I have 6 devices. The warning are randomly for some of them, not all of them.
Could you give me a hint what might be causing this?

The previous release version never showed any warnings although it consumed a lot more cpu.
Thanks
Wilhelm

Posted on
Tue Jul 10, 2018 11:53 am
DaveL17 offline
User avatar
Posts: 5909
Joined: Aug 20, 2013
Location: Chicago, IL, USA

Re: GhostXML Pre-release Beta

Hi Wilhelm - please check the authentication settings for these devices. Token authorization was added to this version of the plugin (and the 'use authentication" checkbox was removed) and that may have had an effect on the settings for your devices. Please go into each device, confirm the authentication settings and resave the configuration.

Secondly, there were improvements to the handling of curl responses and there has been a lot of work done on the plugin's logging features, so it's entirely possible that these messages were present before and simply never output to the log.

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

[My Plugins] - [My Forums]

Posted on
Tue Jul 10, 2018 1:07 pm
Umtauscher offline
User avatar
Posts: 552
Joined: Oct 03, 2014
Location: Cologne, Germany

Re: GhostXML Pre-release Beta

All devices were set to basic by default, so I set them to none.
Unfortuately it didn't change anything.
The only thing it changed was that it removed the line about authentication in the warning message.

Posted on
Tue Jul 10, 2018 2:19 pm
Umtauscher offline
User avatar
Posts: 552
Joined: Oct 03, 2014
Location: Cologne, Germany

Re: GhostXML Pre-release Beta

I reduced the log level to error only.
If the plugin continues to work, thats ok for me.
Thanks
Wilhelm

Posted on
Tue Jul 10, 2018 3:46 pm
DaveL17 offline
User avatar
Posts: 5909
Joined: Aug 20, 2013
Location: Chicago, IL, USA

Re: GhostXML Pre-release Beta

Umtauscher wrote:
I reduced the log level to error only.
If the plugin continues to work, thats ok for me.
Thanks
Wilhelm

Glad to hear that the plugin is working for you with these settings.

Since you're retrieving data using the http protocol, the http server within the device *should* be happy to answer any calls with the proper credentials. Not sure why it would be returning an empty reply in some circumstances and not others.

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

[My Plugins] - [My Forums]

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 1 guest