Author Topic: send email using SMTP  (Read 5892 times)

0 Members and 1 Guest are viewing this topic.

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7714
  • Karma: 116
    • View Profile
    • VoxCommando
send email using SMTP
« on: July 20, 2011, 12:14:30 PM »
I'm adding support for sending emails via smtp.  Preliminary tests work for both my gmail, and my sympatico mail servers.

Anyone have other feature requests for the next version?

DHHJ

  • $upporter
  • Contributor
  • *****
  • Posts: 62
  • Karma: 1
    • View Profile
Re: send email using SMTP
« Reply #1 on: July 20, 2011, 07:34:29 PM »
Home automation?

With USB UIRT support via EventGhost, we can get at STB, receiver, TV control but how about looking at a USB serial interface to something like X10 (CM19A) or a Zwave controller?

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7714
  • Karma: 116
    • View Profile
    • VoxCommando
Re: send email using SMTP
« Reply #2 on: July 20, 2011, 08:08:07 PM »
x10 I can do.  I use x10, and I just haven't bothered to add any actions for it because I call the x10 command-line utility and it works perfectly.  If you think it would be better to add it directly I'll take a look.

Zwave or others are a bit harder since I don't have the hardware.  Still I might be able to give it a shot if someone is willing to help with testing.  I'm not sure.

edit: I have a CM15A.  I don't know if it uses a different software interface / SDK from the CM19A
« Last Edit: July 20, 2011, 08:22:24 PM by jitterjames »

maxtrash

  • $upporter
  • Jr. Member
  • *****
  • Posts: 7
  • Karma: 0
    • View Profile
Re: send email using SMTP
« Reply #3 on: July 21, 2011, 07:10:34 PM »
cool that you have time to add more features.
I was wondering what vision you have for the future of VC. I was experimenting with getting my squeezeboxes to play something I tell it to. One option I tried was having VC control Mediamonkey. There is a script for mediamonkey that makes squeezebox play the same song Mediamonkey is playing. I didn't get this to work but then I found out that Eventghost has a squeezebox plugin (haven't tried it yet). At the end of the day eventghost has a lot more plugins than voxcomando. When do you think VC should support something natively? You might get a lot of overlap between both?

Some other thing. VC has the option to watch a directory for wav-files. While experimenting with possibilities to use my android-phone as a mic I stumbled upon some IP-cam program. That program streams to whatever client you want. E.g. using url http://192.168.1.29:8080/audio.wav you can hear the speaker. It's actually 44khz 16 bit PCM. Would it be possible to configure a url for streaming audio?

« Last Edit: July 21, 2011, 07:14:32 PM by maxtrash »

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7714
  • Karma: 116
    • View Profile
    • VoxCommando
Re: send email using SMTP
« Reply #4 on: July 21, 2011, 08:19:31 PM »
cool that you have time to add more features.
I was wondering what vision you have for the future of VC. I was experimenting with getting my squeezeboxes to play something I tell it to. One option I tried was having VC control Mediamonkey. There is a script for mediamonkey that makes squeezebox play the same song Mediamonkey is playing. I didn't get this to work but then I found out that Eventghost has a squeezebox plugin (haven't tried it yet). At the end of the day eventghost has a lot more plugins than voxcomando. When do you think VC should support something natively? You might get a lot of overlap between both?

Some other thing. VC has the option to watch a directory for wav-files. While experimenting with possibilities to use my android-phone as a mic I stumbled upon some IP-cam program. That program streams to whatever client you want. E.g. using url http://192.168.1.29:8080/audio.wav you can hear the speaker. It's actually 44khz 16 bit PCM. Would it be possible to configure a url for streaming audio?

Well, VC will never have all the plugins available to EventGhost because I don't have the manpower or the advantage of being able to tack python code on or let users make their own.  I wish I could do that.  If you know what you are doing though, it's really easy to send commands between EG and VC, and thus to anything that EG can control.

I try to add direct control to VoxCommando for :

a) very popular items - so that new users can start using it right away without the learning curve associated with also learning EG and how to send commands to it.  And also in the hopes of attractive new users to VC via another popular software that it supports.

b) programs that are somehow related to voice, such as xbmc and mediamonkey, where we can store media names and then request them.  It's not easy to explain quickly or make a particular rule, it just needs to make enough sense to me to justify the effort.  If there is already something for EG then I probably won't spend too much time reinventing the wheel, unless I think it is a particularly good match for VC.

