The UK Home Automation Archive

Archive Home
Group Home
Search Archive


Advanced Search

The UKHA-ARCHIVE IS CEASING OPERATIONS 31 DEC 2024

Latest message you have seen: Re: xAP speech non english characters?


[Message Prev][Message Next][Thread Prev][Thread Next][Message Index][Thread Index]

Re: Python playing - xAP Display for the Mac



--000e0cd28680a1c0b3046e30899f
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

They look really useful, thanks. Do you mind if I use code from this in my
app, attributed of course? I couldn't see if it was gpl/bsd etc.

Thanks
James

2009/7/8 Brett England <brett@xxxxxxx>

>
>
>  These are some sample xAP python application I put together as part
of my
> livebox project:
>
> http://livebox.dbzoo.com/python/
>
>
>
> HUB awareness logic has been included.
>
>
>
> Brett
>  ------------------------------
>
> *From:* xap_automation@xxxxxxx [mailto:
> xap_automation@xxxxxxx] *On Behalf Of *James
> *Sent:* 07 July 2009 22:45
> *To:* xap_automation@xxxxxxx
> *Subject:* [xap_automation] Python playing - xAP Display for the Mac
>
>
>
>
>
>
>  Hi,
>
> There are two things bugging me about my mac. Firstly I have no idea
> how to program on it and secondly not much xAP. So i've been getting
> my head around Python and made a little app, well script, that listens
> for xAP display messages and then pops them up. I'm using Growl to do
> the popups so you'll ned that installed as well as the python bindings
> that go with it.
> The script is here:
> http://mi4.biz/files/python/xAPDisplay01.txt
> It's not a true xAP application, it only listens on the hub port and
> wont work with a hub yet, but then I couldn't get the hub to compile
> so probably not an issue for now! It's more of a test than an app
> for now, but as it's already useful I thought I would share.
>
> If anyone has any python experience and could help with why the py2app
> fails with the script to build a normal application then it would
> really help and I'm sure I'm just missing something simple with paths
> to the growl libraries but it causes the .app to fail to run.
>
> Thanks
>
> James
>
>

--000e0cd28680a1c0b3046e30899f
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable





<head>

<style type=3D"text/css">
<!--

/* start of attachment style */
.ygrp-photo-title{
clear: both;
font-size: smaller;
height: 15px;
overflow: hidden;
text-align: center;
width: 75px;
}
div.ygrp-photo{
background-position: center;
background-repeat: no-repeat;
background-color: white;
border: 1px solid black;
height: 62px;
width: 62px;
}

div.photo-title=20
a,
div.photo-title a:active,
div.photo-title a:hover,
div.photo-title a:visited {
text-decoration: none;=20
}

div.attach-table div.attach-row {
clear: both;
}

div.attach-table div.attach-row div {
float: left;
/* margin: 2px;*/
}

p {
clear: both;
padding: 15px 0 3px 0;
overflow: hidden;
}

div.ygrp-file {
width: 30px;
valign: middle;
}
div.attach-table div.attach-row div div a {
text-decoration: none;
}

div.attach-table div.attach-row div div span {
font-weight: normal;
}

div.ygrp-file-title {
font-weight: bold;
}
/* end of attachment style */
-->
</style>
</head>
<html><head>
<style type=3D"text/css">
<!--
#ygrp-mkp{
border: 1px solid #d8d8d8;
font-family: Arial;
margin: 14px 0px;
padding: 0px 14px;
}
#ygrp-mkp hr{
border: 1px solid #d8d8d8;
}
#ygrp-mkp #hd{
color: #628c2a;
font-size: 85%;
font-weight: bold;
line-height: 122%;
margin: 10px 0px;
}
#ygrp-mkp #ads{
margin-bottom: 10px;
}
#ygrp-mkp .ad{
padding: 0 0;
}
#ygrp-mkp .ad a{
color: #0000ff;
text-decoration: none;
}
-->
</style>
</head>
<body>



<!-- **begin egp html banner** -->

<br><br>

<!-- **end egp html banner** -->


