• 1 Votes
    4 Posts
    794 Views
    jkandasaJ
    @fsgrazzutti Currently I am actively working in V2. I will have a look in to this soon and update you
  • NODEMANAGER OTA CONFIGURATION per java script

    5
    0 Votes
    5 Posts
    371 Views
    T
    @jkandasa Thanks a lot for the example. The delay doesn't matter. I had already found a solution. But I didn't think this was good enough to publish. I take advantage of the fact that the mysensors nodes do not necessarily need a request message for the Ota function. So I got along with mcApi.sensor (). SendPayload (). When I have time again I'll try your better solution.
  • How to play an mp3 file on condition?

    2
    0 Votes
    2 Posts
    350 Views
    jkandasaJ
    @skywatch You can follow this example
  • How to open a webpage / place a http request?

    4
    1 Votes
    4 Posts
    19k Views
    J
    Thanks very much for your reply with the streamlined version! To be honest, I now had to settle for calling the actions like this var command="echo 'b8:27:eb:b7:29:4a mixer volume -2' | nc -q0 192.168.1.2 9090" mcApi.osCommandExecuter().executeLinuxCommand(command); Meaning, the command get's "netcat'ed" to the server - is there just by chance a comparable API call as well? Thanks again very much for your work, Joost
  • Script Pause Keywords

    2
    0 Votes
    2 Posts
    636 Views
    jkandasaJ
    @faelanstevie I guess this is irrelevant to MyController scripts
  • Using Automation Server

    2
    0 Votes
    2 Posts
    837 Views
    jkandasaJ
    @faelanstevie Is the question related to MyController.org server?
  • Simple custom button

    5
    0 Votes
    5 Posts
    1k Views
    H
    @jkandasa Thanks for the tip. I'm not familiar with AngularJS. I will try to learn a bit about this and make something!
  • Location Name

    2
    0 Votes
    2 Posts
    1k Views
    jkandasaJ
    @naguraob Sure, I will fix this. Kindly create an issue to track this. So that I won't forget
  • Custom Output to display

    12
    0 Votes
    12 Posts
    4k Views
    D
    Thank you thank you! you are the best!
  • 1 Votes
    5 Posts
    3k Views
    T
    @jkandasa Just tested and it works like a charm!!! Really great examples, that are easy to implement. Mycontroller was already great, now it is even better!!. Thank you!!
  • Monitoring electricity consumption

    6
    0 Votes
    6 Posts
    3k Views
    jkandasaJ
    @rjad Ok,I tested this but couldn't get it to work. Presumably I didn't follow the instructions properly. When you do changes on HTML additional headers, you have to reload the browser. I hope you did this. With some work it could be better, so for example, I lose the hover information, I had trouble getting two of these plots on one dashboard with different bins. For hover information, I do nit get any clue. As I never worked directly with the D3 chart. For the multiple of charts on same dashboard issue, you might have chart id issue. Maybe because of this one, <canvas id="simpled3" style="display: none;"></canvas>
  • 0 Votes
    4 Posts
    3k Views
    V
    @jkandasa I'm using the 0.0.3.Final-SNAPSHOT - does this mean I dont need to create a script like above but find a rule/condition about battery levels of nodes? If so, I cannot find that, but I am currently using your script example, which works, but is of course a little cumbersome compared to another option of using a node's battery level directly somewhere in the rules panel...
  • Sunrize sunset forward

    11
    0 Votes
    11 Posts
    5k Views
    L
    @adulovic Hi, As jkandasa said, you should probably download the last SNAPSHOT version again. Your error message seems to be because you don't have the SNAPSHOT with his modification. As for the step-by-step i can try to explain the way i did it: First, i'm using a Raspberry Pi Zero for the controller with an up-to-date Raspbian distro. I have the last 0.0.3.Final-SNAPSHOT of MyController.org(at least the one from 24 days ago with jkandasa's modification). I'm using the 2.0.0 version of MySensors (soon to be updated to the last version). On MyControler.org i created 2 UID tags (sunrize and sunset) which point to 2 dummy sensors (child of a MySensors node). Then i have the java script which send the sunrize and sunset value to this UID tags: var myImports = new JavaImporter(java.io, java.lang, java.util); with(myImports) { //Get Sunrise/Sunset details var locSettings = mcApi.utils().getServerLocationSettings(); //Get sensor variables for sunrise and sunset var sensorSunRise = mcApi.uidTag().getByUid("sunrize").getSensorVariable(); var sensorSunSet = mcApi.uidTag().getByUid("sunset").getSensorVariable(); //Update timezone offset values (by default gives GMT timestamp values) //sensorSunRise.value = locSettings.sunriseTime + locSettings.timezoneOffset; //sensorSunSet.value = locSettings.sunsetTime + locSettings.timezoneOffset; var dtr = new Date(locSettings.sunriseTime); sensorSunRise.value = dtr.getHours() + ':' + dtr.getMinutes(); var dts = new Date(locSettings.sunsetTime); sensorSunSet.value = dts.getHours() + ':' + dts.getMinutes(); //Send/Update thise sensorvariable with updated value mcApi.sensor().sendPayload(sensorSunRise); mcApi.sensor().sendPayload(sensorSunSet); } On MyControler.org i created an Operation to execute the java script and a Timer to start the Operation before Sunrize every day. For your java script you just need to add an if statement comparing the sunrize and sunset values with the current time, and you should be good.
  • AC/Heatpump control

    11
    0 Votes
    11 Posts
    5k Views
    K
    Hi @jkandasa Sorry for not posting the feedback yet... But yes - It works like a charm. And the timestamp solution seems to do what its supposed to
  • Temperature MIN/MAX/AVG

    3
    0 Votes
    3 Posts
    2k Views
    T
    Wonderful !!! Option 1 works for me like a charm ! Many thanks, MyController is the best
  • Timers and scripts

    15
    1 Votes
    15 Posts
    8k Views
    jkandasaJ
    @imedia I guess it should be a bug with recent pi4j driver. Let me setup serial gateway locally and narrow down the issue. Thank you so much for your support!
  • Control/display operations via script

    1
    0 Votes
    1 Posts
    3k Views
    No one has replied
  • Introduction

    1
    0 Votes
    1 Posts
    2k Views
    No one has replied

1

Online

560

Users

525

Topics

3.4k

Posts