element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • 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 Forget Me Not : eLDERmon  Charts
  • Blog
  • Forum
  • Documents
  • Files
  • Events
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: mcb1
  • Date Created: 26 Sep 2014 8:16 AM Date Created
  • Views 1271 views
  • Likes 1 like
  • Comments 3 comments
  • forget_me_not
  • b+
  • design_challenge
  • openhab
  • iot_eldermon
  • tektronix
  • eclipse
  • internet_of_things
  • enocean
  • raspberrypi
  • smarthome
  • challenge
  • iot
  • enocean_pi
Related
Recommended

Forget Me Not : eLDERmon  Charts

mcb1
mcb1
26 Sep 2014

Forget Me Not :  eLDERmon  Charts

 

 

Link to other posts
Forget Me Not : eLDERmon Intro
Forget Me Not :  eLDERmon  Electrical
Forget Me Not :  eLDERmon  Outlets
Forget Me Not : eLDERmon Planning
Forget Me Not : eLDERmon Parts 1
Forget Me Not :  eLDERmon  Sponsor Parts
Forget Me Not : eLDERmon Hardware Hacking
Forget Me Not : eLDERmon GNUplot
Forget Me Not: eLDERmon Protocol
Forget Me Not : eLDERmon Hardware Hacking #2
Forget Me Not : eLDERmon Hardware Hacking #3
Forget Me Not : eLDERmon Tim

 

This week has been hetic because of other tasks, not related to this challenge.

 

So in the few hours I had available, I concentrated on some tidying tasks and looking at the charting functions.

 

Bedroom Sensor

This was giving me grief, so I bit the bullet and reprogrammed it.

 

I was certain it was an STM330, but on closer inspection its actually an STM310.

Maybe I had programmed it incorrectly, maybe I picked up a sensor I hadn't programmed, but whatever it's now working and recording a temperature. image

 

 

Now I have it working, I need to try adding a lux sensor.

 

 

Like ravi_butani I was struggling to sort out a 0.5" pitch (1.27mm) connector, but have finally resolved this, and found these.

image

 

Thanks to element14's fast delivery it will be next day (well except its the weekend), so Monday is the next working day.




Charts

For my purpose, instant status isn't required, so I have been looking at options using trends or charts.

I'm trialing something at the moment, which does everything I want.


I'm still hesitant regarding it, as openHAB has crashed twice, BUT I can't say if this is the cause or not.


  imageimage

                              The Outside unit (on the windowsill inside) is getting struck by sunlight ... hence the peaks


While openHAB has charting ability, you are stuck with whatever you initially setup in the sitemap.

The first chart shows all the temperatures, and the nice part is if you place the mouse over the line, it highlights and gives time and data values.


                     image

This plot includes the Humidity, which is useful, but the lines joining is distracting, so a fixed chart may be a pain.


image

The ability to zoom into any part is VERY useful, and is a simple matter of dragging the mouse across the area you want.


This charting option allows much greater flexibility.




Movement Sensors

My proposal was to include movement sensors, to track movement trends, and ensure Granny is not just staying in the Bedroom or Living room.


The problem was how to display it in a meaningful manner that was relative to the other information.


image


My first attempt was to take the change, allocate it to a Number item with a value of 10 (so it appeared higher in the charts) or 0.

This worked but as the result above showed, the chart smooths it out and simply plots between the values.



After some head scratching and many cups of coffee later, I decided to modify the rule and update the value before changing it to the new value.


rule "update Movement Graph"
when
  Item Pantry_Door changed or
  Time cron "0 0 0 * * ?" or
  System started
  then if (Pantry_Door.state == OPEN)postUpdate(Pantry_Door_Graph,0)
       if (Pantry_Door.state == OPEN)postUpdate(Pantry_Door_Graph,10)
       if (Pantry_Door.state == CLOSED)postUpdate(Pantry_Door_Graph,10)
       if (Pantry_Door.state == CLOSED)postUpdate(Pantry_Door_Graph,0)

end


It's a solution that works but could be tidied up.


image

          This certainly makes it obvious when the Pantry Door is open


I'll apply the same trick with the Movement sensors.


So while its not complete, I can see that the ability to add and subtract from the graph is very useful, and will show what I want.

More importantly it allows flexibility.



Stability

Following the unexpected crash, I decided to give the whole Raspberry Pi a reboot.

This should clear out any lingering memory leaks, as its been started and stopped and pushed and pulled many times over the last few weeks.


In the meantime I'm trying to NOT do any changes so I can check on the stability.


I have some sensors to put together, so NOT being able to touch it, is a good way to force me into the workshop and fire up the soldering iron.



Mark



  • Sign in to reply
  • mcb1
    mcb1 over 10 years ago in reply to michaelwylie

    but I do ensure openHAB is restarted/Pi rebooted after every major set of changes

    I suspect that was my issue.

     

    I was trying to get away without rebooting the whole RPi and also trying to get it to talk to designer while running.

     

     

    Mark

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

    Mine hasn't crashed either, but I don't have as many items in my list as Mark does!

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

    Nice charts! I haven't encountered crashes as far as I know, but I do ensure openHAB is restarted/Pi rebooted after every major set of changes.

     

    Frederick

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
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