# Help Processing data

**URL:** https://discourse.nodered.org/t/help-processing-data/13766
**Category:** General
**Created:** [28 July 2019 06:54 UTC](https://discourse.nodered.org/t/help-processing-data/13766 "2019-07-28T06:54:01Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![rayy](https://avatars.discourse-cdn.com/v4/letter/r/f08c70/32.png) [@rayy](https://discourse.nodered.org/u/rayy)
#### Post date: [28 July 2019 06:54 UTC](https://discourse.nodered.org/t/help-processing-data/13766/1 "2019-07-28T06:54:01Z")

</div>

I have mentioned this project in another forum post but I would like to dedicate a topic for this project. This is a school project and I am using a variety of sensors connected to a chip that is cloud connected to import it's data into IBM Watson. For example I am looking at Accelerometer Z axis movement to detect a sprint. If the accel Z value exceeds a threshold value, I would like to count it as a sprint. As you can see I am also trying to implement a basic finite state machine with the accelerometer which is either in state 0 (resting) or in state 1 (sprinting). I am also using the gyroscope y axis to detect kicking of a ball during a soccer game. similar to the sprinting code it counts kicks after the value has exceeded a specific threshold value. However this is more simple since it does not need to implement a FSM. In addition to all that I would like to display the battery level which does not need to be processed unlike the other two features of my app. IF i can get some guidance how to do this I would greatly appreciate it 🙂 I have very little experience with java so please forgive my mistakes

 ![Screenshot%20(5)](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/2X/1/19fa59c3cdef93646cb98980b4dac0b79551d5d1.png)

---

<div class="post-metadata">

### Author: ![rayy](https://avatars.discourse-cdn.com/v4/letter/r/f08c70/32.png) [@rayy](https://discourse.nodered.org/u/rayy)
#### Post date: [28 July 2019 06:54 UTC](https://discourse.nodered.org/t/help-processing-data/13766/2 "2019-07-28T06:54:53Z")

</div>

I need help writing the functions to analyze the data

---

<div class="post-metadata">

### Author: ![ukmoose](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ukmoose/32/13_2.png) [@ukmoose](https://discourse.nodered.org/u/ukmoose)
#### Post date: [28 July 2019 07:00 UTC](https://discourse.nodered.org/t/help-processing-data/13766/3 "2019-07-28T07:00:31Z")

</div>

Fortunately for you Node-RED still doesn’t use Java but is based on javascript

From the debug messages be careful you always need to return a javascript object (think msg.payload)  
rather than just a number. It would be well worth reading a tutorial on javascript objects and arrays if you are unsure of those terms.

There’s also a great page in the docs about working with messages that will show you how to use the debug node to your advantage.

---

<div class="post-metadata">

### Author: ![bakman2](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bakman2/32/6207_2.png) [@bakman2](https://discourse.nodered.org/u/bakman2)
#### Post date: [28 July 2019 07:03 UTC](https://discourse.nodered.org/t/help-processing-data/13766/4 "2019-07-28T07:03:02Z")

</div>

Isn't this the same topic as you opened yesterday ??

---

<div class="post-metadata">

### Author: ![ukmoose](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ukmoose/32/13_2.png) [@ukmoose](https://discourse.nodered.org/u/ukmoose)
#### Post date: [28 July 2019 09:01 UTC](https://discourse.nodered.org/t/help-processing-data/13766/5 "2019-07-28T09:01:43Z")

</div>

@rayy please don't waste peoples time by opening duplicate posts.

---

<div class="post-metadata">

### Author: ![rayy](https://avatars.discourse-cdn.com/v4/letter/r/f08c70/32.png) [@rayy](https://discourse.nodered.org/u/rayy)
#### Post date: [29 July 2019 06:50 UTC](https://discourse.nodered.org/t/help-processing-data/13766/6 "2019-07-29T06:50:05Z")

</div>

sorry i just need help because i am completely lost

---

<div class="post-metadata">

### Author: ![krambriw](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/krambriw/32/5429_2.png) [@krambriw](https://discourse.nodered.org/u/krambriw)
#### Post date: [29 July 2019 08:04 UTC](https://discourse.nodered.org/t/help-processing-data/13766/7 "2019-07-29T08:04:35Z")

</div>

If this is a school project, did they just throw Node-RED into your knees? Without any training class of the fundamentals? Or did you just pick up Node-RED yourself? In any case, you do not, or should not, purchase & drive a car BEFORE you passed the tests and received the drive license 😉

Anyway, I suppose the whole idea with the school project is that your are supposed to learn something from it, rather than us helping you to take shortcuts???

Publish & share your project so people willing to cheat, sorry, help, can study what you have done so far

---

<div class="post-metadata">

### Author: ![ukmoose](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ukmoose/32/13_2.png) [@ukmoose](https://discourse.nodered.org/u/ukmoose)
#### Post date: [29 July 2019 08:20 UTC](https://discourse.nodered.org/t/help-processing-data/13766/8 "2019-07-29T08:20:36Z")

</div>

PLEASE do that on the OTHER thread [IBM Watson Sensor Support](https://discourse.nodered.org/t/ibm-watson-sensor-support/13738)

---

<div class="post-metadata">

### Author: ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)
#### Post date: [29 July 2019 08:36 UTC](https://discourse.nodered.org/t/help-processing-data/13766/9 "2019-07-29T08:36:32Z")

</div>


