[YMCS/YDMP Free Trial Program]Yealink would like to offer Free Trial Program of Yealink device management service for our current eligible customers. You can see the details below.
https://www.yealink.com/ydmp-freetrial-2020


Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
XML Idle screen
Author Message
CWR Offline
Moderator
*****

Posts: 717
Joined: May 2013
Reputation: 7
Post: #1
XML Idle screen
Can anyone tell me how to do an XML Idle Screen - say for weather?
There is a website that does free for Cisco - but obviously I will have to create my own:
http://www.singlewire.com/free-xml-apps.html
03-04-2014 07:54 AM
Find all posts by this user    like0    dislike0 Quote this message in a reply
Yealink Support Offline
Administrator
*******

Posts: 2,683
Joined: Dec 2012
Reputation: 25
Post: #2
RE: XML Idle screen
Hi craigreilly,

You can refer to below forum post.

http://forum.yealink.com/forum/showthread.php?tid=1160
03-04-2014 11:27 AM
Find all posts by this user    like0    dislike0 Quote this message in a reply
CWR Offline
Moderator
*****

Posts: 717
Joined: May 2013
Reputation: 7
Post: #3
RE: XML Idle screen
I guess my question was not clear... How do I even get the data? And create the XML file.
I can't create a static file - it will always be wrong...
03-04-2014 01:13 PM
Find all posts by this user    like0    dislike0 Quote this message in a reply
Yealink Support Offline
Administrator
*******

Posts: 2,683
Joined: Dec 2012
Reputation: 25
Post: #4
RE: XML Idle screen
You can refer to XML Browser user guide and some sample xml files.
Using XML Browser Feature on Yealink phones Rev_70.0
03-04-2014 07:07 PM
Find all posts by this user    like0    dislike0 Quote this message in a reply
CWR Offline
Moderator
*****

Posts: 717
Joined: May 2013
Reputation: 7
Post: #5
RE: XML Idle screen
Maybe I need a programmers forum... I've read the guide... All is says is
"Users can customize practical applications, such as weather report, stock information, Google search and news service, etc."
It doesn't tell how to get dynamic content into the XML.
03-04-2014 10:52 PM
Find all posts by this user    like0    dislike0 Quote this message in a reply
Billx Offline
Junior Member
**

Posts: 17
Joined: Mar 2013
Reputation: 0
Post: #6
RE: XML Idle screen
You will need to do several steps to accomplish this.

Here is how I would go about it.
Maybe someone else can come up with another idea.

First, you need to know how to use PHP or another Scripting Language
Your script would need to go to a web site that has XML Data for the weather like this one: http://w1.weather.gov/xml/current_obs/KBCT.xml
Then you need to look at the Page Source Code and Parse out the Elements that you are interested in:
<weather>Fair</weather>
<wind_string>North at 8.1 MPH (7 KT)</wind_string>
<wind_dir>North</wind_dir>
<wind_degrees>360</wind_degrees>
<wind_mph>8.1</wind_mph>
<wind_kt>7</wind_kt>
<pressure_in>30.07</pressure_in>

Then assign each Parsed Element a Variable Name:
$wind = "8.1"
$pressure = "30.07"

Then insert that Variable into your script to be sent to the phone.
<Line Size="small">Wind Speed:> $wind </Line>
<Line Size="small">Pressure:> $pressure </Line>

This code may not be syntax correct, but it just a concept of what needs to be done.

I hope this gets you started in the right direction.
03-05-2014 12:09 AM
Find all posts by this user    like0    dislike0 Quote this message in a reply
Billx Offline
Junior Member
**

Posts: 17
Joined: Mar 2013
Reputation: 0
Post: #7
RE: XML Idle screen
Below is script I made.

You can change the script for different Weather Locations by going here: http://w1.weather.gov/xml/current_obs
Then select a state and look at the "Call Signs" for the different locations.

Example:
California
Auburn Muni Airport (KAUN)
Avalon, Catalina Airport (KAVX)
Bakersfield/Meadows (KBFL)
"Call Signs" are KAUN, KAVX and KBFL.

Then change the line in the script where KAVX is located to your new choice.
Then in your Yealink DSS Key programing area, make one of the DSS buttons "XML Browser" and put in the Server info where you are going to have the script.

To make it an Idle Screen, I am not 100% sure how to do it.
But you can use an "Action URL" like "On Hook" and put in the Server info where you are going to have the script.
That way when you hang up on a call, the Action URL "On Hook" sends the request for the script automatically.

GetWX.php

<?php

// GetWX.php

//Get XML from web page
$url = "http://w1.weather.gov/xml/current_obs/KAVX.xml" ;
$xml = simplexml_load_file($url) ;

//Parse out fields
$temp = $xml->temp_f ;
$weather = $xml->weather ;
$humidity= $xml->relative_humidity ;
$wind_dir= $xml->wind_dir ;
$wind_mph= $xml->wind_mph ;
$location= $xml->location ;

//Push to Phone
echo "<?xml version=\"1.0\" encoding=\"utf-8\"?>".
"<YealinkIPPhoneFormattedTextScreen Beep=\"yes\" Timeout=\"10\" LockIn=\"no\">".
"<Scroll>".
"<Line Size=\"normal\" Align=\"center\"> $location </Line>".
"<Line Size=\"normal\"> Weather: $weather </Line>".
"<Line Size=\"normal\"> Temperature: $temp </Line>".
"<Line Size=\"normal\"> Humidity: $humidity </Line>".
"<Line Size=\"normal\"> Wind Dir.: $wind_dir / $wind_mph MPH</Line>".
"</Scroll>".
"</YealinkIPPhoneFormattedTextScreen>";

?>
03-10-2014 05:44 AM
Find all posts by this user    like0    dislike0 Quote this message in a reply
CWR Offline
Moderator
*****

Posts: 717
Joined: May 2013
Reputation: 7
Post: #8
RE: XML Idle screen
Thank you! I thought the T46 had an XML Idle screen option - but it seems I was confusing it with the T38.
(This post was last modified: 03-10-2014 11:17 PM by CWR.)
03-10-2014 12:37 PM
Find all posts by this user    like0    dislike0 Quote this message in a reply
Post Reply 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  FreePBX chan_pjsip DTMF digits not displaying on screen karl_edgeconnect 1 602 02-13-2024 09:52 PM
Last Post: karl_edgeconnect
  No video / black screen between CUCM and Yalink CMD 0 1,366 10-17-2022 02:18 AM
Last Post: CMD
  Screen covers? (for branding) syadnom 0 1,555 08-18-2022 11:28 PM
Last Post: syadnom
  Screen Saver Stops Working awilson@intermaxteam.com 3 5,486 02-13-2022 05:09 AM
Last Post: complex1
  Dialing and what appears on the screen ajadams@centrictel.com 5 9,606 09-24-2020 12:53 AM
Last Post: Albert_Yealink
  T58 Screen Saver igork007 1 5,753 01-13-2020 07:13 PM
Last Post: complex1
  Replacement Screen T48G yeayealink 2 7,466 05-27-2019 03:07 AM
Last Post: jennytran
  Disabling screen timeout on T29G oliver@olivermarshall.net 1 10,529 05-24-2019 01:30 PM
Last Post: complex1
  Screen Default Back to Page 1 Kiwi 0 4,316 04-16-2019 01:22 AM
Last Post: Kiwi
  Turn off warnings on screen in V84 avayax 1 5,877 03-21-2019 12:30 PM
Last Post: complex1

Forum Jump:


User(s) browsing this thread: 1 Guest(s)

Contact Us   Yealink   Return to Top   Return to Content   Lite (Archive) Mode   RSS Syndication