Navigation

    • Register
    • Login
    • Search
    • OpenHardware.io
    • Categories
    • Recent
    • Tags
    • Popular
    1. Home
    2. jgrieco
    • Profile
    • Following
    • Followers
    • Topics
    • Posts
    • Best
    • Groups

    jgrieco

    @jgrieco

    0
    Reputation
    4
    Posts
    268
    Profile views
    1
    Followers
    0
    Following
    Joined Last Online

    jgrieco Follow

    Best posts made by jgrieco

    This user hasn't posted anything yet.

    Latest posts made by jgrieco

    • RE: Injecting a Timestamp in Node Red

      Thanks! I actually figured out the javascript and made a function exactly like this one. I am using the serial port just to receive data currently, so i only have one flow. I am using it with relatively default settings:

      [{"id":"7fc64f75.67286","type":"tab","label":"Flow 2","disabled":false,"info":""},{"id":"1f992795.acb908","type":"serial in","z":"7fc64f75.67286","name":"Seral Port","serial":"d11eb944.68b128","x":60,"y":620,"wires":[["19c6b2bb.f878dd"]]},{"id":"19c6b2bb.f878dd","type":"function","z":"7fc64f75.67286","name":"Get_Datetime","func":"var now = new Date()\nvar x = now.toLocaleString()\n\n\nmsg.datetime = x\n\nreturn msg;\n\n","outputs":1,"noerr":0,"x":260,"y":280,"wires":[["1197d270.3caa9e"]]},{"id":"1197d270.3caa9e","type":"function","z":"7fc64f75.67286","name":"Merge_datetime and payload","func":"msg.payload = msg.datetime+ ' ;' + msg.payload\nreturn msg;","outputs":1,"noerr":0,"x":510,"y":280,"wires":[["e44f08e9.aae3f8"]]},{"id":"e44f08e9.aae3f8","type":"file","z":"7fc64f75.67286","name":"","filename":"/home/pi/Desktop/dataNodered_nov5.csv","appendNewline":false,"createDir":false,"overwriteFile":"false","x":840,"y":280,"wires":[[]]},{"id":"d11eb944.68b128","type":"serial-port","z":"","serialport":"/dev/ttyACM0","serialbaud":"115200","databits":"8","parity":"none","stopbits":"1","newline":"\\n","bin":"false","out":"char","addchar":false,"responsetimeout":"10000"}]
      

      I am about to begin to look into sending my nodes data. I want to find a way for them to sync up their data transmissions, and will will be looking into how to send them a variable with a customized sleep time in order to align their transmissions. How have you send data to the nodes via node red in the past? Will I run into trouble once i create a second data flow?

      posted in Node-RED
      jgrieco
      jgrieco
    • Injecting a Timestamp in Node Red

      I'm wondering if anyone has been able to use node red to inject a timestamp and join it to each incoming message from a serial gateway. My end goal is to output a .csv file with timestamped sensor values, so I want to attach a timestamp immediately upon receiving each message.
      I am having trouble with the msg. type that is required for the join node, as well as being able to trigger the inject timestamp node upon receiving a message from the serial port.

      Thanks in advance!

      Joel

      posted in Node-RED
      jgrieco
      jgrieco
    • MyController as a Data Logger

      Hi everyone,

      I am new to MyController and My Sensors, but I have been working at it for a while and I have just got MyController up and running for a network of sensor nodes. I would like to configure it in such a way where I can log all sensor data as a time stamped in a .csv or some kind of similar database format. I am wondering if somebody can point me in the right direction or confirm in it is possible to do this with MyController? Is this something that can be accomplished with a python script? (if so, where might i go to learn more about those?) I have figured out how to log the raw data from the gateway itself, but i would like the functionally of MyController as well, to keep an eye on the nodes etc.

      Here are some more specifics of my sensor system:

      Goal: Create a data logger for 10 temperature sensors that will be spread out across a house. Data is being used for a research project, and will need to be in time stamped format so it can be analyzed in python programs in real time, or afterwards.

      Sensors: Currently one temperature sensor per node
      Nodes: Arduino pro mini with NRF24 radio module
      Gateway: Arduino Uno configured as a serial gateway
      Controller: Raspberry Pi 3 running MyController

      Thanks in advance!

      Joel

      posted in MyController.org
      jgrieco
      jgrieco
    • RE: Raspberry pi 3 both Gateway and Controller

      I am trying to implement this exact solution. I am wondering if you have an specifics for how you connected Mysensors gateway code and Mycontroller within the same raspberry pi. Did you set up my sensors as a serial or Ethernet connection just configured Mycontroller to read off of the same port? Or is there a more complicated solution to connecting the two programs locally within the pi? I have tried this approach and cannot get the gateway to go 'up' in the Mycontroller software. I think i may be missing something about how the two programs are connected so even an explanation about how the data is flowing would help me out a ton! Thanks in advance.

      posted in Development
      jgrieco
      jgrieco