-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Activities and the related task and event. #10
Comments
sorry for the delay in replying. the second question is easy to answer: if the steward has an activity defined, it is responsible for carrying out the task when the event occurs. the question is what is going on, and this is the first question you ask. i am looking into the issue now. what you are doing in the code looks right to me, so this is a bit perplexing. |
Ok the answer to the second question is good news, and I was sure that is how it's supposed to be. The first question, it seems that the problem is centred around that event ID. |
i am unable to reproduce what you are seeing. however, i found a bug in my client and the steward, which his now fixed. please run the latest version of the steward. please also get the latest version of this library and compare test.js to your javascript file. you will see on line 204, i changed:
make that change to your client and try it. if it still fails, then please email me your javascript file so i can test what you are using. sorry! |
Great, it is at least good news that you found bugs. I will update now, I follow with some debugging. If there is no luck, I shall post here again, and also email you my file. Thank you so much |
Mr. Rose I have been attempting to update Steward for a while now.
Eventually it ends with this error:
I'm not sure what to make of this. |
sorry for the (usual) delay in replying. i don't understand how the superuser (root) can get an EACCES error, since the root is supposed to be able to access everything. stackoverflow has a number of suggestions at http://stackoverflow.com/questions/16151018/npm-throws-error-without-sudo that may help. since i don't know the details of your installation, i can't really assist more than that. sorry! |
Thanks for your response I think I have the access problems solved, thanks for that link. A few other people have had the same issue with root user being denied permission. After that, it seems as though the install completes successfully. Although I had to run through it 2 or three times, the final run through had only two errors.
So ignoring these errors, I tried to run the steward and view the log with "./run.sh" and I got this:
Apart from running the install again (which is what I'm doing now) I can't figure out why I'm all of a sudden having these problems. It was never such an issue to perform an upgrade in the past. Any thoughts or help is appreciated. |
Hi Mr. Rose. I'm slowly nearing a deadline in which I would like to demonstrate these functions. Might you be able to give me an estimate on when you would be able to handle this? |
hi. sorry for the delay. i am no longer able to contribute to the thing system or it's repos. there simply aren't enough cycles available to me. an announcement has been made on the community page, https://plus.google.com/communities/113042377519941328693 you may be able to get someone there to help. i just no longer have enough time, sorry.
|
I sit now with what looks like a complex problem.
I am trying to use an Event, a Task and an Activity to create an automated control loop.
First I'll explain how the event, task and activity are created and the Steward responses, then I'll explain the issues.
The event was created and got this response from the Steward:
The Task was created and got this response from the Steward:
And the Activity was created and got this response from the Steward:
The first problem is in Thing-client.
The Observe request is working correctly, but for some reason I get an invalid event ID error from the Steward after thing-client sends the report information.
From receiving the observe request up until the error message looks like this:
The Observe and Report sections of my code (i.e. test.js) that interacts with thing-client.js looks like this:
The second problem is that when I create motion so that thing-client registers the 'motion detected' variable, the activity does not carry out the task.
I'm not sure if this is the duty of the Steward to handle, or if I should be adding to my test.js file to carry out the activity...?
Your help is always greatly appreciated.
Regards
Guy
The text was updated successfully, but these errors were encountered: