Being fairly new to webiopi, I tend to hang back and read before posting.
I have some recent success with the DS2482 (not using rpidom), thanks to Eric's post:
http://trouch.com/2013/03/31/rpidom-et-webiopi-1-wire/
I see others mention the I2C connection with the DS2482 but I don't see a ton of momentum at the newbie level where I still am.
I was trying to use webiopi for my OWB (wood burning boiler) but could not make my remote sensors work directly off the Pi's GPIO after the in house testing had been successful.
I bought this add on card and initially gave up on webiopi in favor of the OWFS solution. That allowed me to test and succeed at reading the remote sensors via the new i2c circuit board (where the ds2482-100) is installed. I was also able to upload via python to google docs.
Now that I am confident the hardware works, I returned to this group and Eric's site in search of a webiopi solution. A few hours ago I was successful using the guidance from Eric's post ( with a little help from google translate). Now to get the sensors up on the webiopi gauge page I had working before....
First specific question to all: please help me understand what this means at the end of his post: (in the translated English)
"But we must now Register for the bridge over the I2C bus by hand. "
I hope this thread can collect i2c / DS2482 discussions..
Thank you
David
I suspect a reboot may reveal the answer to my register for the bridge question above.
Old Hardy stainless OWB heating a 170 year old farm house in rural Vermont. I am setting all this up for an eventual replacement of the old outdoor boiler to something more ecology friendly and efficient. This is one of those getting the black eye for smoke. Mine is not bad as I only burn dry hardwood but I know it could be more efficient. I easily burn 14 cords in the heating season!
A basement heat exchanger connects the wood heat water loop to the normally idle oil fired pressurized system when zone demands call for heat.
The fire is controlled by a solenoid operated supply air valve and a powered fan on that same supply.
Monitoring hardware is the v2 Raspberry Pi with a European sourced i2c daughter board and cat5 connecting 1wire temperature sensors.
Future plans will allow the pi to make heating decision based on ambient temperatures, over heat situations, under heat situations and low water in the OWB.
A secondary future goal will be to control the two fire control functions as stages based on tank temperature (air solenoid,fan). The pi will need to control ac voltage outputs to these two circuits. Some kind of PID control loop watching ambient, rate of rise/fall,etc.
Logging and graphing over time will be important and has not yet been initiated.
Alarms will be needed for over heat, under heat, low water and have not yet been initiated.
I am a PLC ladder logic and old visual interdev kind of person. I did ground breaking business web stuff prior to 9/11 with databases etc but that is pretty ancient stuff now. I have a learning curve with this project and the Pi but I enjoy the challenge in Linux.
Thanks in advance for any help with this,
David
How do I run this command in a shell script?
echo ds2482 0x18 | sudo tee -a /sys/bus/i2c/devices/i2c-0/new_device
Thank you!!
echo "ds2482 0x18" >> /sys/bus/i2c/devices/i2c-0/new_device sleep 1
--
You received this message because you are subscribed to the Google Groups "WebIOPi" group.
To unsubscribe from this group and stop receiving emails from it, send an email to webiopi+u...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
These other scripts/programs have no function with the webiopi web GUI, rather they just want to pull sensor data for charting, history, etc.
I have a python script that is using webiopi.client to 127.0.0.1 so to pull temperatures and then upload them to google documents.
It works fine but I think there must be a better way to access the device data without using webiopi.client. Is this correct?
Another use would be to feed an rrd process.
Thoughts?
------
Some of the code, borrowed and sewn together from a few web searches with thx to numerous authors:
(The complete program works for now)
#setting up the imports and google docs are removed to focus on the webiopi.client connection query of this post
# Create a WebIOPi client
client = PiHttpClient("127.0.0.1")
client.setCredentials("", "")
# 1wire sensors connected via webiopi and working from webiopi GUI.
sensors = ['temp0','temp1','temp2','temp3']
names = ['Boiler', 'HeatEx', 'Basement', 'Outdoor']
# Continuously append data
while(True):
row = []
worksheet = gc.open(spreadsheet).sheet1
for x in range(len(sensors)):
# Reach back to webiopi for the 1wire data
output = Temperature(client, sensors[x]).getFahrenheit() #<===. This works but is there a better way???
temp = float(output)
row.extend([temp]) # then cycle through the sensor list appending each to row[]
sleep(2) # a little pause
# finally upload to google docs spreadsheet, example truncated here
When I start webiopi in debug mode it faults on not being able to import 'gspread' which is used to upload to google docs.
Gspread works fine from my other python programs in the same Pi.
Is this perhaps a python version issue?
Thoughts??
Hi David,
--
You received this message because you are subscribed to a topic in the Google Groups "WebIOPi" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/webiopi/uewV_YLjIe4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to webiopi+u...@googlegroups.com.
--
You received this message because you are subscribed to a topic in the Google Groups "WebIOPi" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/webiopi/uewV_YLjIe4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to webiopi+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
11/30/13
12/1/13--