• Categories
    • Recent
    • Tags
    • Popular
    • Register
    • Login
    1. Home
    2. Emenike
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 1
    • Posts 30
    • Groups 0

    Emenike

    @Emenike

    1
    Reputation
    90
    Profile views
    30
    Posts
    0
    Followers
    0
    Following
    Joined
    Last Online
    Age 53
    Location Abuja, Nigeria

    Emenike Unfollow Follow

    Best posts made by Emenike

    • RE: Weatherdata structure question

      @jkandasa I thought I was wrong, perhaps you stopped reading at some point, but I had to go back and read some more, and I will do a short summary here to save your time from reading it all over again.

      From all indications the Wundergroung community are a little bit disturbed by IBM who took over the crowd sourcing data service and now run it solely as a Business. The new management has given notice to stop serving free data and are now at a crossroads with their personal weather station PWS owners who upload these small packets of data to them for free (and have been doing so for over many many years.). The new management has committed to allow these PWS data suppliers to continue to enjoy free and easy access to their own data, but not the entire crowd sourced data - They have created an alternate purpose built service for this, albeit, at a small fee - $200/month.

      From my own perspective, the service is closed for good to people like us, thinkerers and hobbyist who only want to read a tiny snippet of that record. As non-commercial users (including educationist) one would expect the WU to leave a window open, but their deadline will be in a few more days, and at this time, they have not yet provided any other access that is cheap enough for poor ppl like me, so I will say this door is shut for real.
      In summary, below are the two comments that capture the essence of the ongoing fight. I wont hold my breath on this one, i am looking for an alternative.
      WU Closing.png

      posted in Developers Zone
      EmenikeE
      Emenike

    Latest posts made by Emenike

    • RE: Frustrated Newbie - Help with Nodes and Sensors

      Sorry @jkandasa, I have been on the move travelled for the Christmas Holiday. so I am away from my nodes and sensors. But I have the MYC on my laptop. so here are the data you requested for.
      UID2.png

      and the Variables - Variable Repisotory.png

      posted in Troubleshooting
      EmenikeE
      Emenike
    • RE: Frustrated Newbie - Help with Nodes and Sensors

      What am I doing wrong? I am posting the Nodes and Sensors just incase... Sensors Script.png

      posted in Troubleshooting
      EmenikeE
      Emenike
    • RE: Frustrated Newbie - Help with Nodes and Sensors

      Hello @jkandasa
      I have been out of town, haven't touched MYC for a while. Just popped intoday and tried my hands on the script. Ran it after creating the Operation and the Timmer to trigger and run it. But it wont tun. I get an error ```

      {
        "errorMessage": "TypeError: Cannot get property \"status\" of null in <eval> at line number 8"
      }
      

      Here is the JS script that I edited for 8 valves

      var myImports = new JavaImporter(java.io, java.lang, java.util);
      
      with(myImports) {
        
        var LoopThroughValves = mcApi.variable().get("Status");
      
        //Check already running?
        if(LoopThroughValves.status !== 'running'){
      
          //Update as running
          valveStatus.value = "running";
          mcApi.variable().update(valveStatus);
          mcApi.logger().debug("Loop Through Valve Script Triggered...");
          
          var masterValve = mcApi.uidTag(0).getByUid("All Zones").getResource();
          var valve01 = mcApi.uidTag().getByUid("Zone 1").getResource();
          var valve02 = mcApi.uidTag().getByUid("Zone 2").getResource();
          var valve03 = mcApi.uidTag().getByUid("Zone 3").getResource();
          var valve04 = mcApi.uidTag().getByUid("Zone 4").getResource();
          var valve05 = mcApi.uidTag().getByUid("Zone 5").getResource();
          var valve06 = mcApi.uidTag().getByUid("Zone 6").getResource();
          var valve07 = mcApi.uidTag().getByUid("Zone 7").getResource();
          var valve08 = mcApi.uidTag().getByUid("Zone 8").getResource();
      
          var delayTime = 1000 * 60 * 10; //10 minutes
        
          //Turn ON master valve and Valve01
          masterValve.value = "1"; //Update master valve ON state
          mcApi.sensor().sendPayload(masterValve); //sensd state
          valve01.value = "1"; //Update valve01 ON state
          mcApi.sensor().sendPayload(valve01); //sensd state
            
          //Update valve01 is running
          valveStatus.value2 = "value01";
          mcApi.variable().update(valveStatus);
          //Wait time
          Thread.sleep(delayTime);
        
          //Turn OFF valve01 and turn ON valve02
          valve01.value = "0"; //Update valve01 OFF state
          mcApi.sensor().sendPayload(valve01); //send state
          valve02.value = "1"; //Update valve02 ON state
          mcApi.sensor().sendPayload(valve02); //send state
          
          //Update valve02 is running
          valveStatus.value2 = "value02";
          mcApi.variable().update(valveStatus);
          
          //Wait time
          Thread.sleep(delayTime);
        
          //Turn OFF valve02 and turn ON valve03
          valve02.value = "0"; //Update valve02 OFF state
          mcApi.sensor().sendPayload(valve02); //send state
          valve03.value = "1"; //Update valve03 ON state
          mcApi.sensor().sendPayload(valve03); //send state
        
          //Update valve03 is running
          valveStatus.value2 = "value03";
          mcApi.variable().update(valveStatus);
        
          //Wait time
          Thread.sleep(delayTime);
        
          //Turn OFF valve03 and turn ON valve04
          valve03.value = "0"; //Update valve03 OFF state
          mcApi.sensor().sendPayload(valve03); //send state
          valve04.value = "1"; //Update valve04 ON state
          mcApi.sensor().sendPayload(valve04); //send state
        
          //Update valve04 is running
          valveStatus.value3 = "value04";
          mcApi.variable().update(valveStatus);
        
          //Wait time
          Thread.sleep(delayTime);
      
          //Turn OFF valve04 and turn ON valve05
          valve04.value = "0"; //Update valve04 OFF state
          mcApi.sensor().sendPayload(valve04); //send state
          valve05.value = "1"; //Update valve05 ON state
          mcApi.sensor().sendPayload(valve05); //send state
        
          //Update valve05 is running
          valveStatus.value4 = "value05";
          mcApi.variable().update(valveStatus);
        
          //Wait time
          Thread.sleep(delayTime);
      
          //Turn OFF valve05 and turn ON valve06
          valve05.value = "0"; //Update valve05 OFF state
          mcApi.sensor().sendPayload(valve05); //send state
          valve06.value = "1"; //Update valve06 ON state
          mcApi.sensor().sendPayload(valve06); //send state
        
          //Update valve06 is running
          valveStatus.value5 = "value06";
          mcApi.variable().update(valveStatus);
        
          //Wait time
          Thread.sleep(delayTime);
      
          //Turn OFF valve06 and turn ON valve07
          valve06.value = "0"; //Update valve06 OFF state
          mcApi.sensor().sendPayload(valve06); //send state
          valve07.value = "1"; //Update valve07 ON state
          mcApi.sensor().sendPayload(valve07); //send state
        
          //Update valve06 is running
          valveStatus.value6 = "value07";
          mcApi.variable().update(valveStatus);
        
          //Wait time
          Thread.sleep(delayTime);
      
      
          //Turn OFF valve07 and turn ON valve08
          valve07.value = "0"; //Update valve07 OFF state
          mcApi.sensor().sendPayload(valve07); //send state
          valve08.value = "1"; //Update valve08 ON state
          mcApi.sensor().sendPayload(valve08); //send state
        
          //Update valve07 is running
          valveStatus.value7 = "value08";
          mcApi.variable().update(valveStatus);
        
          //Wait time
          Thread.sleep(delayTime);
      
          //Turn OFF valve08 and turn OFF master valve
          valve08.value = "0"; //Update valve08 OFF state
          mcApi.sensor().sendPayload(valve08); //send state
          masterValve.value = "0"; //Update master valve OFF state
          mcApi.sensor().sendPayload(masterValve); //send state
          
          //Update not running
          valveStatus.value = "stopped";
          valveStatus.value2 = "-";
          mcApi.variable().update(valveStatus);
          mcApi.logger().debug("Loop Through Valve Script Completed...");
        }else{
          mcApi.logger().warn("Loop Through Valve Script is already running...");
        }
      }
      
      posted in Troubleshooting
      EmenikeE
      Emenike
    • RE: JSON parser

      @skywatch @jkandasa

      This sounds like the solution to my weather issues. I was looking at OpenWeather and Yahoo until someone mentioned MetCheck... So @skywatch can you please tell me the procedure to pull weather information for MyC via metcheck. Is it free? Do I need to obtain a Key? Where do I append the endpoint in MyC? Can you show me a screengrab of your setup? Thanks in advance.

      posted in Developers Zone
      EmenikeE
      Emenike
    • RE: Weatherdata structure question

      @skywatch so how do I create an end point to use this in MyController?

      posted in Developers Zone
      EmenikeE
      Emenike
    • RE: Weatherdata structure question

      @skywatch Please can you create a link to the free weather service you are refereeing to. Metcheck. Thanks

      posted in Developers Zone
      EmenikeE
      Emenike
    • RE: Frustrated Newbie - Help with Nodes and Sensors

      I have created the UID Tags... See below, did I do it right?UID Tags.png

      I then tried to create the JS script as described in your old reference you supplied... but I got an error.

      RunQuery Error.png

      What are I doing wrong?

      posted in Troubleshooting
      EmenikeE
      Emenike
    • RE: Frustrated Newbie - Help with Nodes and Sensors

      Thanks @jkandasa you are awesome support. I see the requestTime() function call in the sketch, but where in MyController do I add the node code?

      void receiveTime(unsigned long _timestamp){
         // do actions with received time
      }
      
      posted in Troubleshooting
      EmenikeE
      Emenike
    • RE: Weatherdata structure question

      @jkandasa I thought I was wrong, perhaps you stopped reading at some point, but I had to go back and read some more, and I will do a short summary here to save your time from reading it all over again.

      From all indications the Wundergroung community are a little bit disturbed by IBM who took over the crowd sourcing data service and now run it solely as a Business. The new management has given notice to stop serving free data and are now at a crossroads with their personal weather station PWS owners who upload these small packets of data to them for free (and have been doing so for over many many years.). The new management has committed to allow these PWS data suppliers to continue to enjoy free and easy access to their own data, but not the entire crowd sourced data - They have created an alternate purpose built service for this, albeit, at a small fee - $200/month.

      From my own perspective, the service is closed for good to people like us, thinkerers and hobbyist who only want to read a tiny snippet of that record. As non-commercial users (including educationist) one would expect the WU to leave a window open, but their deadline will be in a few more days, and at this time, they have not yet provided any other access that is cheap enough for poor ppl like me, so I will say this door is shut for real.
      In summary, below are the two comments that capture the essence of the ongoing fight. I wont hold my breath on this one, i am looking for an alternative.
      WU Closing.png

      posted in Developers Zone
      EmenikeE
      Emenike
    • RE: Weatherdata structure question

      Hello @njbuch I have just completed a MySensors Project for an 8 valve water sprinkler system, it requires Wunderground App to run, however, I just noticed that as at today, the service no longer exists for free. So I have opted for another alternative, Open Weather Services. I have obtained a key.

      Do you think I have set it up right? Do you have other/better alternatives from open weather data that are MyController friendly? See a screen shot of my setup.0_1543961255916_Open weather.png

      posted in Developers Zone
      EmenikeE
      Emenike