temperature server
combine the analog input of BBB with the built in ethernet connection to produce a server for temperature, as a proof of concept
One of the problems of Adafruit_BBIO is that you need to be root to use it. Running a server is a non-root user process. By running temperature as a superuser under crontab, saving the result as a text string, then having the server running php can pick up the info and output it to the world. Install ubuntu os. When you plug in BBB to usb, and see mass storage connect window pop up, the start.html file are the instructions for booting ubuntu and other operating systems. Use the eMMC flasher img, don't use the first one. See http://elinux.org/BeagleBoardUbuntu#eMMC:_BeagleBone_Black Connect using ssh I use PuTTY, but from linux box, you can use in terminal $ssh [email protected] the password for the above ubuntu distribution is temppwd. Follow burning to SD card instructions, then install python on BBB: http://learn.adafruit.com/setting-up-io-python-library-on-beaglebone-black/installation Check that python is working by measuring temperature: http://learn.adafruit.com/measuring-temperature-with-a-beaglebone-black Modify the tmp36.py to print to a file. I put it into a shell script. Don't forget to make your shell script executable: $chmod a+x scriptnamehere.sh Run the tmp36.py or the script from a crontab, but it has to be as a superuser
Homepage: http://nestor.dyn-o-saur.com:8080 Registrar: larry.pedcardiologist |
Tags:
Projected created on: Sat Sep 07 2013 14:50:40 GMT-0000 (UTC)
Submitted by: larry.pedcardiologist
Last updated on: Sat Sep 07 2013 14:50:40 GMT-0000 (UTC)