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
Our new official repo is on github
LCD Smartie version 5.6 is released!
Download it now: https://github.com/LCD-Smartie/LCDSmartie/releases
LCD Smartie version 5.6 is released!
Download it now: https://github.com/LCD-Smartie/LCDSmartie/releases
Web Service Plugin
Moderators: _X7JAY7X_, caesar, IFR, mattcro, limbo
-
- Plugin Author
- Posts: 2
- Joined: March 18th, 2006, 4:20 am
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.
2) In LCD Smartie, use the following call to the plugin to show the exchange rate on your LCD.
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.
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
Code: Select all
$dll(WEBSVC,4,FromCurrency=GBP&ToCurrency=USD,/def:double)
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.
-
- Posts: 18
- Joined: December 23rd, 2008, 5:32 am
- Location: Newburyport
- Contact:
-
- Plugin Author
- Posts: 1604
- Joined: February 13th, 2005, 7:38 pm
- Location: Athens - Greece
- Contact: