These are chat archives for CommonGarden/Grow-IoT

31st
Jul 2016
Josh Fisher
@cloudzombie
Jul 31 2016 16:54
Let me. Post up the error I'm getting trying a bme 280
With an arduino
/home/josh/node_modules/Thing.js/dist/Thing.umd.js:33
      throw new TypeError("Super expression must either be null or a function,
            ^
TypeError: Super expression must either be null or a function, not object
    at inherits (/home/josh/node_modules/Thing.js/dist/Thing.umd.js:33:13)
    at /home/josh/node_modules/Thing.js/dist/Thing.umd.js:68:5
    at /home/josh/node_modules/Thing.js/dist/Thing.umd.js:291:4
    at classCallCheck (/home/josh/node_modules/Thing.js/dist/Thing.umd.js:2:83)
    at Object.<anonymous> (/home/josh/node_modules/Thing.js/dist/Thing.umd.js:5:2)
    at Module._compile (module.js:456:26)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Module.require (module.js:364:17)
Actual line is here I believe dont quite understand whats going on behind scenes.

value: multi.temperature.celsius
Jake Hartnell
@JakeHartnell
Jul 31 2016 20:12
Hmmmm... are you using this code:
// Require the Grow.js build and johnny-five library.
var GrowInstance = require('Grow.js');
var five = require('johnny-five');
var ascii = require('ascii-codes');

// Create a new board object
var board = new five.Board();

// When board emits a 'ready' event run this start function.
board.on('ready', function start() {
    var multi = new five.Multi({
        controller: "BME280"
    });

    // Create a new grow instance.
    var grow = new GrowInstance({
        host: 'IP_ADDRESS_OF_GROW-IOT_SERVER',
        port: 3000,
        name: 'BME280', // The display name for the thing.
        username: 'YOURUSERNAMEHERE', // The username of the account you want this device to be added to.
        actions: {
            temp_data: {
                name: 'Temperature sensor', 
                template: 'sensor',
                type: 'temperature',
                schedule: 'every 2 seconds',
                function: function () {
                    // // Send value to Grow-IoT
                    grow.log({
                      type: 'temperature',
                      value: multi.temperature.celsius
                    });
                }
            },
            barometric: {
                name: 'Barometric pressure sensor', 
                template: 'sensor',
                type: 'barometric',
                schedule: 'every 2 seconds',
                function: function () {
                    // // Send value to Grow-IoT
                    grow.log({
                      type: 'barometric',
                      value: multi.barometer.pressure
                    });
                }
            },
            humidity: {
                name: 'Barometric pressure sensor', 
                template: 'sensor',
                type: 'humidity',
                schedule: 'every 2 seconds',
                function: function () {
                    // // Send value to Grow-IoT
                    grow.log({
                      type: 'humidity',
                      value: multi.hygrometer.relativeHumidity
                    });
                }
            }
        }
    });
});
Josh Fisher
@cloudzombie
Jul 31 2016 20:13
Yes
Jake Hartnell
@JakeHartnell
Jul 31 2016 20:13
Have to ask a few annoying questions.
Josh Fisher
@cloudzombie
Jul 31 2016 20:13
Lol.
Not annoying.
Jake Hartnell
@JakeHartnell
Jul 31 2016 20:14
Can you show me the package.json file?
What version of Grow.js and Thing.js are you using?
Josh Fisher
@cloudzombie
Jul 31 2016 20:16

"name": "Grow-IoT",
  "version": "0.1.5",
  "description": "A meteor application for the Internet of Living things.",
  "repository": {
    "type": "git",
    "url": "https://github.com/CommonGarden/Grow-IoT"
  },
  "scripts": {
    "lint": "eslint ."
  },
  "keywords": [
    "IoT",
    "Internet of Things",
    "thing"
  ],
  "author": "CommonGarden",
  "license": "BSD-2-Clause",
  "bugs": {
    "url": "https://github.com/CommonGarden/Grow-IoT/issues"
  },
  "homepage": "https://github.com/CommonGarden/Grow-IoT",
  "dependencies": {
    "Thing.js": "^0.2.3",
    "johnny-five": "^0.9.61",
    "meteor-later": "^1.2.0",
    "moment": "^2.13.0",
    "particle-io": "^0.12.0"
  },
  "devDependencies": {
    "eslint": "^2.11.1",
    "eslint-plugin-meteor": "^3.6.0"
  }
}
That is Grow IoT package.json
Lets see if I can't find the grow.js one by myself real quick
Jake Hartnell
@JakeHartnell
Jul 31 2016 20:17
Ok, also are you using voodoo spark? And particle-io?
https://github.com/rwaldron/particle-io#getting-started
Josh Fisher
@cloudzombie
Jul 31 2016 20:17
Not yet no
Didn't even get that far on this
I only got the particle and voodoo working seperately
Where I could do the CURL command and get a "true" return arg
One thing I break at a time
 {
  "_args": [
    [
      "Grow.js",
      "/home/josh/Develop/Grow-IoT"
    ]
  ],
  "_from": "Grow.js@*",
  "_id": "Grow.js@0.2.8",
  "_inCache": true,
  "_location": "/Grow.js",
  "_nodeVersion": "6.2.1",
  "_npmOperationalInternal": {
    "host": "packages-16-east.internal.npmjs.com",
    "tmp": "tmp/Grow.js-0.2.8.tgz_1467748318147_0.6944203104358166"
  },
  "_npmUser": {
    "email": "Jake@commongarden.org",
    "name": "common-garden"
  },
  "_npmVersion": "3.9.3",
  "_phantomChildren": {
    "meteor-later": "1.2.0",
    "underscore": "1.8.3"
  },
  "_requested": {
    "name": "Grow.js",
    "raw": "Grow.js",
    "rawSpec": "",
    "scope": null,
    "spec": "*",
    "type": "range"
  },
  "_requiredBy": [
    "#USER"
  ],
  "_resolved": "https://registry.npmjs.org/Grow.js/-/Grow.js-0.2.8.tgz",
  "_shasum": "bdb5e8ab8e5ee17bf2d6c79174bb261e66e47cea",
  "_shrinkwrap": null,
  "_spec": "Grow.js",
  "_where": "/home/josh/Develop/Grow-IoT",
  "author": {
    "name": "CommonGarden"
  },
  "bugs": {
    "url": "https://github.com/CommonGarden/Thing.js/issues"
  },
  "dependencies": {
    "Thing.js": "^0.2.5",
    "ascii-codes": "^1.0.0",
    "ddp": ">=0.11.0",
    "ddp-ejson": ">=0.8.1-3",
    "johnny-five": "^0.9.49",
    "json-stringify-safe": "^5.0.1",
    "meteor-later": "^1.2.0",
    "node-rules": "^3.0.3",
    "regression": "^1.2.1",
    "rsvp": "^3.2.1",
    "underscore": ">=1.8.3",
    "validate": "^3.0.1"
  },
  "description": "Easily create new IoT devices and connect them to a Grow-IoT instance.",
  "devDependencies": {
    "ambient-attx4": "^0.2.8",
    "babel-eslint": "^6.0.4",
    "babel-preset-es2015": "^6.9.0",
    "babel-preset-es2015-rollup": "^1.1.1",
    "babel-register": "^6.9.0",
    "babelrc-rollup": "^1.1.0",
    "chai": "^3.5.0",
    "climate-si7020": "^0.1.1",
    "eslint": "^2.11.1",
    "mocha": "^2.5.3",
    "mr-doc-theme-cayman": "^1.4.1",
    "rollup": "^0.31.2",
    "rollup-plugin-babel": "^2.5.1",
    "source-map-support": "^0.4.0"
  },
  "directories": {},
  "dist": {
    "shasum": "bdb5e8ab8e5ee17bf2d6c79174bb261e66e47cea",
    "tarball": "https://registry.npmjs.org/Grow.js/-/Grow.js-0.2.8.tgz"
  },
  "files": [
    "dist",
    "lib"
  ],
  "gitHead": "51ff2285e7f8d8efd054da34b333650a694c283a",
  "homepage": "https://github.com/CommonGarden/Thing.js",
  "installable": true,
  "jsnext:main": "dist/Grow.es6.js",
  "keywords": [
    "Internet of Things",
    "IoT",
    "thing"
  ],
  "license": "MIT",
  "main": "dist/Grow.umd.js",
  "maintainers": [
    {
      "name": "common-garden",
      "email": "Jake@commongarden.org"
    }
  ],
  "name": "Grow.js",
  "optionalDependencies": {},
  "repository": {
    "type": "git",
    "url": "git+https://github.com/CommonGarden/Thing.js.git"
  },
  "scripts": {
    "build": "rollup -c",
    "prebuild": "eslint lib test",
    "prepublish": "npm test",
    "pretest": "npm run build",
    "test": "mocha",
    "watch": "rollup -c -w"
  },
  "version": "0.2.8"
}
Jake Hartnell
@JakeHartnell
Jul 31 2016 20:18
All part of the process....
Josh Fisher
@cloudzombie
Jul 31 2016 20:18
Their is Grow.Js package.json
Jake Hartnell
@JakeHartnell
Jul 31 2016 20:19
Yeah, that's ok. Can you run the BME280 code with an arduino?
Josh Fisher
@cloudzombie
Jul 31 2016 20:19
yea
Jake Hartnell
@JakeHartnell
Jul 31 2016 20:19
Ah, so we're in particle territory then....
Josh Fisher
@cloudzombie
Jul 31 2016 20:20
Serial monitor output is fine, so its wired up
NO NO
Let me clarify, since I am retarded
Jake Hartnell
@JakeHartnell
Jul 31 2016 20:20
I was actually trying to get my particle to work last night, but it's stuck in solid white and won't let me connect to it.
Josh Fisher
@cloudzombie
Jul 31 2016 20:20
It works fine in normal Arduino sketch
and serial output
Not in J5
Or Grow.js
OH
I CAN HELP
lol
no matter WHAT you do to that Photon
Po UTIL can fix you right up
Jake Hartnell
@JakeHartnell
Jul 31 2016 20:22
YES! Thanks!
Josh Fisher
@cloudzombie
Jul 31 2016 20:22
Hold both Buttons, then let go of reset instantly
well, hold until it turns purple
Then LET go of the SETUP button, Let go of Reset instantly after holding both
Hold setup til purple
Jake Hartnell
@JakeHartnell
Jul 31 2016 20:23
Ok, I'll try tonight when I get home. In the lab working on some prototypes. Have some people from MIT visiting wednesday.
Josh Fisher
@cloudzombie
Jul 31 2016 20:23
nice!
I am actually hard at work designing PCB board for LED diodes to make my own LED lights
because fuck it
Jake Hartnell
@JakeHartnell
Jul 31 2016 20:24
YES! That's awesome!
Josh Fisher
@cloudzombie
Jul 31 2016 20:24
why not turn my hair grey in a year or less....
I have a thing....
I am kind of proud of it too....
Hot-Swappable-Spectrum TM
And being able to change Diode modules with ZERO CONNECTION CHANGES
Jake Hartnell
@JakeHartnell
Jul 31 2016 20:25
\me googles
Josh Fisher
@cloudzombie
Jul 31 2016 20:25
DOESNT EXIST
Jake Hartnell
@JakeHartnell
Jul 31 2016 20:25
Cool!
Josh Fisher
@cloudzombie
Jul 31 2016 20:25
MINE
Jake Hartnell
@JakeHartnell
Jul 31 2016 20:25
Fine.
Josh Fisher
@cloudzombie
Jul 31 2016 20:25
lol
I haven't found one at least
Not changing physical diode modules
In any meaningful fashion
oh and TM is totally joking....lol
TM TM
I like to toss it in their like a South Park nod to absurdity....
Jake Hartnell
@JakeHartnell
Jul 31 2016 20:26
: )
Josh Fisher
@cloudzombie
Jul 31 2016 20:26
This guy pissed me off https://brightagrotech.com/products/
He patented using PVC fence posts vertically
Jake Hartnell
@JakeHartnell
Jul 31 2016 20:27
Yeah, I don't like them either.
Josh Fisher
@cloudzombie
Jul 31 2016 20:27
he is reselling $8.75 RETAIL FENCE POSTS for $60 +
He has a $22,500 LED light that I am going to fucking Rick Roll
RICK
ROLL
Well he is a douche sponge.....My partner had a chance meeting with him, and showed him my system, he got butthurt I am using PVC fence posts
Jake Hartnell
@JakeHartnell
Jul 31 2016 20:28
Yeah, there are a lot of simplistic, expensive, proprietary products, that are soon going to be fucked over... and about time.
Josh Fisher
@cloudzombie
Jul 31 2016 20:29
I was like, "dude don't have a patent on logic"
I think a good product, speaks for itself, and the profit is there and worth it if the product is....
My plan is to Open source the entire thing.....
Once I have it made for myself
Jake Hartnell
@JakeHartnell
Jul 31 2016 20:29
Cool, happy to help!
Will get the forum up again one of these days.
Josh Fisher
@cloudzombie
Jul 31 2016 20:30
Oh we will get down. Don't fear.
Jake Hartnell
@JakeHartnell
Jul 31 2016 20:30
:+1:
Josh Fisher
@cloudzombie
Jul 31 2016 20:30
I do like the particle for a simple thing like LED on/off too....
Jake Hartnell
@JakeHartnell
Jul 31 2016 20:31
I think this is going to be the next big thing: https://tessel.io/
Josh Fisher
@cloudzombie
Jul 31 2016 20:31
I am retarded with applications, but if we do a light, and make it toggle-able with a photon.....
We need to make that just tight tight
Man I am all over the Ruuvi
I think THAT is the tits
have you seen how simple it is to make it a Webpage?
And serve a PUBLIC page
Watch That
Jake Hartnell
@JakeHartnell
Jul 31 2016 20:32
Yeah, those look cool too!
Josh Fisher
@cloudzombie
Jul 31 2016 20:33
I mean, it IS an arduino....
Using the same chipset as new Arduinos
And it IS using the BME280
So I kind of was like, shit
C360-Data-Hub
@EdwardKepler
Jul 31 2016 20:33
@cloudzombie
Josh Fisher
@cloudzombie
Jul 31 2016 20:33
Thats a nicer package than almost ANY homemade BME package I can make
How goes it @EdwardKepler
C360-Data-Hub
@EdwardKepler
Jul 31 2016 20:34
How is the Doser Coming?
Josh Fisher
@cloudzombie
Jul 31 2016 20:34
I have not even ordered any parts for it sadly
When I get to that, if I get to it in 2016....
Their are more prudent ways to spend $2,500 right now for our rooms
Jake Hartnell
@JakeHartnell
Jul 31 2016 20:36
Yeah, we can find cheaper alternatives.
Josh Fisher
@cloudzombie
Jul 31 2016 20:36
Well, I like what those are....They are Refurbed pumps from Dialysis machines
They are MEDICAL grade
BIG +1
C360-Data-Hub
@EdwardKepler
Jul 31 2016 20:36
I was thinking that too, but it is a start
Josh Fisher
@cloudzombie
Jul 31 2016 20:37
Medical Grade is super important for Compliance and Licensing of ANY system in this industry
Jake Hartnell
@JakeHartnell
Jul 31 2016 20:37
Cool. : )
Josh Fisher
@cloudzombie
Jul 31 2016 20:37
every single piece of everything has to be Food Grade or Medical
PVC is the outlier that they accept
C360-Data-Hub
@EdwardKepler
Jul 31 2016 20:37
Is there a need for more than 3 ph up ph down Nutrients?
Josh Fisher
@cloudzombie
Jul 31 2016 20:37
Well, I would use it for more
Grow part A and Grow part B
C360-Data-Hub
@EdwardKepler
Jul 31 2016 20:38
blooming?
Josh Fisher
@cloudzombie
Jul 31 2016 20:38
Second machine.....
4 parts is barely adequate
I could use the 15 setup just for blooming
I don't use a silly stupid additive regimen, but I do use sparingly basically every product that General Hydroponics makes in Liquid form
in bloom
as well as a few powders
C360-Data-Hub
@EdwardKepler
Jul 31 2016 20:41
I saw a doser prototype in some MIT media lab video
Josh Fisher
@cloudzombie
Jul 31 2016 20:42
Bloom I start with a base of Silica, then add Cal-MG, Then Bloom A, Bloom B. Floralicious Plus, Flora Nectar, Diamond Nectar, KoolBloom
Then I have a trio Powder
Not using ALL AT ONCE at any given time
C360-Data-Hub
@EdwardKepler
Jul 31 2016 20:43
What if it we more like the Make your own coke machine
Josh Fisher
@cloudzombie
Jul 31 2016 20:43
They ebb and flow, week 1-3 is everything up to Flora Nectar
LOL
Thats basically what it needs to be, in a mini fridge
SHRINK IT
Make a shrink ray like Ant-Man style
Make it smaller
Pretty please MIT folks.....
No I know their is a way to arrange those Bartendro's Better
Its just building a custom rack
and doubling them up
I have the space I could line an entire wall with them
C360-Data-Hub
@EdwardKepler
Jul 31 2016 20:46
Well, I know Dean Kamen was paid by Coke to make it. Millions in development so I would hold my breath,. We need a simple version.
It need to be one pump shared across rack
Josh Fisher
@cloudzombie
Jul 31 2016 20:47
So its just a manifold
And ball valve switch on relays somehow probably
or switch-es
Hmmm
C360-Data-Hub
@EdwardKepler
Jul 31 2016 20:48
i like it
Josh Fisher
@cloudzombie
Jul 31 2016 20:49
How to use the peristaltic pressure and keep line clean for every fluid that flows through until the very end
Sounds like a job for a diaphragm/manifold of some sort
C360-Data-Hub
@EdwardKepler
Jul 31 2016 20:49
or a clean line
one of the lines is to clear run after every job
Josh Fisher
@cloudzombie
Jul 31 2016 20:51
Is that how the freestyle machine works?
Does it really have a drain-to-waste to clean the lines?
C360-Data-Hub
@EdwardKepler
Jul 31 2016 20:51
No idea.
Hmmm
C360-Data-Hub
@EdwardKepler
Jul 31 2016 20:56
How much is a Coca Cola Freestyle?
The machines are leased for $300 per month ($3,600 per year), approximately 60% [citation needed] more than a standard Coca Cola fountain.
Josh Fisher
@cloudzombie
Jul 31 2016 20:57
Ya but you never own it for certain.
Reminds me of this 3D printer company
C360-Data-Hub
@EdwardKepler
Jul 31 2016 20:58
true
Josh Fisher
@cloudzombie
Jul 31 2016 20:58
I have been researching which one to get here
And I was like oh this looks GREAT, LEASE FOR $40K a year
It's the size of a freestyle.
I was thinking, maybe $100k
Nope.
Josh Fisher
@cloudzombie
Jul 31 2016 21:01
I bet the password is
Password.....
You guys will love this....
So I was showing off some product to a new dispensary last week.
As I am leaving, I see they are scanning ID'S with a Barcode reader...... Saving the scans in a notepad .txt in clear text.....
I flipped my shit
That's why we have an identity theft problem.....
People get data dumps from derpy companies like that scanning id's, and storing the full bar code data in a freaking notepad file.....
Not to mention, pop on my laptop running kali Linux, low and behold open wifi!
Josh Fisher
@cloudzombie
Jul 31 2016 21:06
Can't be bothered to encrypt or put in a database, no.
And I am totally going to hack the freestyle at wendy's later....
Triple tap
Josh Fisher
@cloudzombie
Jul 31 2016 21:12
Ooh
Josh Fisher
@cloudzombie
Jul 31 2016 21:17
Analysts talking about a home version of Spire
Do it Pepsi
Josh Fisher
@cloudzombie
Jul 31 2016 21:26
The spire could very possibly be adapted
since its Bag-in-a-Box and not cartridge
The Bartendro is still the clear winner from all my searching, viscous thick substances
Clogging is the issue with them
Ya the tessel looks sweet, is it just the chipset choice that makes it all Johnny Five native