Yealink Forums
XML FormattedTextScreen - Printable Version

+- Yealink Forums (http://forum.yealink.com/forum)
+-- Forum: IP Phone Series (/forumdisplay.php?fid=4)
+--- Forum: General topics (/forumdisplay.php?fid=15)
+--- Thread: XML FormattedTextScreen (/showthread.php?tid=1160)



XML FormattedTextScreen - TekMason - 01-13-2014 03:03 PM

I am working on a Weather application to use on T38's (38.70.0.132 Firmware) but I am struggling with the FormattedTextScreen object.
This code will only display 2 lines of text:

<YealinkIPPhoneFormattedTextScreen>
<Line Size="normal">Current Conditions</Line>
<Line Size="small">Temperature: 2.1°C</Line>
<Line Size="small">Pressure: 100.7 kPa falling</Line>
<Line Size="small">Wind: S 31 km/h gust 45 km/h</Line>
<Line Size="normal">Monday, 13 January Forecast</Line>
<Line Size="small">Cloudy. A few showers beginning near noon. Wind southwest 30 km/h. High plus 4.</Line>
</YealinkIPPhoneFormattedTextScreen>

I even tried the sample code on page 17 of the XML Browser Developer's Guide and just like the screen shot there "Header Line3" is not display on the phone.

Any assistance would be appreciated.

Thx,
TekMason


RE: XML FormattedTextScreen - Yealink Support - 01-15-2014 04:18 PM

Hi TekMason,

I think you forget to add <scroll> in your file.
Please test below syntax.
-------------------------------------------------
<YealinkIPPhoneFormattedTextScreen
doneAction="http://10.1.0.105/menu.php"
Beep="yes"
Timeout="60"
LockIn="no">

<Scroll>
<Line Size="normal">Current Conditions</Line>
<Line Size="small">Temperature: 2.1°C</Line>
<Line Size="small">Pressure: 100.7 kPa falling</Line>
<Line Size="small">Wind: S 31 km/h gust 45 km/h</Line>
<Line Size="normal">Monday, 13 January Forecast</Line>
<Line Size="small">Cloudy. A few showers beginning near noon.</Line>
<Line Size="small">Wind southwest 30 km/h. High plus 4.</Line>
</Scroll>

</YealinkIPPhoneFormattedTextScreen>
-------------------------------------------------
I re-edit this post with right syntax.


RE: XML FormattedTextScreen - TekMason - 01-17-2014 03:05 AM

Thanks Yealink Support.
The code you posted didn't quite work but it was close enough to send me down the right path.
This is the working code:
-------------------------------------------------
<YealinkIPPhoneFormattedTextScreen
doneAction="http://10.1.0.105/menu.php"
Beep="yes"
Timeout="60"
LockIn="no">

<Scroll>
<Line Size="normal">Current Conditions</Line>
<Line Size="small">Temperature: 2.1°C</Line>
<Line Size="small">Pressure: 100.7 kPa falling</Line>
<Line Size="small">Wind: S 31 km/h gust 45 km/h</Line>
<Line Size="normal">Monday, 13 January Forecast</Line>
<Line Size="small">Cloudy. A few showers beginning near noon.</Line>
<Line Size="small">Wind southwest 30 km/h. High plus 4.</Line>
</Scroll>

</YealinkIPPhoneFormattedTextScreen>
-------------------------------------------------
There were 2 things in the code you posted that the T38G did not like and caused it to throw a File format errror! message.
1. <?xml version="1.0" encoding="ISO-8859-1"?>
2. The closing scroll tag was lower case, </scroll>. It must be </Scroll>. The T38G is very particular about the XML it receives and case matters.

It is bizarre that the Yealink will only display 2 lines unless they are enclosed within scroll tags. This presents another issue that I will bring up in a new topic.

TekMason


RE: XML FormattedTextScreen - Yealink Support - 01-17-2014 04:47 PM

Hi TekMason,

Thanks to your opinion. I have edited my previous post.


RE: XML FormattedTextScreen - CWR - 03-04-2014 01:14 PM

Can you share a script that you used to create the XML files With the current conditions?


RE: XML FormattedTextScreen - Yealink Support - 03-04-2014 06:07 PM

Hi craigreilly,

You can refer to post #3.


RE: XML FormattedTextScreen - CWR - 03-04-2014 10:54 PM

thanks Support - but this is static content. I am trying to figure out how to serve dynamic content...