element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Forget Me Not Design Challenge
  • Challenges & Projects
  • Design Challenges
  • Forget Me Not Design Challenge
  • More
  • Cancel
Forget Me Not Design Challenge
Blog Episode 5A: Forget Me Not: Using Notify My Android with OpenHab
  • Blog
  • Forum
  • Documents
  • Files
  • Events
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: michaelwylie
  • Date Created: 17 Aug 2014 6:07 PM Date Created
  • Views 880 views
  • Likes 3 likes
  • Comments 2 comments
  • forget_me_not
  • forget-me-not
  • iot_monitor_auto
  • forget-me-not-challenge-2014
Related
Recommended

Episode 5A: Forget Me Not: Using Notify My Android with OpenHab

michaelwylie
michaelwylie
17 Aug 2014

Previous Posts:

Epidode 1: Forget Me Not: Application

Episode 2: Forget Me Not: The Best Laid Plans ...

Episode 3: Forget Me Not: Setup EnOcean with openHAB

Episode 4: Forget Me Not: Medication System

 

In my last post I discussed setting up the rules for my Medication Reminder System. The system issues a voice command to "Take Medication" when the user tries to leave the home before taking the medication. I wanted to implement a notification on my Android device using the HABDroid app, but I haven't seen how you can create a notification through it. Instead I signed up for a free account at NotifyMyAndroid. This service gives you 5 free notifications a day through an API Key. To use the system simply:

 

1. Sign up for the account at https://www.notifymyandroid.com/.

2. Login and generate a new API key (Under manage API keys). The key will be large:  4efe210645733a3c20e62c1b8ca7028bca1f53f64fc9510a

   This key is not valid, I made it up.

3. Install the notify my android app: https://play.google.com/store/apps/details?id=com.usk.app.notifymyandroid

4. Login to your account from the app.

 

In your openHab rules when you want the notification simply insert:

notifyMyAndroid("4efe210645733a3c20e62c1b8ca7028bca1f53f64fc9510a", "Medication", "Take Medication")

 

In my system I have:

 

rule "Remind Me While I am Leaving"
when 
    Item EnOcean_sensor_CONTACT2 changed from CLOSED to OPEN
then
    var Number hour = now.getHourOfDay
    if ( (Rocker1A.state == OFF) && (hour > 4) )
    {
        //Rocker1B.setState(ON)
        say("Take Medication")
        notifyMyAndroid("4efe210645733a3c20e62c1b8ca7028bca1f53f64fc9510a", "Medication", "Take your medication.")
    }        
end

 

If I try to leave my Raspberry Pi says "Take Medication" and I get a notification on my phone to take my medication.

  • Sign in to reply
Parents
  • ravi_butani
    ravi_butani over 10 years ago

    Good... I will try this surely... but only 5 notification per day? is it enough? I am currently using email notification because i need attachment too... and trying for twitter soon..

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • michaelwylie
    michaelwylie over 10 years ago in reply to ravi_butani

    yah, but if you want more it's a one time cost of 5 dollars I think.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
Comment
  • michaelwylie
    michaelwylie over 10 years ago in reply to ravi_butani

    yah, but if you want more it's a one time cost of 5 dollars I think.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
Children
No Data
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube