MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    1. Home
    2. mongo116
    3. Best
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.
    M
    Offline
    • Profile
    • Following 0
    • Followers 1
    • Topics 9
    • Posts 65
    • Groups 1

    Posts

    Recent Best Controversial
    • MMM-Hive

      Description:

      This module will display the inside and outside temperature from your British Gas Hive heating. It is fairly configurable, with some of the text and the inside icon able to be changed. The thermometer is dynamic based on the current outside temperature, and the inside icon will go red when the heating is on. The Target Temperature row will also change if the target temperature of the Hive system is 1°C or lower (I couldn’t find a specific flag for frost protect enabled, so this was the best way I could find to achieve this).

      I’ve never written code before, and this took far longer than it probably should have, but the internet is a great place and there are some great resources and assistance out there, so a massive thanks to anyone that has helped me (directly or indirectly).

      Screenshots:

      Default:
      0_1501318540374_hive1.png

      Outside temp exceeding highestTemp value, and heating on
      1_1501318540375_hive2.png

      Target temperature 1°C or lower
      4_1501318540375_hive5.png

      Text and icon changed in config.js to alternate values
      3_1501318540375_hive4.png

      Download:

      [card:flick116/MMM-Hive]

      Version 1

      • Initial Release
      posted in Utilities
      M
      mongo116
    • RE: Hive current room temperature

      No code uploaded yet, but I have started on the readme!
      MMM-Hive

      posted in Requests
      M
      mongo116
    • RE: sendSocketNotification not working

      Got this sorted - found there is another url that holds the information so added another request. The request I was having issues with was a post request, whereas the one I am using is a get.

      posted in Development
      M
      mongo116
    • RE: MMM-forecast-io -- Localized up to the minute weather

      @jinjirosan Hi, have you made the changes available to download? Would like to give it a go as currently using a combination of the default weather and forecast-io.

      posted in Utilities
      M
      mongo116
    • RE: Any MMM-Hive Users that can help, please?

      Hi Damian,

      I’d love to help, but unfortunately I moved house 2 weeks ago and didn’t bring the Hive with me so there is currently no way for me to test this.

      From what I do remember the way that Hive works is that you have to authenticate initially and then you can request the info from the hub:

      So first call is made to https://api-prod.bgchprod.info:443/omnia/auth/sessions which pulls back the session ID

      Then the session ID is used in the header for the request to https://api-prod.bgchprod.info:443/omnia/nodes

      For testing I used Postman in Chrome to make the requests etc so that way I could at least see if data was being pulled back.

      Have you enabled debug? Might be worth a go and then view the console under the browsers developer tools to check whether data is being pulled from the above urls.

      Thanks

      posted in Troubleshooting
      M
      mongo116
    • RE: Hive current room temperature

      I’ve spent some time on this (well all of my spare time really since I posted my request!) seeing if I could bodge something together, and have come up with the following:

      0_1501186410475_hive.png

      I would imagine it’s totally unoptimised, but it pulls the temperature back from the hive server, which is the main thing! The thermometer also changes depending on the temperature, and the flame changes to white when the heating is on. Need to spend some more time tidying it up and will then probably submit it here.

      posted in Requests
      M
      mongo116
    • RE: MMM-Hive

      @rick Thanks for that. Github has been updated :thumbs_up_light_skin_tone:

      posted in Utilities
      M
      mongo116
    • RE: Any MMM-Hive Users that can help, please?

      I was just about to post about the nodeName setting as remembered that can cause issues if you have multiple Hive bits - I only ever had the hub and thermostat… Cheers randomnoise :)

      posted in Troubleshooting
      M
      mongo116
    • RE: Hive current room temperature

      @Eunanibus I’m probably more worried about people reviewing my crappy code :) I will definitely put it up though.

      posted in Requests
      M
      mongo116
    • RE: Any MMM-Hive Users that can help, please?

      Hi,

      The last screenshot shows Frost Protect Enabled. Is this actually active on your hive?

      posted in Troubleshooting
      M
      mongo116
    • RE: Hive current room temperature

      I’ve only gone and bloody done it!!

      https://forum.magicmirror.builders/topic/4576/mmm-hive

      [card:flick116/MMM-Hive]

      Please be gentle with the critique!

      posted in Requests
      M
      mongo116
    • RE: Any MMM-Hive Users that can help, please?

      @Damian Hi, yeah the frost protect should only show when the target temperature is below a certain value. I would guess the issue here is the data being received from Hive. I won’t ask you to paste the data here (which should show up under the browser’s developer console, when debug is enabled) as it contains data related to your account (from what I remember anyway). The most likely issue is that the receiver name is incorrect or that the relevant data relating to temperature etc is not where the module is expecting it to be. Unfortunately now I no longer have access to Hive there’s not much I can do to look into this. Sorry…

      posted in Troubleshooting
      M
      mongo116
    • RE: Show temperatures from zipabox controller

      @andyb said in Show temperatures from zipabox controller:

      zipabox z-wave controller

      Hi, you could take the MMM-Hive module I created and modify it to your needs, It looks as though the api documentation is available here. I’ve only had a quick look, but it uses JSON so shouldn’t be too hard to change.

      posted in Requests
      M
      mongo116
    • RE: Any MMM-Hive Users that can help, please?

      @Damian Hi. I will give it a read and check the code. I just had a quick look and I may just be able to update the requests etc. Might be a bugger to test, but leave this with me and I will take a look.
      Thanks…

      posted in Troubleshooting
      M
      mongo116
    • RE: Any MMM-Hive Users that can help, please?

      @Damian I think I am making some headway into this issue. I will spend a bit of time when I can and hopefully get a new version out soonish

      Cheers

      posted in Troubleshooting
      M
      mongo116
    • RE: Any MMM-Hive Users that can help, please?

      I have got the temperature showing now (borrowed a hive login for testing) and I am looking at now adding whether hot water is on or off, and also a battery icon for the thermstat. I cannot for the life of me remember how to use github, but I will get these changes made, tested and update the module. No telling how long I will take, but it shouldn’t take too long - just need to find some time to finish coding and tidying it up.

      Thanks

      posted in Troubleshooting
      M
      mongo116
    • RE: Any MMM-Hive Users that can help, please?

      Looks like British Gas have just changed the way the api works, so there are changes to be made, not loads, but will take a bit of time. Got to fit it around DIY!

      posted in Troubleshooting
      M
      mongo116
    • RE: Any MMM-Hive Users that can help, please?

      @Damian Hi, I’ve updated https://github.com/flick116/MMM-Hive, do you want to try it and let me know. I’ve added some test bits and bobs, but if you haven’t got the settings then these shouldn’t show up.

      posted in Troubleshooting
      M
      mongo116
    • RE: Any MMM-Hive Users that can help, please?

      I was just testing and realised that when I was seeing the target temperature, it was when the system was in boost mode. So when not in boost mode, but the heating on, it’s not the same as previously, so it won’t show it’s heating. I need to look at how this is now working and update. You should see current temperature correctly using he updated code, but not target unless boost is on.

      posted in Troubleshooting
      M
      mongo116
    • RE: Any MMM-Hive Users that can help, please?

      @Damian I didn’t make any changes to the config really, apart from adding some other settings, but these default to false if not defined.

      Could you enable debug in the config for MMM-Hive (debug: true,) and then load the magic mirror in a browser and enable developer tools (F12). In this window, ensure Console is the selected tab and then refresh the page (it’s easier to remove all other modules). When refreshed, you should then see a load of text when the hive module loads, something like the following:

      Tue, 10 Apr 2018 14:45:16 GMT MMM-Hive received notification: INSIDE - Payload: [{“id”:“xxx”,“type”:“heating”,“sortOrder”:1,“created”:1521812393853,“parent”:“xxx”,“props”:

      If you could copy / paste the text into notepad and then search for “type”

      The bit I am interested in, is the text straight after “type” - so in the above example it’s “heating”

      I am using the “type” to determine whether to pull back data for heating or hot water so if yours is named differently that is probably the issue. There might be more than one instance of “type”, so if you could let me know all.

      Hopefully it’s just that and I can then add a new setting so you can choose the name.

      Thanks

      posted in Troubleshooting
      M
      mongo116
    • 1 / 1