• Please visit and share your knowledge at our sister communities:
  • If you have not, please join our official Homebrewing Facebook Group!

    Homebrewing Facebook Group

Search results

Homebrew Talk

Help Support Homebrew Talk:

This site may earn a commission from merchant affiliate links, including eBay, Amazon, and others.
  1. redbenn

    TeensyPi Networked Temperature Controller

    Starting to build out the full electronics. I picked up a terminal strip for my 5V/5A DC power supply. This will power the TeensyPi and the 8 device relay board. I also bought an additional Arduino shield (think it was for a Mega) to wire the switch and temp probe circuits. Right now I just...
  2. redbenn

    TeensyPi Networked Temperature Controller

    If I wanted to test out using the Arduino PID library in place of the actions, would I need to modify void softSerialProcess() and void updateChipStatus(int x)?
  3. redbenn

    TeensyPi Networked Temperature Controller

    The feed id is just a numerical value, make sure you don't have quotes around it in the code.
  4. redbenn

    TeensyPi Networked Temperature Controller

    Do you have the correct API Key? Check on cosm your keys. You may need to create a new one that will allow you to reade/update/create/delete all your feeds.
  5. redbenn

    TeensyPi Networked Temperature Controller

    try this code on the update $pachube->_debugStatus($pachube->updateDatastream("csv", $feed, $cosmid, $temp)); instead of $pachube->updateDatastream("csv", $feed, $cosmid, $temp); This will run a debug on the cosm update.
  6. redbenn

    TeensyPi Networked Temperature Controller

    Ah, found the problem... on the updateNames.php this line if(substr($chipAddress,0,4)=='0x28') { $query2 = "SELECT * FROM cosm where address = '" . $chipAddress . "'"; Should be: if(substr($chipAddress,0,4)=='0x28') { $query2 = "SELECT * FROM...
  7. redbenn

    TeensyPi Networked Temperature Controller

    Is it inserting them the first time, then if you update the names it will insert the same record again? Same address in the ChipID column in the cosm table? Were the cosm feeds created when you updated the names? If so, does anything post to cosm if you access cosm.php directly from your web...
  8. redbenn

    TeensyPi Networked Temperature Controller

    Yes, that could be done as well. We wouldn't want the 0x28 filter for the MySQL table/cosm feed creation. We could then send a 0 or 1 to cosm to track if the switch is on. I will look into adding that later tonight.
  9. redbenn

    TeensyPi Networked Temperature Controller

    Added the Connecting the TeensyPi to Cosm.com to log data guide to TeensyPi.com here: http://www.teensypi.com/cosm/
  10. redbenn

    TeensyPi Networked Temperature Controller

    To create the cronjob to update the cosm feed, we need to update crontab with the timing to run the job, the location of PHP, and the location of our cosm.php file we want to run. For me PHP was located at /usr/bin/php. You can verify yours by typing find php from the command line. To...
  11. redbenn

    TeensyPi Networked Temperature Controller

    Ahh, could have been because I was trying to connect via FTP instead of directly mounting the TeensyPi. I use Transmit on OS X Mountain Lion.
  12. redbenn

    TeensyPi Networked Temperature Controller

    You will also have to modify updateNames.php. This will add the ability to create COSM datafeeds when a new chip is named. I set it up to tie the chip address to the feed as opposed to the chip ID since they will move around IDs, but the address will stay the same. First add references to the...
  13. redbenn

    TeensyPi Networked Temperature Controller

    Next download the COSM (formally known as Pachube) PHP library from here: https://github.com/MunGell/PachubeAPI. Then upload the PachubeAPI.php file to your /var/www/htdocs directory. This will create functions that make it easy to get/post data from/to COSM. Next create a new PHP file in...
  14. redbenn

    TeensyPi Networked Temperature Controller

    I added a table to the MySQL database called cosm. Log into phpmyadmin at http://teensypi.local/phpmyadmin/. Go to the TeensyPi database. Click on the SQL link and paste the following code: CREATE TABLE IF NOT EXISTS `cosm` ( `id` int(6) NOT NULL AUTO_INCREMENT, `chipid` varchar(50) NOT...
  15. redbenn

    TeensyPi Networked Temperature Controller

    This is where I diverged from the Adafruit tutorial, as I know PHP so this was easier for me... You will need the PHP-Curl library installed to post/get from COSM. You may have to install this if it is not already on the Raspberry Pi. To check to see if it is installed, create a new PHP file...
  16. redbenn

    TeensyPi Networked Temperature Controller

    Next was to create an account on COSM which will log the data. I followed this guide from adafruit for the most part. Once you have an account, click the blue button to set up a feed: Select Arduino, and name it, tag it, etc. You will need the API Key from the code generated and...
  17. redbenn

    TeensyPi Networked Temperature Controller

    One of the changes I did was install VSFTPD so I could FTP into the TeensyPi. This allowed me to access the htdocs easier. I did this as [email protected], as that is the owner ove the /var/www folder. I got the instructions from here. Type in "sudo apt-get install vsftpd" and hit...
  18. redbenn

    TeensyPi Networked Temperature Controller

    Relay came today, I hooked it up to 2 of my switches which were in an action. Everything worked great, when the switch activated, it activated the relay. Also got COSM working with a PHP cronjob. Waiting on my heat tape and solenoids, then going to test out the actions to see how they dial...
  19. redbenn

    TeensyPi Networked Temperature Controller

    That sounds like the easiest way to implement, I am going to create a cron job that will run a similar query to updateStatus.php that will post the results to COSM.
  20. redbenn

    TeensyPi Networked Temperature Controller

    Had a similar issue this morning as I did previously where my sensors stopped updating. Happened after having it unplugged for a day. The LED on the Teensy board was pretty dull, I am wondering if it was trying to process too much after reboot? I am reloading everything again, I don't think...
Back
Top