Beagle Board - beagleboard.org

Things used in this project

Hardware components:
Product beagleboard
BeagleBoard.org BeagleBoard
×1

Code

Code snippet #1Plain text
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
$sudo crontab -e
The Adafruit_BBIO function ADC.setup() needs to be run by superuser.
Check via ssh what ethernet ip is 
$ssh ubuntu@192.168.7.2
$ifconfig eth0 should give the ethernet port IP address
Login from a browser, see apache warning that it is running, but no site served up.
You have to write the index.php. You need the usual http stuff at top, and what you want to display. The php uses system function to read file created by tmp36.py
$dummy = system('tail templog.txt', $retval)
The $retval should be 0, the $dummy will include the last line of tail, but the entire tail output will appear on screen, because it is in between php tags.

Credits

larry.pedcardiologist

Are you larry.pedcardiologist? Claim this project and add it to your profile.

This is mine

Replications

Did you replicate this project? Share it!

I made one

Love this project? Think it could be improved? Tell us what you think!

Give feedback

Comments

Add projectSign up / Login