Hi J,
I did the update and the python script worked like a charm.
If you have time pleas post the JavaScript version.
Thank you!
Hi J,
I did the update and the python script worked like a charm.
If you have time pleas post the JavaScript version.
Thank you!
Hi, I have python installed and have created UDI tags,
and the UDIs are there
Reason I use Python is because its the language I'm most comfortable with. But i'll do as you say if you pleas can convert the code to JavaScript to get me started.
Much appreciated.
/goran
Hi again,
Sorry to disturb but I get the following error when i try to manually run the script.
{
"errorMessage": "AttributeError: 'org.mycontroller.standalone.db.tables.UidTag' object has no attribute 'getResource' in <script> at line number 3"
}
Sure I don't have to import mcAPI to python or something?
I have created the UDItags
Regards
Goran
Hi, what I want is when the humidity (humidity sensor value) is under a level to have my humidifier (relay) to switch on for 10 sec then switch of for 30 sec until the humidity have reached its threshold.
Think I have to use two UDItag for humidity sensor and relay state.
Then use one variable with two keys. on time and off time.
Humidity control in a greenhouse is difficult that's why i want to use variables to easily be able to adjust on and off intervals.
Kindest regards
Goran
I'm struggling with humidity in my greenhouse as well. Please help me with a python compare script example that reads a sensor value and a sensor state, then evaluates them and returns true or false. To be used as a compare script for a rule.
Regards
Goran