We have moved at community.getvera.com

Author Topic: new timer and Text To Speech UPnP Announcer  (Read 13602 times)

Offline achalhoub

  • Jr. Member
  • **
  • Posts: 83
  • Karma: +0/-0
new timer and Text To Speech UPnP Announcer
« on: January 27, 2011, 04:53:43 am »
Dear Forum ,

I have created a UPnP device that can be run on any windows machine with .net 4.0 that will do the following

1. Return the the PC date and Time from the PC to circumvent the issue with the vera clock .
2. Read any text and announce it as Voice . It can be used to announce status, or any other info for that matter

It is available at the following link



www.softnet-eng.com/downloads/TimerAnnouncer.rar

I don't know if this will work with Vera . Any one with some Lua programming skills can help us add it and use it for our scenes ?

I am happy to hear any comments to fix the bugs and add some extra functionality ( maybe news broadcaster, stock quotes ,etc..)


Offline Ap15e

  • Beta Testers
  • Hero Member
  • *****
  • Posts: 1998
  • Karma: +12/-0
Re: new timer and Text To Speech UPnP Announcer
« Reply #1 on: January 27, 2011, 05:39:30 am »
Great UPnP device! Can be controlled by Intel's UPnP tools, so should work with Vera.

Offline achalhoub

  • Jr. Member
  • **
  • Posts: 83
  • Karma: +0/-0
Re: new timer and Text To Speech UPnP Announcer
« Reply #2 on: January 27, 2011, 06:02:53 am »
Thank Ap15e,

I don't know how to go from here. Is there any workaround we can use to add it to vera 2 and to use it with the scenes?


Offline cedriclocqueneux

  • Jr. Member
  • **
  • Posts: 79
  • Karma: +0/-0
Re: new timer and Text To Speech UPnP Announcer
« Reply #3 on: January 27, 2011, 06:45:06 am »
It sounds good :D

It will be great to use it in scene to speak some announces !

Offline achalhoub

  • Jr. Member
  • **
  • Posts: 83
  • Karma: +0/-0
Re: new timer and Text To Speech UPnP Announcer
« Reply #4 on: January 27, 2011, 07:31:57 am »
I uploaded a newer version just now (I just fixed the service name)

and I am trying the following in the Lua Test Code
 
luup.call_action("urn:upnp-org:ServiceId:TimerAnnouncerService","Announce",{ announcement="hello" },35)
with no success.

I didn't get to the point where I read the date and time yet . Long way ahead..

Basically I will use this device to read the date time from my server since I am getting too much time and date resets from vera. I hope this works    ???

« Last Edit: January 27, 2011, 07:36:14 am by achalhoub »

Offline Ap15e

  • Beta Testers
  • Hero Member
  • *****
  • Posts: 1998
  • Karma: +12/-0
Re: new timer and Text To Speech UPnP Announcer
« Reply #5 on: January 27, 2011, 08:24:47 am »
Please try

Code: [Select]
luup.call_action("urn:upnp-org:serviceId:TimerAnnouncerService","Announce",{ announcement="hello" },35)
luup.call_action("urn:upnp-org:serviceId:TimerAnnouncerService1","Announce",{ announcement="hello" },35)
luup.call_action("urn:upnp-org:serviceId:TimerAnnouncerService","Announce",{ announcement="hello" }, 'uuid:TimerAnnouncer1')
luup.call_action("urn:upnp-org:serviceId:TimerAnnouncerService","Announce",{ announcement="hello" },  'TimerAnnouncer1')
luup.call_action("urn:upnp-org:serviceId:TimerAnnouncerService1","Announce",{ announcement="hello" },  'uuid:TimerAnnouncer1')
luup.call_action("urn:upnp-org:serviceId:TimerAnnouncerService1","Announce",{ announcement="hello" },  'TimerAnnouncer1')


Would you mind posting a screenshot of the 'Advanced' tab of device #35?

Offline achalhoub

  • Jr. Member
  • **
  • Posts: 83
  • Karma: +0/-0
Re: new timer and Text To Speech UPnP Announcer
« Reply #6 on: January 27, 2011, 08:40:47 am »
Thank you for your help.

