These are chat archives for CommonGarden/Grow-IoT

18th
Jul 2016
JF
@cloudzombie
Jul 18 2016 07:14
@JakeHartnell how did your conference go?
Jake Hartnell
@JakeHartnell
Jul 18 2016 19:36
It was awesome!
Sorry for the lack of response here.
Been busy. : )
Common Garden's address:
Blockchain - Smart Contract Development
@EdwardKepler
Jul 18 2016 19:37
how is the doser going?
Jake Hartnell
@JakeHartnell
Jul 18 2016 19:37
2627 Virginia St., Berkeley, CA 94709
^^ We'll take ESP8266s : )
I have a bmp280, and it's fairly easy to get working. Johnny-five supports it: http://johnny-five.io/api/multi/
Working on the doser again this week. We're waiting on an Atlas Scientific conductivity sensor to arrive.
Here's the latest draft:
JF
@cloudzombie
Jul 18 2016 19:41
I had a bme280 shipped because fuck it.
Sweet, I will send you these little guys this week
I honestly need to focus on like, one or two microcontroller and their complexities, all this Mish mash.
Jake Hartnell
@JakeHartnell
Jul 18 2016 19:43
I honestly need to focus on like, one or two microcontroller and their complexities, all this Mish mash.
  • 1
+ 1
JF
@cloudzombie
Jul 18 2016 19:43
I like arduino supported nrf532 inbound on new arduino and ruuvi Tags, until then it's the plain Jane uno and particle.
Why? Because particle for what it's worth has a STELLAR community.
Makes every other micro controller community loon like 400 pound nerds in armchairs by comparison.
Jake Hartnell
@JakeHartnell
Jul 18 2016 19:44
Hah!
JF
@cloudzombie
Jul 18 2016 19:44
I get answers to questions in 20 minutes or less there
That is fucking superb
nodeMCU and ESP8266?
Good fucking luck
Jake Hartnell
@JakeHartnell
Jul 18 2016 19:46
Yeah, you have to figure it out for yourself. They're more interesting if you want to build your own products or work with Chinese manufacturers to make cheaper versions of existing things.
JF
@cloudzombie
Jul 18 2016 19:47
I honestly have no needs except aggregating data such as PH and Temp etc. to fine tune mechanically, I am thinking at this junction, I don't TRUST control of my facility to microcontrollers
All it would take is ONE fuck up
Jake Hartnell
@JakeHartnell
Jul 18 2016 19:47
Very wise.
JF
@cloudzombie
Jul 18 2016 19:48
As cool as it would be to be able to dose and fill reservoirs, I just don't think its there yet
at ALL
dont know if I showed you this that I found or not either, https://github.com/rwaldron/particle-io
Particle Johnny Five firmware
Jake Hartnell
@JakeHartnell
Jul 18 2016 19:50
Yeah, I've seen it.
JF
@cloudzombie
Jul 18 2016 19:50
well. software that works with voodoospark
Jake Hartnell
@JakeHartnell
Jul 18 2016 19:50
Could work well with Raspberry pi.
JF
@cloudzombie
Jul 18 2016 19:50
This would?
Or just in general.
Jake Hartnell
@JakeHartnell
Jul 18 2016 19:50
Yeah.
Particle Johnny Five firmware
Ensure your host computer (where you're running your Node.js application) and the Particle are on the same local network.
JF
@cloudzombie
Jul 18 2016 19:51
Ah
Jake Hartnell
@JakeHartnell
Jul 18 2016 19:51
Raspberry pi is the host computer.
JF
@cloudzombie
Jul 18 2016 19:51
Sons of bitches
I would like to get it running off Heroku eventually....
Don't want to have to run a local server unless its just absolutely fucking tits necessary long run, power.
Jake Hartnell
@JakeHartnell
Jul 18 2016 19:52
Can be done, I used to have an instance running before I ran out funds to host it.
JF
@cloudzombie
Jul 18 2016 19:52
That OR galaxy, either or.
Zero fucks given to which one.
Jake Hartnell
@JakeHartnell
Jul 18 2016 19:52
Galaxy works really well.
Even got https working.
JF
@cloudzombie
Jul 18 2016 19:53
I had a fork of the popular meteor job board running on it for awhile
To test and play with it, yah I had as well.
Worked well enough for my plebness
to figure out
But now I am at that point where I am like, ok, I have this BME280 working on arduino, figure out how to get it working in johnny five
Also have it working with a photon, just doesnt publish the data to particle cloud, serial only.
The struggle, why cant this be as easy as cloning cannabis.....
Jake Hartnell
@JakeHartnell
Jul 18 2016 19:55
I'll post an example with Raspberry pi + arduino + bmp280.
Going to the lab soon.
I have one so it shouldn't take too long.
JF
@cloudzombie
Jul 18 2016 19:56
Oh, also, if you want to come up and visit in the fall, give me 2-3 weeks notice, and you can stay at my partners top 3 airBnB house free for a few days
Jake Hartnell
@JakeHartnell
Jul 18 2016 19:56
Then you can hook it up to grow-iot.
Cool! That would be awesome!
JF
@cloudzombie
Jul 18 2016 19:56
If you want to come around a harvest time, Early October
Jake Hartnell
@JakeHartnell
Jul 18 2016 19:56
: )
JF
@cloudzombie
Jul 18 2016 19:57
we just got our new Rosin Press, I wont even get to use it until then
Jake Hartnell
@JakeHartnell
Jul 18 2016 19:57
Cool! It would be awesome to see it all.
JF
@cloudzombie
Jul 18 2016 19:58
But the real focus on all this shit now, is after exploring control of things etc, is make a better LED light for flowering.....so I am spending more time than I figure is worth it researching CREE LED Diode specsheets
And come upon mixing their flower spectrum with an LED diode they make specifically for TANNING
for the UV spectrum overkill
so I have a bunch of different modules on the way that are all premounted on PCB, not raw Diodes, and am gonna play with my PAR and UV spectrometer thingies
and see if I can do anything and NOT burn the fucking place down in the process
And yes, honestly, if everything ends up being fucking Pi 3's as far as Grow-IoT and sensors connected to it, I give zero fucks
I would rather wire in Ethernet to be honest.....
And rather do it NOW then later when I finish drywalling the second side of all my new walls.....
// 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', // localhost:3000 by default
        port: 3000,
        name: 'BME280', // The display name for the thing.
        username: 'jake2@gmail.com', // 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
                    });
                }
            }
        }
    });
});
^^ I actually don't have a BME280 on me, but judging from the documentation, it should be something like this.
BMP280 / BMP180 are almost the same, but don't have humidity:
// Require the Grow.js build and johnny-five library.
var GrowInstance = require('../../../dist/Grow.umd.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: "BMP280"
    });

    // Create a new grow instance.
    var grow = new GrowInstance({
        host: 'IP_ADDRESS_OF_GROW-IOT_SERVER', // localhost:3000 by default
        port: 3000,
        name: 'BMP280', // The display name for the thing.
        desription: 'BMP280',
        username: 'jake2@gmail.com', // 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
                    });
                }
            }
        }
    });
});
JF
@cloudzombie
Jul 18 2016 20:19
Yah, I will send you one of these too if you want. I figured Humidity would be a tiny thing needed
lol
I got extras, why? Figured I would fry at LEAST one.
Jake Hartnell
@JakeHartnell
Jul 18 2016 20:20
Sure. It's nice that the BME280 has humidity as well.
JF
@cloudzombie
Jul 18 2016 20:20
Which surprisingly I have not done....yet
knocks on desk
Jake Hartnell
@JakeHartnell
Jul 18 2016 20:20
Hah!
JF
@cloudzombie
Jul 18 2016 20:20
I Borked one of these photons for a day
until I left it for a day, and came back to find po-util
and being able to flash firmware from the command line
That was fun
Still don't know WHY it does what it was doing, probably user error somewhere.
But I had it hooked up over i2c off the shield shield
to the bme280
SAME WAY ITS WORKING FINE NOW
Jake Hartnell
@JakeHartnell
Jul 18 2016 20:22
:shipit:
JF
@cloudzombie
Jul 18 2016 20:22
but with the particle build library for the adafruit bme280, the EXACT SENSOR I HAVE
and it borks it
flat out
I am like....for real people
I am like a 5 year old, with supreme reading comprehension and copy paste and replace one line for every 100 developer
I don't know what the fuck is going ON, or why, and I question other's ability to know the WHY as well