Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - mexicanto

Pages: 1 [2] 3 4
16
Arduino + MySensors / Re: openHAB, Domoticz, etc... ???
« on: January 25, 2016, 09:44:23 AM »
Thank you Kalle,
another software that you can suggest ?
what software do you use ?

thanks again

17
Arduino + MySensors / openHAB, Domoticz, etc... ???
« on: January 25, 2016, 06:24:47 AM »
I have a pc running 24x7, some raspberry pi, a bunch of arduinos and a bunch of esp8266, also a mysensor gateway,

Dave, Kalle, Nime or whom may concern, what home automation (open software) do you recommend to
work best with VC, and easy to learn/configure ?
 I know at least two option, openHAB and domoticz

Thanks in advance

18
I am very interested in the module, do you have a price table/list ?

thank you Kalle

19
BEAM IR/RF Wifi transceiver / Re: BEAM IR/RF Wifi transceiver
« on: January 25, 2016, 01:07:10 AM »
Hi Kalle,
Can you put me on the list of the WiFi module, as an early adopter/beta tester ?

Thank you

20
Thanks again Kalle,

I will try that tomorrow and share my results

21
It works perfect !!!

Thank you very much Kalle !!!

Also, any suggestion to do the opposite ?? push a button on the esp8266
and generate an event on VC ?

I know i have to program the ESP8266 as a server, not a client

thanks again

22
Hi Everybody,

I am working witha esp8266-01
i am able to turn on and off a led if i open a web browser and type:

http://192.168.1.2/gpio/1         

http://192.168.1.2/gpio/0

on and off, respectively
and the web page respond:

GPIO is now high

GPIO is now low

respectively too

I have tried this in the LCB

TCP.Single.WrileLn             /gpio/1\x0a                 192.168.1.2          80

with no success, any help will be greatly apreciate

thanks


23
Thank you Dave and Kalle,

I need both, sending and receiving from/to VC-Arduino
because i need all the 3 pins (at least) (1 analog +  1 button + led)
this post is my project

http://voxcommando.com/forum/index.php?topic=1679.msg21000#msg21000

Kalle, I was reading that forum, but thank you for your support, is greatly appreciate
I'm going to experiment with the module and arduino, and I will post my results

thanks again, and happy new year

24
Thank you very much Nime,
I will try IFTTT, meanwhile, there is still a lot to do over arduino-wifi

25
Hi Nime,

Let me give you the whole picture of mi project: (this is just an example)

and arduino with 2 sensors, 1 relay, 1 servo, all connected over wifi to my network:

sensor 1 - water sensor for the water bowl of my dog - moist sensor
sensor 2 - food sensor to the food bowl of my dog - weight sensor
relay 1 - connected to a water pump to server water to the bowl
1 servo - connected to a door of a food dispenser


if the water level goes down, VC speaks a message, and send me an email to let me know the dog
needs water.
if I am at home, I can speak back to VC and let it trigger the relay to serve water
if I am away from home, i send an email to trigger an action to serve the water (all over my smartphone)


example VC to email: (smtp plugin)
Subject: VC
Message: Water level is low

example email to VC: (your PY script)
Subject: VC
Message: Serve water

the same applies to the food sensor/servo
the only difference is the message from VC, and the message back to VC

any help is highly appreciate

thanks


26
Hello Dave,

By any chance, do you have an example/code that you can share ?

I refer to the option 1, esp8266 + arduino (the mini pro 3.3v)

I am trying to turn on/off a led, reading an analog value and trigger an event with a push button

Any help will be greatly appreciated

27
Arduino support / Re: Arduino Plugin
« on: December 29, 2015, 09:52:56 AM »
I know this codes/sketches/scripts are in other post
I just want to put everything in one post for whom ever can use it

thanks to james and laksmanx, the authors of the code

The notes:
I tested it with 2 leds, 2 potentiometers, and 2 pushbuttons
I suggest that you use a pulldown resistors on the analog inputs not in use
to avoid floating readings, this same applies to the pushbuttons in use


in my test i connect the leds to pins 6 & 7
the potentiometers on pins A1 & A3 (i will use the potentiometer on pin3 for later use, a smoke/fire alarm)
the pushbuttons on pins 11 & 12

happy holidays