I am trying the different codes you sent and non of them worked  :-[

Thanks again
« Last Edit: January 27, 2011, 08:44:04 am by achalhoub »

Offline Ap15e

  • Beta Testers
  • Hero Member
  • *****
  • Posts: 1998
  • Karma: +12/-0
Re: new timer and Text To Speech UPnP Announcer
« Reply #7 on: January 27, 2011, 08:43:54 am »
Your screenshot confirms that the udn is 'uuid:TimerAnnouncer1'.

Two possibilities remain:

Code: [Select]
luup.call_action("urn:upnp-org:serviceId:TimerAnnouncerService","Announce",{ announcement="hello" }, 'uuid:TimerAnnouncer1')
luup.call_action("urn:upnp-org:serviceId:TimerAnnouncerService1","Announce",{ announcement="hello" },  'uuid:TimerAnnouncer1')

Offline achalhoub

  • Jr. Member
  • **
  • Posts: 83
  • Karma: +0/-0
Re: new timer and Text To Speech UPnP Announcer
« Reply #8 on: January 27, 2011, 08:47:11 am »
tried this as well

luup.call_action("urn:upnp-org:serviceId:TimerAnnouncerService","Announce",{ announcement="hello" }, 'uuid:TimerAnnouncer1')
luup.call_action("urn:upnp-org:serviceId:TimerAnnouncerService1","Announce",{ announcement="hello" },  'uuid:TimerAnnouncer1')

Non of them work. Did u manage to make it work from your end?

« Last Edit: January 27, 2011, 08:59:14 am by achalhoub »

Offline Ap15e

  • Beta Testers
  • Hero Member
  • *****
  • Posts: 1998
  • Karma: +12/-0
Re: new timer and Text To Speech UPnP Announcer
« Reply #9 on: January 27, 2011, 09:02:31 am »
Right now, I'm separated from my Vera by several firewalls. I will test in the evening (CET).

Two ideas remain:

1. Does Intel's Device Spy work with your UPnP device in your network (from another computer)?

2. Use the 'Advanced' tab of a scene to define your action (pick a device, add, select action, ...)

http://forum.micasaverde.com/index.php?topic=5251.0 might be related.
« Last Edit: January 27, 2011, 09:09:42 am by Ap15e »

Offline Ap15e

  • Beta Testers
  • Hero Member
  • *****
  • Posts: 1998
  • Karma: +12/-0
Re: new timer and Text To Speech UPnP Announcer
« Reply #10 on: January 27, 2011, 05:23:46 pm »
Here are my findings:

1. Add 'Timer Announcer Device' (TAD) to Vera ('Add/Remove devices'->'Add control over another UPnP device, such as another MiOS'): OK
2. New Device 'TAD' visible on GUI: OK
3. Click on settings icon for TAD: NOK (nothing happens)
4. Add TAD to the 'Advanced' tab of a scene ('Pick a device' -> TAD -> 'Add'): OK
5. Select a service ('TAD' -> 'Please select'): NOK (no selection/service available)

How to get the uuid, although the settings page does not work (3.):

Code: [Select]
for u,v in pairs(luup.devices)
 do
  luup.log('*'..v.description..'*'..v.udn..'*')
end

In my case the udn is: uuid:4d494342-5342-5645-41d0-000000001bdc

Code: [Select]
err, errm = luup.call_action("urn:upnp-org:ServiceId:TimerAnnouncerService","Announce",{ announcement="hello" },  'uuid:4d494342-5342-5645-41d0-000000001bdc')

luup.log('*'..tostring(err)..'*'..tostring(errm))

err, errm = luup.call_action("urn:upnp-org:ServiceId:TimerAnnouncerService1","Announce",{ announcement="hello" },  'uuid:4d494342-5342-5645-41d0-000000001bdc')

luup.log('*'..tostring(err)..'*'..tostring(errm))

Result:

Code: [Select]
*401*No Control URLs for Device
*401*No Control URLs for Device

Analysis:
The uuid is correct, but something went wrong as early as in step 1.

Related topics:
http://forum.micasaverde.com/index.php?topic=5251.0
http://forum.micasaverde.com/index.php?topic=5397.0

New bug report:
http://bugs.micasaverde.com/view.php?id=1391

Edit:
Even the 'Network Light' that comes with 'Intel's Tools for UPnP Technology' cannot be successfully added to Vera ...
« Last Edit: January 30, 2011, 07:33:44 am by Ap15e »

Offline achalhoub

  • Jr. Member
  • **
  • Posts: 83
  • Karma: +0/-0
Re: new timer and Text To Speech UPnP Announcer
« Reply #11 on: February 04, 2011, 07:24:53 am »
With the new firmware now out, do you think this will work?

Offline Ap15e

  • Beta Testers
  • Hero Member
  • *****
  • Posts: 1998
  • Karma: +12/-0
Re: new timer and Text To Speech UPnP Announcer
« Reply #12 on: February 04, 2011, 08:15:52 am »
Haven't tried yet, but there is no indication in the release notes that http://bugs.micasaverde.com/view.php?id=1391 has been fixed. AFAIK there will be a fix in the next beta firmware.

Offline Ap15e

  • Beta Testers
  • Hero Member
  • *****
  • Posts: 1998
  • Karma: +12/-0
Re: new timer and Text To Speech UPnP Announcer
« Reply #13 on: March 26, 2011, 04:41:00 pm »
The latest MiOS beta version (1.1.1234) does work with the TimerAnnouncer device.

Edit:
http://forum.micasaverde.com/index.php?topic=5466.msg36405#msg36405
« Last Edit: March 26, 2011, 05:59:15 pm by Ap15e »

Offline achalhoub

  • Jr. Member
  • **
  • Posts: 83
  • Karma: +0/-0
Re: new timer and Text To Speech UPnP Announcer
« Reply #14 on: December 20, 2011, 10:13:02 am »

Dear AP15e,

sorry for reviving an old post. Did you figure out the correct lua code to call this upnp device?