Announcement

Collapse
No announcement yet.

Charting Z-Wave mesh

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Charting Z-Wave mesh

    This is a new project and I need some help to go further.
    My development site here will show you on menu <Zwave> a chart of my Z-Wave net. This chart is made of pure javascript with a library called D3.js. You can play with mouse cursor : rotate, hover nodes...
    At this step the chart is static from a json string :
    Code:
    [
    {"name":"1","imports":[]},
    {"name":"4","imports":["1","11","28","34","36","37","42","47","51","52","70","71","73","75","87","89","90","91"]},
    {"name":"7","imports":["1","11","28","34","36","37","42","47","51","52","70","71","73","75","87","89","90","91"]},
    {"name":"11","imports":["1","36","42","47","52","87","89","90","91"]},
    {"name":"28","imports":["1","4","7","36","37","42","47","51","52","70","71","73","87","89","90","91"]},
    {"name":"34","imports":["1","4","11","36","37","42","47","51","52","71","73","75","87","89","90","91"]},
    {"name":"36","imports":["1","4","37","42","47","51","52","70","71","75","87","89","90","91"]},
    {"name":"37","imports":["1","4","7","11","28","34","42","47","51","52","70","71","73","75","87","89","90","91"]},
    {"name":"42","imports":["1","4","11","28","34","36","47","51","52","70","71","73","75","87","89","90","91"]},
    {"name":"47","imports":["1","4","7","11","28","34","36","37","51","52","70","71","73","75","87","89","90","91"]},
    {"name":"51","imports":["1"]},
    {"name":"52","imports":["1"]},
    {"name":"70","imports":["1"]},
    {"name":"71","imports":["1","4","7","11","28","34","36","37","42","51","52","70","73","75","87","89","90","91"]},
    {"name":"73","imports":["1","4","11","28","34","36","37","42","47","51","70","75","87","90","91"]},
    {"name":"75","imports":["1","4","11","28","36","37","42","47","51","71","87","89","90","91"]},
    {"name":"87","imports":["1"]},
    {"name":"88","imports":["1"]},
    {"name":"89","imports":["1"]},
    {"name":"90","imports":["1","4","28","34","36","37","42","47","51","70","71","87","89","91"]},
    {"name":"91","imports":["1"]}
    ]
    This is a simple table with a source Z-Wave node, and all the targets nodes, linked to it.

    Well I need help to make it dynamic.
    What would be your advise to get the node links list information via Homeseer. If it is possible...

    Jean
    Last edited by jmj09; October 13th, 2014, 12:07 AM.

  • #2
    I am experimenting some trouble with my messed CSS , rotating the wheel is not fluent at least ... I am working at it.
    Do you think there is any chance to scrape html response from zwave plugin in order to get my json ?
    In my server view, you can see memory consumption of both HS3 server and Node server. Annotation R is for reboot, N is for normal behaviour. If you hover the short annotation you will get the HS/zwave version. Any comments ?

    Jean
    Last edited by jmj09; October 13th, 2014, 12:08 AM.

    Comment


    • #3
      Hello...
      I think this is working now as intended. This is an example oh what you can do with html5 and javascript.
      Memory chart
      Annotations in the memory server chart are viewable.
      I am pushing HS3 to the limits, more than a week of continuous inline work for HS3 server. You can see memory consumption increase and at some time garbage collection is coming and memory footprint decreases. I note N for natural behaviour, R for reboot, and Z for new Zwave plugin 176 install.

      Zwave mesh chart
      It rotates now as expected. At the moment I did not found any way to grab programmatically the link information from HS3, thus greeting any clue on that point

      Tensio added
      It is a new chart devoted to rfxcom values coming from soil humidity sensors for my potted plants.

      My own work remains fully free, no copyright, no licence.
      The main file function.min.js is minified but the server host a workable function.js file. Of course you have to comply with charting library licences.
      Dygraphs and D3.

      Jean

      Comment


      • #4
        magnifique ! very cool bro

        Comment


        • #5
          Nice that it distinguishes between from, to, and bi-directional links. Better than z-seer in that respect. Will you be making it a plug-in?

          Comment


          • #6
            Hi AttilaHooper and NeverDie for reactions, I was feeling like a lonely cowboy in a desert on that topic.
            I am not willing to go to plugins for several reasons :
            I have no time to handle requests, enhancements, features, bugs, this is a job.
            Programing is not my job only a hobby and I am not that clever on computer software.
            I have no clue to make it dynamic (gather info real time from user Zwave mesh).
            I asked to HS for an ZWave API access as an enhancement of the present HS3 API with no answer till now.
            I gave a glance using open Zwave library, that's a way to go. If I have time I shall explore this path.
            If any of clever fellows tinkering this forum would give me a clue to explore I would be delighted.

            And best of all, if any of readers want to take the ideas, and build a pro plugin, he is welcome even for asking money for it, since all my own small contribution is totally open and free.

            Jean

            Comment


            • #7
              Nice work Jean!
              Tom
              baby steps...starting again with HS3
              HS3Pro: Z-NET & 80 Z wave Devices,
              HSTouch: 4 Joggler (Android Kitkat), 2 iPhone, 3 iPads
              Whole House Audio: 5 SqueezePlay Jogglers w Bose Speakers
              In The Works: 10 Cameras Geovision, new Adecmo/Envisalink Alarm, Arduinos
              System: XP on Fanless Mini-ITX w/ SSD

              Comment

              Working...
              X