They look really useful, thanks. Do you mind if I use code from this in my
=
app, attributed of course? I couldn&#39;t see if it was gpl/bsd
etc.<br><br=
>Thanks<br>James<br><br><div
class=3D"gmail_quote">2009/7/8 Brett England <=
span dir=3D"ltr">&lt;<a href=3D"mailto:brett@xxxxxxx";>brett@xxxxxxx</a>=
&gt;</span><br>
<blockquote class=3D"gmail_quote" style=3D"border-left:
1px solid rgb(204, =
204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">









<div style=3D"background-color: rgb(255, 255, 255);">


<div style=3D"width: 655px;">
<div style=3D"margin: 0pt; padding: 0pt 25px 0pt 0pt; width: 470px;
float: =
left;">


<div>
=20=20=20=20=20=20=20=20=20=20=20=20
<br><br>
=20=20=20=20=20=20
<p>





</p><div>

<p><font color=3D"navy" face=3D"Arial"
size=3D"2"><span style=3D"font-size:=
10pt; font-family: Arial; color: navy;">These are some sample xAP
python
application I put together as part of my livebox
project:</span></font></p>

<p><font color=3D"navy" face=3D"Arial"
size=3D"2"><span style=3D"font-size:=
10pt; font-family: Arial; color: navy;"><a href=3D"http://livebox.dbzoo.co=
m/python/" target=3D"_blank">http://livebox.dbzoo.com/python/</a></span></f=
ont></p>


<p><font color=3D"navy" face=3D"Arial"
size=3D"2"><span style=3D"font-size:=
10pt; font-family: Arial; color:
navy;">=A0</span></font></p>

<p><font color=3D"navy" face=3D"Arial"
size=3D"2"><span style=3D"font-size:=
10pt; font-family: Arial; color: navy;">HUB awareness logic has
been inclu=
ded.</span></font></p>

<p><font color=3D"navy" face=3D"Arial"
size=3D"2"><span style=3D"font-size:=
10pt; font-family: Arial; color:
navy;">=A0</span></font></p>

<p><font color=3D"navy" face=3D"Arial"
size=3D"2"><span style=3D"font-size:=
10pt; font-family: Arial; color:
navy;">Brett</span></font></p>

<div>

<div style=3D"text-align: center;"
align=3D"center"><font face=3D"Times New=
Roman" size=3D"3"><span style=3D"font-size:
12pt;">

<hr width=3D"100%" align=3D"center"
size=3D"2">

</span></font></div>

<p><b><font face=3D"Tahoma"
size=3D"2"><span style=3D"font-size: 10pt; font=
-family: Tahoma; font-weight:
bold;">From:</span></font></b><font
face=3D"T=
ahoma" size=3D"2"><span style=3D"font-size: 10pt;
font-family: Tahoma;">
<a href=3D"mailto:xap_automation@xxxxxxx";
target=3D"_blank">xap_aut=
omation@xxxxxxx</a> [mailto:<a href=3D"mailto:xap_automation@yahoog=
roups.com"
target=3D"_blank">xap_automation@xxxxxxx</a>]
<b><span s=
tyle=3D"font-weight: bold;">On Behalf Of
</span></b>James<br>

<b><span style=3D"font-weight:
bold;">Sent:</span></b> 07 July 2009 22:45<b=
r>
<b><span style=3D"font-weight:
bold;">To:</span></b> <a href=3D"mailto:xap_=
automation@xxxxxxx"
target=3D"_blank">xap_automation@xxxxxxx=
m</a><br>
<b><span style=3D"font-weight:
bold;">Subject:</span></b> [xap_automation] =
Python
playing - xAP Display for the Mac</span></font></p>

</div><div><div></div><div
class=3D"h5">

<p><font face=3D"Times New Roman"
size=3D"3"><span style=3D"font-size: 12pt=
;">=A0</span></font></p>

<div>

<div>

<div>

<p><font face=3D"Times New Roman"
size=3D"3"><span style=3D"font-size: 12pt=
;"><br>
<br>
<br>
</span></font></p>



<p><font face=3D"Times New Roman"
size=3D"3"><span style=3D"font-size: 12pt=
;">Hi,<br>
<br>
There are two things bugging me about my mac. Firstly I have no idea
<br>
how to program on it and secondly not much xAP. So i&#39;ve been
getting <b=
r>
my head around Python and made a little app, well script, that listens
<br>
for xAP display messages and then pops them up. I&#39;m using Growl to
do <=
br>
the popups so you&#39;ll ned that installed as well as the python
bindings =
<br>
that go with it.<br>
The script is here:<br>
<a href=3D"http://mi4.biz/files/python/xAPDisplay01.txt";
target=3D"_blank">=
http://mi4.biz/files/python/xAPDisplay01.txt</a><br>
It&#39;s not a true xAP application, it only listens on the hub port
and <b=
r>
wont work with a hub yet, but then I couldn&#39;t get the hub to
compile <b=
r>
so probably not an issue for now! It&#39;s more of a test than an app
<br>
for now, but as it&#39;s already useful I thought I would
share.<br>
<br>
If anyone has any python experience and could help with why the py2app
<br>
fails with the script to build a normal application then it would
<br>
really help and I&#39;m sure I&#39;m just missing something simple
with pat=
hs <br>
to the growl libraries but it causes the .app to fail to run.<br>
<br>
Thanks<br>
<br>
James</span></font></p>

</div>




=09
=09

</div></div></div></div></div>
=20

</div>=20=20

=20=20=20=20
<div width=3D"1" style=3D"color: white; clear:
both;"></div>
=09
</div>
=09
=09


=09


=09
=09
=09
=09
=09

</blockquote></div><br>




<!-- **begin egp html banner** -->

<br>

=20=20=20=20
=20=20=20=20
<br>

<!-- **end egp html banner** -->


<div width=3D"1" style=3D"color: white; clear:
both;"/>__._,_.___</div>

<!-- Start Recommendations -->
<!-- End Recommendations -->



<!-- **begin egp html banner** -->

<img src=3D"http://geo.yahoo.com/serv?s=3D97476590/grpId=3D9674343/grpspI=
d=3D1705007709/msgId=3D4413/stime=3D1247055097" width=3D"1"
height=3D"1"> <=
br>

<!-- **end egp html banner** -->

=20=20
<!-- **begin egp html banner** -->

<br>
<div style=3D"font-family: verdana; font-size: 77%; border-top: 1px
s=
olid #666; padding: 5px 0;" >
Your email settings: Individual EmailTraditional <br>
<a href=3D"http://groups.yahoo.com/group/xap_automation/join;_ylc=3DX=
3oDMTJmaHBrYWl0BF9TAzk3NDc2NTkwBGdycElkAzk2NzQzNDMEZ3Jwc3BJZAMxNzA1MDA3NzA5=
BHNlYwNmdHIEc2xrA3N0bmdzBHN0aW1lAzEyNDcwNTUwOTc-">Change settings
via the W=
eb</a> (Yahoo! ID required) <br>
Change settings via email: <a href=3D"mailto:xap_automation-digest@ya=
hoogroups.com?subject=3DEmail Delivery: Digest">Switch delivery to
Daily Di=
gest</a>  <a href =3D "mailto:xap_automation-fullfeatured@xxxxxxx?=
subject=3DChange Delivery Format: Fully Featured">Switch to Fully
Featured<=
/a> <br>
<a href=3D"http://groups.yahoo.com/group/xap_automation;_ylc=3DX=
3oDMTJkbG5nNXQ4BF9TAzk3NDc2NTkwBGdycElkAzk2NzQzNDMEZ3Jwc3BJZAMxNzA1MDA3NzA5=
BHNlYwNmdHIEc2xrA2hwZgRzdGltZQMxMjQ3MDU1MDk3">
Visit Your Group=20
</a>
<a href=3D"http://docs.yahoo.com/info/terms/";>
Yahoo! Groups Terms of Use
</a>
<a href=3D"mailto:xap_automation-unsubscribe@xxxxxxx?subject=
=3DUnsubscribe">
Unsubscribe=20
</a>=20
<br>
</div>
<br>

<!-- **end egp html banner** -->


<div style=3D"color: white; clear:
both;"/>__,_._,___</div>
</body>

</html>

--000e0cd28680a1c0b3046e30899f--


xAP_Automation Main Index | xAP_Automation Thread Index | xAP_Automation Home | Archives Home

Comments to the Webmaster are always welcomed, please use this contact form . Note that as this site is a mailing list archive, the Webmaster has no control over the contents of the messages. Comments about message content should be directed to the relevant mailing list.