Forum Replies Created

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • in reply to: How to tweet the same message twice? #8069
    avatarhydrotruth
    Participant

    Eslam, I get you! But how can we do that with adding something random with the code?

    avatarhydrotruth
    Participant

    Hi Eslam, thank you for your assistance!

    i am also trying to incorporate the Twitter sheeld to send notifications with a direct message to another account. Problem is you cannot send the same message twice! Any way around this issue? Its obviously a Twitter restriction to reduce spamming.

    but i would really like to use this, can you help out with some code 🙂

    avatarhydrotruth
    Participant

     

     

    avatarhydrotruth
    Participant

    Hi Eslam, problem is solved!

    All that was needed was a 2nd Task to set pin to LOW after a 5second delay from 1st Task pin HIGH.

     

    To all forum members….

    Here is the code if you wish to use in a similar project.

    Video will be uploaded soon in the projects section.

     

     

    avatarhydrotruth
    Participant

    Hi Eslam, thank you for your reply.
    I think I understand what you mean, but I’m a bit confused with how to write the code.
    To give you abit more understanding, when Motion is detected via IP Webcam app, Tasker performs a HIGH on pin8, but I don’t know how to reset it to LOW, that way when a new Motion is detected it can repeat itself. Does that make sense?
    So in my code…

     

    The problem I am faced with here is that I don’t know how to reset the tasker pin8 to LOW that way it can receive a new motion detection via Tasker.

    Hope this is clear enough.

    avatarhydrotruth
    Participant

    OOPS!!!

    Sorry about that…

    Give me a few minutes to rephrase.

    avatarhydrotruth
    Participant

    Hi Eslam, thank you for your reply.

    I think I understand what you mean, but I’m a bit confused with how to write the code.

    To give you abit more understanding, when Motion is detected via IP Webcam app, Tasker performs a HIGH on pin8, but I don’t know how to reset it to LOW, that way when a new Motion is detected it can repeat itself. Does that make sense?

    So in
    <div id=”crayon-551c06e528dcf225257913-20″ class=”crayon-line crayon-striped-line”><span class=”crayon-t”>int</span> <span class=”crayon-v”>ledPin</span> <span class=”crayon-o”>=</span> <span class=”crayon-cn”>13</span><span class=”crayon-sy”>;</span></div>
    <div id=”crayon-551c06e528dcf225257913-22″ class=”crayon-line crayon-striped-line”><span class=”crayon-t”>int</span> <span class=”crayon-v”>relayPin5</span> <span class=”crayon-o”>=</span> <span class=”crayon-cn”>7</span><span class=”crayon-sy”>;</span></div>
    <div class=”crayon-line crayon-striped-line”>int taskerPin = 8;       //When motion detected by IP WEBCAM plugin-Task(1Sheeld plugin, set pin 8 to HIGH)</div>
    <div class=”crayon-line crayon-striped-line”></div>
    <div id=”crayon-551c06e528dcf225257913-23″ class=”crayon-line”><span class=”crayon-t”>void</span> <span class=”crayon-e”>setup</span><span class=”crayon-sy”>(</span><span class=”crayon-sy”>)</span> <span class=”crayon-sy”>{</span></div>
    <div id=”crayon-551c06e528dcf225257913-24″ class=”crayon-line crayon-striped-line”><span class=”crayon-h”>  </span><span class=”crayon-v”>OneSheeld</span><span class=”crayon-sy”>.</span><span class=”crayon-e”>begin</span><span class=”crayon-sy”>(</span><span class=”crayon-sy”>)</span><span class=”crayon-sy”>;</span></div>
    <div id=”crayon-551c06e528dcf225257913-27″ class=”crayon-line”><span class=”crayon-h”>  </span><span class=”crayon-e”>pinMode</span><span class=”crayon-sy”>(</span><span class=”crayon-v”>ledPin</span><span class=”crayon-sy”>,</span> <span class=”crayon-v”>OUTPUT</span><span class=”crayon-sy”>)</span><span class=”crayon-sy”>;</span></div>
    <div id=”crayon-551c06e528dcf225257913-29″ class=”crayon-line”><span class=”crayon-h”>  </span><span class=”crayon-e”>pinMode</span><span class=”crayon-sy”>(</span><span class=”crayon-v”>relayPin5</span><span class=”crayon-sy”>,</span> <span class=”crayon-v”>OUTPUT</span><span class=”crayon-sy”>)</span><span class=”crayon-sy”>;</span></div>
    <div class=”crayon-line”>  pinMode(taskerPin, INPUT);</div>
    <div id=”crayon-551c06e528dcf225257913-30″ class=”crayon-line crayon-striped-line”><span class=”crayon-h”>  </span><span class=”crayon-e”>digitalWrite</span><span class=”crayon-sy”>(taskerPin</span><span class=”crayon-sy”>,</span> <span class=”crayon-v”>LOW</span><span class=”crayon-sy”>)</span><span class=”crayon-sy”>;</span></div>
    <div id=”crayon-551c06e528dcf225257913-31″ class=”crayon-line”><span class=”crayon-sy”>}</span></div>
    <div class=”crayon-line”></div>
    <div class=”crayon-line”>void loop() {
    if(digitalRead(taskerPin) == HIGH)
    {
    digitalWrite(ledPin, HIGH);</div>
    <div class=”crayon-line”>digitalWrite(relayPin5, HIGH);
    delay(10000);
    digitalWrite(taskerPin, LOW);      //example of my attempt to reset taskerPin to LOW(I think this is the wrong approach)
    digitalWrite(ledPin, LOW);</div>
    <div class=”crayon-line”>digitalWrite(relayPin5, LOW);
    }</div>
    <div class=”crayon-line”>}</div>
    <div class=”crayon-line”></div>
    <div class=”crayon-line”>The problem I am faced with here is that I don’t know how to reset the tasker pin8 to LOW  that way it can receive a new motion detection.</div>
    <div class=”crayon-line”>I hope my explanation is clear enough……</div>
    <div class=”crayon-line”>Thanking you for your time in advance!</div>

    in reply to: Send and receive sms code with PIR sensor and Tasker plugin #7873
    avatarhydrotruth
    Participant

     

    in reply to: Unable to connect bluetooth #7320
    avatarhydrotruth
    Participant

    Hi Eslam,

    I have tried too many times. I also tried to search for it manually but it is unable to be found!

Viewing 9 posts - 1 through 9 (of 9 total)