Author Topic: Custom Turnout System  (Read 18189 times)

mitchbaker3

  • Member
  • *
  • Posts: 5
    • View Profile
Custom Turnout System
« on: 17 Nov 2015, 22:12:52 »
Hi Guys,

I am trying to code a Windows Batch File that will set off an alarm and read the filtered PDW message to me via a TTS program. Any help would be much appreciated.

Thanks

VidarParry

  • Top Member
  • ***
  • Posts: 126
    • View Profile
Re: Custom Turnout System
« Reply #1 on: 17 Nov 2015, 22:35:48 »
Hi Mitch.
Would it be easier for you to use the email feature of PDW and feed that into the TTS software?
Or does the TTS software read the filtered messages file, but needs a 'kick' to make it read the file?
Can you describe the system and your requirements a bit more?
Cheers
...Steve

mitchbaker3

  • Member
  • *
  • Posts: 5
    • View Profile
Re: Custom Turnout System
« Reply #2 on: 18 Nov 2015, 03:37:45 »
Thanks Steve,
I have had no luck with the email function - I get an error "STARTTLS" or something.

Basically what I have so far is when a filtered message comes through, It triggers a command file. In my command file so far I have the message copied out of a log file in the PDW folder, but I don't know how to get it to update after each message. Then I have the Batch File start a TTS program called MWS Reader 5. Then I am completely lost.

All I want it to is trigger a command file that plays an alarm sound, transfers the message into a TTS program and read it to me.

Thank you very much
-Mitch

VidarParry

  • Top Member
  • ***
  • Posts: 126
    • View Profile
Re: Custom Turnout System
« Reply #3 on: 19 Nov 2015, 21:03:08 »
It sounds like an interesting project and I can see benefits to other PDW users.

Rene - is this something you can help with? It's a bit beyond my capacity to research and play with at the moment (wife recuperating from knee surgery!). The hard bit I think is noticing and extracting the latest message from the log file, unless the email notification can be made to work somehow. The interfacing into the TTS software could be a challenge as well.

Mitch - do you know what the limitations of the trial version of  MWS reader are? Does it time out or just have limited functionality? What functionality on the free/trial version is provided, and is that likjely to be sufficient to achieve what this is intending to achieve?

Cheers
...Steve

Discriminator

  • Administrator
  • Top Member
  • ***
  • Posts: 185
    • View Profile
Re: Custom Turnout System
« Reply #4 on: 19 Nov 2015, 21:07:59 »
Rene - is this something you can help with?

I'm afraid not, as it is outside my area of expertise and I lack time to dig into this. Sorry!  ;)

VidarParry

  • Top Member
  • ***
  • Posts: 126
    • View Profile
Re: Custom Turnout System
« Reply #5 on: 19 Nov 2015, 21:19:17 »
Mitch - might need someone to write a small program to monitor the filtered log file and interface it into the TTS.

If you don't have the skills and no volunteers for this forum pop up (try the PDW development section), perhaps try freelancers.com or fiverr.com.

Let us know how you go:-)

Cheers
...Steve

mitchbaker3

  • Member
  • *
  • Posts: 5
    • View Profile
Re: Custom Turnout System
« Reply #6 on: 19 Nov 2015, 23:19:55 »
Thanks for the help guys,

I'll keep digging and once I get a program built I'll share it right here.

-Mitch