new timer and Text To Speech UPnP Announcer

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…)

Great UPnP device! Can be controlled by Intel’s UPnP tools, so should work with Vera.

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?

It sounds good :smiley:

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

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 ???

Please try

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?

Thank you for your help.

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

Thanks again

Your screenshot confirms that the udn is ‘uuid:TimerAnnouncer1’.

Two possibilities remain:

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')

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?

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.

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.):

for u,v in pairs(luup.devices)
 do
  luup.log('*'..v.description..'*'..v.udn..'*')
end

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

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:

*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 …

With the new firmware now out, do you think this will work?

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.

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

Dear AP15e,

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

[tt]http://forum.micasaverde.com/index.php/topic,5466.msg36405.html#msg36405[/tt]

Hello again,

sorry for not being clear. I read your previous post. in the previous build, after adding a upnp device, we would be able to read the device ID from the advanced tab. in the newer builds, the settings icon appears disabled I am getting a weird message after i add a device (attached below) and I could not guess it. Is there any way to get that ID? I am working on amazing new devices and this would help a lot.

UPDATE: I went into the source HTML of the vera and was able to retrieve the ID, although testing it from Lua does nothing.

luup.call_action( “urn:upnp-org:ServiceId:TimerAnnouncerService”, “Announce”, {announcement= ‘test test’}, 37)

I am running 1.1.1338. Can anyone else confirm the issue?

Update 2: it is working fine from within a scene.

Is there any way to get that ID?

My LSI (Luup System Information) plugin should be able to display the Luup id for your UPnP device.

Great plug in
I have created a scene and the Announcement worked great
unfortunately the PC Date didn’t work
On the scene > Advanced > i have added the GetPCTIME…when run nothing happened
have any solution?

thank you

Now if we get a camera plugin that can accept a sound stream or file … we could have Vera talk to us via the cameras with built-in speakers.