Our new official repo is on github
LCD Smartie version 5.6 is released!
Download it now: https://github.com/LCD-Smartie/LCDSmartie/releases

Web Service Plugin

Announcements of new plugins or updates.

Moderators: _X7JAY7X_, caesar, IFR, mattcro, limbo

Post Reply
guinness
Plugin Author
Posts: 2
Joined: March 18th, 2006, 4:20 am

Web Service Plugin

Post by guinness »

A plugin is now available to display information from Web Services via LCD Smartie. This may be downloaded for free at http://www.baruba.com/lcdsmartie.htm and includes source code.

Edit: the plugin is hosted now on the forums...
scroll down the replies and find the Limbo's message

krio77
Posts: 11
Joined: January 19th, 2006, 10:31 am

Post by krio77 »

For the noobs, like me :)

Good you give us some explications and some examples plz ?

Because, this plugin must have lots of possibilities...but the dedicated website is not really easy to understand !

Thks

guinness
Plugin Author
Posts: 2
Joined: March 18th, 2006, 4:20 am

Post by guinness »

No problem, I can provide a working example. I must caution though that to use this plugin effectively you need both working knowledge of XML and web services.

The main benefit of this plugin would be for users to create their own web services (which can also reside on another computer) to be used by LCD Smartie.

First off, you need to find a web service to consume. A directory of web services can be found at http://www.xmethods.net/ and are mostly free.

When you find one to use, you must first test it by using a web browser to see the XML that is returned. Here is an example for getting the currency conversion rate from British Pounds to US Dollars:

http://www.webservicex.com/CurrencyConv ... rrency=USD

You must then take breakdown this URL to be used by the plugin in the following steps:

1) Add the following section to the WEBSVC.ini file in the plugins folder.

Code: Select all

[Service 04]
URI=http://www.webservicex.com/CurrencyConvertor.asmx
Operation=ConversionRate
MinsInCache=1440
2) In LCD Smartie, use the following call to the plugin to show the exchange rate on your LCD.

Code: Select all

$dll(WEBSVC,4,FromCurrency=GBP&ToCurrency=USD,/def:double)
The tricky part is determining the last parameter. When you have the XML result from testing, you then need to know what XML element you want to display in LCD Smartie. You can use a tool like Buba XPath Builder to determine the correct XPath query to use.

Since the web service XML response is cached in the plugin, you can repeatably call the plugin with no performance hit. This is typically important if you have an XML response that contains several XML elements that you want to show, for example a weather web service.

krio77
Posts: 11
Joined: January 19th, 2006, 10:31 am

Post by krio77 »

OK, thanks for the response !

I'm going to work on it.

andye26
Posts: 5
Joined: November 29th, 2008, 6:48 pm

Post by andye26 »

Hi
Any idea where I can find this plugin?

Andy

schmidtbag
Posts: 18
Joined: December 23rd, 2008, 5:32 am
Location: Newburyport
Contact:

Post by schmidtbag »

the link is dead

limbo
Plugin Author
Posts: 1604
Joined: February 13th, 2005, 7:38 pm
Location: Athens - Greece
Contact:

Post by limbo »

I have uploaded the plugin to forums
You do not have the required permissions to view the files attached to this post.

Post Reply