Code: [Select]
<?xml version="1.0" encoding="utf-16"?>
<!--VoxCommando 2.2.0.7-->
<commandGroup open="True" name="LED-Pin-Hello-WR" enabled="True" prefix="" priority="0" requiredProcess="" description="">
  <command id="310" name="Arduino Startup" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
    <action>
      <cmdType>PY.ExecFile</cmdType>
      <params>
        <param>PY\ArduinoStartup.py</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <event>VC.Loaded</event>
  </command>
  <command id="798" name="Set The LED On" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
    <action>
      <cmdType>TTS.Speak</cmdType>
      <params>
        <param>Set The LED On</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <action>
      <cmdType>OSD.ShowText</cmdType>
      <params>
        <param>Set The LED On</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <action>
      <cmdType>PY.ExecString</cmdType>
      <params>
        <param>arduinoWrite("dw.high.6")</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <phrase>Set The LED On</phrase>
  </command>
  <command id="817" name="Set The LED Off" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
    <action>
      <cmdType>TTS.Speak</cmdType>
      <params>
        <param>Set The LED Off</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <action>
      <cmdType>OSD.ShowText</cmdType>
      <params>
        <param>Set The LED Off</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <action>
      <cmdType>PY.ExecString</cmdType>
      <params>
        <param>arduinoWrite("dw.low.6")</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <phrase>Set The LED Off</phrase>
  </command>
  <command id="779" name="Get The Value" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
    <action>
      <cmdType>PY.ExecString</cmdType>
      <params>
        <param>arduinoWrite("ar.1")</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <phrase>Get The Value</phrase>
  </command>
  <command id="796" name="Read value of pin {1}" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
    <action>
      <cmdType>PY.ExecString</cmdType>
      <params>
        <param>arduinoWrite("ar.{1}")</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <phrase>Read value of pin</phrase>
    <payloadRange>0,15</payloadRange>
  </command>
  <command id="756" name="analog value event" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
    <action>
      <cmdType>TTS.Speak</cmdType>
      <params>
        <param>The Pin number. {1}. has a value of. {2}</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <action>
      <cmdType>OSD.ShowText</cmdType>
      <params>
        <param>The Pin number. {1}. has a value of. {2}</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <event>Analog.Pin</event>
  </command>
  <command id="784" name="Set pin {1} high" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
    <action>
      <cmdType>TTS.Speak</cmdType>
      <params>
        <param>Set Pin. {1}. High</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <action>
      <cmdType>OSD.ShowText</cmdType>
      <params>
        <param>Set Pin. {1}. High</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <action>
      <cmdType>PY.ExecString</cmdType>
      <params>
        <param>arduinoWrite("dw.high.{1}")</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <phrase>Set pin</phrase>
    <payloadRange>1,50</payloadRange>
    <phrase>high</phrase>
  </command>
  <command id="829" name="Set pin {1} low" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
    <action>
      <cmdType>TTS.Speak</cmdType>
      <params>
        <param>Set Pin. {1}. Low</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <action>
      <cmdType>OSD.ShowText</cmdType>
      <params>
        <param>Set Pin. {1}. Low</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <action>
      <cmdType>PY.ExecString</cmdType>
      <params>
        <param>arduinoWrite("dw.low.{1}")</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <phrase>Set pin</phrase>
    <payloadRange>1,50</payloadRange>
    <phrase>low</phrase>
  </command>
  <command id="736" name="hello arduino" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
    <action>
      <cmdType>PY.ExecString</cmdType>
      <params>
        <param>arduinoWrite("hello")</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <phrase>hello arduino</phrase>
  </command>
  <command id="746" name="Button One Is Pressed" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
    <action>
      <cmdType>TTS.Speak</cmdType>
      <params>
        <param>Button One Is Pressed</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <action>
      <cmdType>OSD.ShowText</cmdType>
      <params>
        <param>Button One Is Pressed</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <event>ButtonOne.Pressed
</event>
  </command>
  <command id="398" name="Button One Is Released" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
    <action>
      <cmdType>TTS.Speak</cmdType>
      <params>
        <param>Button One Is Released</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <action>
      <cmdType>OSD.ShowText</cmdType>
      <params>
        <param>Button One Is Released</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <event>ButtonOne.State.Released
</event>
  </command>
  <command id="399" name="Button Two Is Pressed" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
    <action>
      <cmdType>TTS.Speak</cmdType>
      <params>
        <param>Button Two Is Pressed</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <action>
      <cmdType>OSD.ShowText</cmdType>
      <params>
        <param>Button Two Is Pressed</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <action>
      <cmdType>SMTP.Send</cmdType>
      <params>
        <param>7148308504@mymetropcs.com</param>
        <param>Button 2 Pressed</param>
        <param>The Button No. 2 Has Been Pressed</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <action>
      <cmdType>TTS.Speak</cmdType>
      <params>
        <param>SMS Pressed Sent</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <action>
      <cmdType>OSD.ShowText</cmdType>
      <params>
        <param>SMS Pressed Sent</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <event>ButtonTwo.Pressed
</event>
  </command>
  <command id="400" name="Button Two Is Released" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
    <action>
      <cmdType>TTS.Speak</cmdType>
      <params>
        <param>Button Two Is Released</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <action>
      <cmdType>OSD.ShowText</cmdType>
      <params>
        <param>Button Two Is Released</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <action>
      <cmdType>SMTP.Send</cmdType>
      <params>
        <param>7148308504@mymetropcs.com</param>
        <param>Button 2 Release</param>
        <param>The Button N. 2 Has Been Release</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <action>
      <cmdType>TTS.Speak</cmdType>
      <params>
        <param>SMS Released Sent</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <action>
      <cmdType>OSD.ShowText</cmdType>
      <params>
        <param>SMS Released Sent</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <event>ButtonTwo.Released
</event>
  </command>
</commandGroup>

28
Thanks James,
I will try IFTTT

Thanks Nime,

I will implement all your suggestions, but later in the next year (a week away :D)

I want to finish something I started with ESP8266, to integrate it into your solution
I also want to try the new post you just published:
 
http://voxcommando.com/forum/index.php?topic=2434.msg20972#msg20972

thanks for all the help

and happy holidays for both of you and all other VC members and users

29
I have the IFTTT with the littlebits "cloudbit" and the messages took up to 15 minutes
to reach the destination.

http://littlebits.cc/kits/cloudbit-starter-kit

on the other hand, the email with the py/VC solution took no more than 5 seconds to  be received

thanks

30
Thanks for your response

the IFTTT takes even up to 15 minutes to send an email or SMS, is very slow for my needs

Can you pointing me in the direction for the other alternatives ?

Attached is the log

the log stops at 3:00, but the programs crashed at 3:04 aprox


Pages: 1 [2] 3 4