I'm not sure about the direction of VC.  I have spent so much time on it that I am a bit exhausted.  If it took off and suddenly became extremely popular, that would change things, but as it is now I have to try to not spend too much time on it.  I will always come back to it though, I think, unless something better comes along that makes it obsolete.  One thing that I often think about but haven't really found an elegant solution for, would be a way to maintain some kind of context with the computer, along the lines of a conversation, but in a natural way so that you would not locked into it.  It's tricky.  For example, if you said "I want to send a reminder".  That would set a context that would allow the computer to gather more information about when, where etc, and add it to your calendar.  But I would still want to be able to interrupt the flow of the conversation to adjust lights, music, etc.  Techincally you could do something like this with VC already, but it would be a pain to implement.  I would be nice too if VC could ask questions that you could answer.  I will continue to think about this, maybe one day I'll think of a way to make it easy.

As for the wav stream, there are only two ways that I know of to get sound into the MS speech engine.  Either through the default audio input (or one that can be specified in advanced speech options control panel) or through a wav file.  The problem with a continuous IP camera stream is that it would need to be saved to a wav periodically so that VC could then open and analyze it.  If it's a continuous stream going to a single wav file I don't think I would be able to read it while it was being written.  I'm not saying it's impossible, but it sounds like it is over my head anyway.

Kalle

  • $upporter
  • Hero Member
  • *****
  • Posts: 2320
  • Karma: 47
    • View Profile
Re: send email using SMTP
« Reply #5 on: July 21, 2011, 08:43:12 PM »
I'm not sure about the direction of VC.  I have spent so much time on it that I am a bit exhausted.  If it took off and suddenly became extremely popular, that would change things, but as it is now I have to try to not spend too much time on it.  I will always come back to it though, I think, unless something better comes along that makes it obsolete.  One thing that I often think about but haven't really found an elegant solution for, would be a way to maintain some kind of context with the computer, along the lines of a conversation, but in a natural way so that you would not locked into it.  It's tricky.  For example, if you said "I want to send a reminder".  That would set a context that would allow the computer to gather more information about when, where etc, and add it to your calendar.  But I would still want to be able to interrupt the flow of the conversation to adjust lights, music, etc.  Techincally you could do something like this with VC already, but it would be a pain to implement.  I would be nice too if VC could ask questions that you could answer.  I will continue to think about this, maybe one day I'll think of a way to make it easy.
Hey James, you forgot one  ::)
You've found some new friends in the forum to support you and help you wherever they can.  :hugs

Kalle
***********  get excited and make things  **********

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7714
  • Karma: 116
    • View Profile
    • VoxCommando
Re: send email using SMTP
« Reply #6 on: July 21, 2011, 10:30:05 PM »
I have not forgotten this.  I am very thankful for the community, and the friends that I have made.  I didn't think that this was the topic though!  If we are talking about the good things that have come from creating VC, I could go on for a long time...  :bignod

Kalle

  • $upporter
  • Hero Member
  • *****
  • Posts: 2320
  • Karma: 47
    • View Profile
Re: send email using SMTP
« Reply #7 on: July 21, 2011, 11:23:05 PM »
I have not forgotten this.  I am very thankful for the community, and the friends that I have made.  I didn't think that this was the topic though!  If we are talking about the good things that have come from creating VC, I could go on for a long time...  :bignod
Haha, you're right  :D

"jubilee" 500 Post :D
***********  get excited and make things  **********

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7714
  • Karma: 116
    • View Profile
    • VoxCommando
Re: send email using SMTP
« Reply #8 on: July 21, 2011, 11:41:15 PM »
aha.  Wow 500.  You even beat Wanilton.

Kalle

  • $upporter
  • Hero Member
  • *****
  • Posts: 2320
  • Karma: 47
    • View Profile
Re: send email using SMTP
« Reply #9 on: July 22, 2011, 07:21:48 AM »
aha.  Wow 500.  You even beat Wanilton.
Yes, but Waniltons post's much more useful.  :D
***********  get excited and make things  **********

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7714
  • Karma: 116
    • View Profile
    • VoxCommando
Re: send email using SMTP
« Reply #10 on: July 24, 2011, 11:19:32 AM »
new version with x10 and smtp available here:

http://voxcommando.com/forum/index.php?topic=567.0