Reef Discussion

I have now decided what I am going to running on the 1 wire bus -

1 x temp sensor for fresh water tank
1 x temp sensor for nano reef tank
1 x temp sensor for makeup water container
1 x temp/humidity sensor in nano reef tank canopy
1 x temp/humidity sensor in room housing the fish tanks

These are the temp/humidity sensors I have just ordered
http://item.mobileweb.ebay.com/viewitem?itemId=181007963977

Once I can get the above to display is some sort of graphical way, I am going to order the pH and ORP equipment.

For anyone thinking about doing this, I can highly recommend it. As you will have seen, I have asked a load a questions and have a ton more to learn. However, Rob is very helpful.....and patient! His design runs all this monitoring for a quarter of the price of anything equivalent and burns 1.5watts to run it!



Sent from my Nexus 10 using Tapatalk 2
 

Rob

Member
Apr 26, 2012
743
424
Be interested if you can get the DHT21 running. Seems there is more doco on the DHT22 version. I am pretty sure they provide similar response however the data format is different. You would need to use someones driver adafruit ?? what were you planning ?.
 
Just a quick update on my latest achievement, I wrote my first bash script :reading:)

Every 5 seconds, the temperature of my freshwater and saltwater aquariums are displayed


#!/bin/bash
sudo /opt/owfs/bin/owfs --i2c=ALL:ALL --allow_other /mnt/1wire/

while :
do
clear
printf '%s\n%s\n' ""
cat /mnt/1wire/28.6EBB94040000/temperature

printf '%s\n%s\n' " Saltwater Temperature"
cat /mnt/1wire/28.931295040000/temperature

printf '%s\n%s\n' " Freshwater Temperature"

sleep 5
done
 
I will now try to work out why I cannot see the sensors on the OWFS web server running.

So I started the OWSERVER in debug mode using this command -
sudo /opt/owfs/bin/owserver -p 3001 --i2c=/dev/i2c-1:ALL --debug
This produced -

DEBUG MODE
libow version:
2.8p17
DEBUG: ow_daemon.c:(167) main thread id = 3070181904
CONNECT: ow_avahi_link.c:(72) No Avahi support. Library libavahi-client couldn't be loaded
CONNECT: ow_dnssd.c:(82) Zeroconf/Bonjour is disabled since dnssd library isn't found
CALL: ow_parsename.c:(98) path=[]
DEBUG: owlib.c:(82) Globals temp limits 0C 100C (for simulated adapters)
CONNECT: ow_ds2482.c:(397) Found an i2c device at /dev/i2c-1 address 18
DEBUG: ow_ds2482.c:(516) ok
CONNECT: ow_ds2482.c:(428) i2c device at /dev/i2c-1 address 18 appears to be DS2482-x00
CONNECT: ow_ds2482.c:(680) DS2482-100 (Single channel)
CONNECT: ow_ds2482.c:(397) Found an i2c device at /dev/i2c-1 address 19
CONNECT: ow_ds2482.c:(425) i2c device at /dev/i2c-1 address 19 cannot be reset. Not a DS2482.
CONNECT: ow_ds2482.c:(397) Found an i2c device at /dev/i2c-1 address 1A
CONNECT: ow_ds2482.c:(425) i2c device at /dev/i2c-1 address 1A cannot be reset. Not a DS2482.
CONNECT: ow_ds2482.c:(397) Found an i2c device at /dev/i2c-1 address 1B
CONNECT: ow_ds2482.c:(425) i2c device at /dev/i2c-1 address 1B cannot be reset. Not a DS2482.
CONNECT: ow_ds2482.c:(397) Found an i2c device at /dev/i2c-1 address 1C
CONNECT: ow_ds2482.c:(425) i2c device at /dev/i2c-1 address 1C cannot be reset. Not a DS2482.
CONNECT: ow_ds2482.c:(397) Found an i2c device at /dev/i2c-1 address 1D
CONNECT: ow_ds2482.c:(425) i2c device at /dev/i2c-1 address 1D cannot be reset. Not a DS2482.
CONNECT: ow_ds2482.c:(397) Found an i2c device at /dev/i2c-1 address 1E
CONNECT: ow_ds2482.c:(425) i2c device at /dev/i2c-1 address 1E cannot be reset. Not a DS2482.
CONNECT: ow_ds2482.c:(397) Found an i2c device at /dev/i2c-1 address 1F
CONNECT: ow_ds2482.c:(425) i2c device at /dev/i2c-1 address 1F cannot be reset. Not a DS2482.
DEBUG: ow_com_close.c:(41) Unimplemented!!!
DEBUG: ow_ds2482.c:(341) Cleaning excess allocated i2c structure
I then started the OWHTTPD in debug mode using this command
sudo /opt/owfs/bin/owhttpd -s 3001 -p 3002 --debug
This produced -


DEBUG MODE
libow version:
2.8p17
DEBUG: ow_daemon.c:(167) main thread id = 3069497872
CONNECT: ow_avahi_link.c:(72) No Avahi support. Library libavahi-client couldn't be loaded
CONNECT: ow_dnssd.c:(82) Zeroconf/Bonjour is disabled since dnssd library isn't found
CALL: ow_parsename.c:(98) path=[]
DEBUG: owlib.c:(82) Globals temp limits 0C 100C (for simulated adapters)
DEBUG: ow_net_client.c:(84) IP address=[] port=[3001]
After about 1 minuted the debug on OWHTTPD displays this error -


CONNECT: ow_net_client.c:(144) [Address family not supported by protocol] Socket problem
CONNECT: owlib.c:(115) Cannot open server at 3001 -- first attempt.
DEBUG: ow_net_client.c:(84) IP address=[] port=[3001]
When I connect to it from my Linux laptop, I have the same problem as before e.g. I see everything apart from BUS.0 and the sensors (even though I can see them using OWFS) and the OWHTTPD displays -


DEBUG: owhttpd_handler.c:(334) URL parse file=/, request=, value=
CALL: owhttpd_handler.c:(68) WLcmd: GETfile: /request:value: version: HTTP/1.1
CALL: ow_parsename.c:(98) path=[/]
DEBUG: owhttpd_handler.c:(92) http directory request.
DEBUG: owhttpd_handler.c:(390) More (26) data:Host: 192.168.0.200:3002

DEBUG: owhttpd_handler.c:(390) More (24) data:Connection: keep-alive

DEBUG: owhttpd_handler.c:(390) More (73) data:Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8

DEBUG: owhttpd_handler.c:(390) More (147) data:User-Agent: Mozilla/5.0 (X11; Linux i686) AppleWebKit/537.22 (KHTML, like Gecko) Ubuntu Chromium/25.0.1364.160 Chrome/25.0.1364.160 Safari/537.22

DEBUG: owhttpd_handler.c:(390) More (36) data:Accept-Encoding: gzip,deflate,sdch

DEBUG: owhttpd_handler.c:(390) More (45) data:Accept-Language: en-GB,en-US;q=0.8,en;q=0.6

DEBUG: owhttpd_handler.c:(390) More (48) data:Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3

DEBUG: owhttpd_handler.c:(390) More (2) data:

DEBUG: ow_dir.c:(65) path=/
CALL: ow_dir.c:(100) path=/
CALL: ow_parsename.c:(98) path=[/uncached]
DEBUG: ow_parsename.c:(62) /uncached
CALL: ow_parsename.c:(98) path=[/settings]
DEBUG: ow_parsename.c:(62) /settings
CALL: ow_parsename.c:(98) path=[/system]
DEBUG: ow_parsename.c:(62) /system
CALL: ow_parsename.c:(98) path=[/statistics]
DEBUG: ow_parsename.c:(62) /statistics
CALL: ow_parsename.c:(98) path=[/structure]
DEBUG: ow_parsename.c:(62) /structure
DEBUG: ow_dir.c:(195) ret=0
DEBUG: ow_parsename.c:(62) /
DEBUG: ow_net_server.c:(240) Normal exit.
CALL: owhttpd_handler.c:(60) PreParse line=GET /favicon.ico HTTP/1.1

DEBUG: owhttpd_handler.c:(334) URL parse file=/favicon.ico, request=, value=
CALL: owhttpd_handler.c:(68) WLcmd: GETfile: /favicon.icorequest:value:version: HTTP/1.1
DEBUG: owhttpd_handler.c:(80) http icon request.
DEBUG: owhttpd_handler.c:(390) More (26) data:Host: 192.168.0.200:3002

DEBUG: owhttpd_handler.c:(390) More (24) data:Connection: keep-alive

DEBUG: owhttpd_handler.c:(390) More (13) data:Accept: */*

DEBUG: owhttpd_handler.c:(390) More (147) data:User-Agent: Mozilla/5.0 (X11; Linux i686) AppleWebKit/537.22 (KHTML, like Gecko) Ubuntu Chromium/25.0.1364.160 Chrome/25.0.1364.160 Safari/537.22

DEBUG: owhttpd_handler.c:(390) More (36) data:Accept-Encoding: gzip,deflate,sdch

DEBUG: owhttpd_handler.c:(390) More (45) data:Accept-Language: en-GB,en-US;q=0.8,en;q=0.6

DEBUG: owhttpd_handler.c:(390) More (48) data:Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3

DEBUG: owhttpd_handler.c:(390) More (50) data:If-Modified-Since: Sat, 11 May 2013 18:36:39 GMT

DEBUG: owhttpd_handler.c:(390) More (2) data:

DEBUG: ow_net_server.c:(240) Normal exit.
 

Rob

Member
Apr 26, 2012
743
424
Do a process listing for me
sudo -i
ps - el

pm me the result, i think you may have more than one instance running. When you are trying to start owserver owhttpd and owfs do you make sure its not already running ? I assume you still have your startup scripts in place.

Otherwise subscribe to the owfs forum and ask there.
 

macca_75

Member
Apr 22, 2012
2,125
844
Do a process listing for me
sudo -i
ps - el

pm me the result, i think you may have more than one instance running. When you are trying to start owserver owhttpd and owfs do you make sure its not already running ? I assume you still have your startup scripts in place.

Otherwise subscribe to the owfs forum and ask there.
I use ps -ef (but each to their own.;))

I've had to learn so much I trying to "mod" the PI you've loaned me.
 
I thought I would post the information here just in case others have a similar problem. I have rebuilt my SD card few times so as you can see no duplicate scripts. Can you let me know where I can find the OWFS forum as I have googled it without success?

On Bootup -


pi@raspberrypi ~ $ sudo ps -el
F S UID PID PPID C PRI NI ADDR SZ WCHAN TTY TIME CMD
4 S 0 1 0 2 80 0 - 536 poll_s ? 00:00:01 init
1 S 0 2 0 0 80 0 - 0 kthrea ? 00:00:00 kthreadd
1 S 0 3 2 0 80 0 - 0 run_ks ? 00:00:00 ksoftirqd/0
1 S 0 4 2 0 80 0 - 0 worker ? 00:00:00 kworker/0:0
1 S 0 5 2 0 60 -20 - 0 worker ? 00:00:00 kworker/0:0H
1 S 0 6 2 0 80 0 - 0 worker ? 00:00:00 kworker/u:0
1 S 0 7 2 0 60 -20 - 0 worker ? 00:00:00 kworker/u:0H
1 S 0 8 2 0 60 -20 - 0 rescue ? 00:00:00 khelper
5 S 0 9 2 0 80 0 - 0 devtmp ? 00:00:00 kdevtmpfs
1 S 0 10 2 0 60 -20 - 0 rescue ? 00:00:00 netns
1 S 0 11 2 0 80 0 - 0 worker ? 00:00:00 kworker/0:1
1 S 0 12 2 0 80 0 - 0 bdi_fo ? 00:00:00 bdi-default
1 S 0 13 2 0 60 -20 - 0 rescue ? 00:00:00 kblockd
1 S 0 14 2 0 80 0 - 0 hub_th ? 00:00:00 khubd
1 S 0 15 2 0 60 -20 - 0 rescue ? 00:00:00 rpciod
1 S 0 16 2 0 80 0 - 0 watchd ? 00:00:00 khungtaskd
1 S 0 17 2 0 80 0 - 0 kswapd ? 00:00:00 kswapd0
1 S 0 18 2 0 80 0 - 0 fsnoti ? 00:00:00 fsnotify_mark
1 S 0 19 2 0 60 -20 - 0 rescue ? 00:00:00 nfsiod
1 S 0 20 2 0 60 -20 - 0 rescue ? 00:00:00 crypto
1 S 0 27 2 0 60 -20 - 0 rescue ? 00:00:00 kthrotld
1 S 0 28 2 0 61 -19 - 0 down_i ? 00:00:00 VCHIQ-0
1 S 0 29 2 0 61 -19 - 0 down_i ? 00:00:00 VCHIQr-0
1 S 0 30 2 0 60 -20 - 0 down_i ? 00:00:00 VCHIQs-0
1 S 0 31 2 0 60 -20 - 0 rescue ? 00:00:00 iscsi_eh
1 S 0 32 2 0 60 -20 - 0 rescue ? 00:00:00 dwc_otg
1 S 0 33 2 0 60 -20 - 0 rescue ? 00:00:00 DWC Notificati
1 S 0 34 2 0 80 0 - 0 worker ? 00:00:00 kworker/u:1
1 S 0 35 2 0 60 -20 - 0 rescue ? 00:00:00 deferwq
1 S 0 36 2 1 80 0 - 0 mmc_qu ? 00:00:00 mmcqd/0
1 S 0 37 2 0 80 0 - 0 worker ? 00:00:00 kworker/u:2
1 S 0 38 2 0 80 0 - 0 kjourn ? 00:00:00 jbd2/mmcblk0p2
1 S 0 39 2 0 60 -20 - 0 rescue ? 00:00:00 ext4-dio-unwri
5 S 0 154 1 0 80 0 - 720 epoll_ ? 00:00:00 udevd
1 S 0 234 2 0 60 -20 - 0 rescue ? 00:00:00 cfg80211
5 S 0 280 154 0 80 0 - 719 epoll_ ? 00:00:00 udevd
5 S 0 284 154 0 80 0 - 719 epoll_ ? 00:00:00 udevd
1 S 0 289 1 0 80 0 - 438 wait ? 00:00:00 ifplugd.agent
1 S 0 310 1 0 80 0 - 438 wait ? 00:00:00 ifplugd.agent
1 S 0 313 1 0 80 0 - 438 wait ? 00:00:00 net.agent
1 S 0 369 2 0 80 0 - 0 bdi_wr ? 00:00:00 flush-179:0
5 S 0 1506 1 0 80 0 - 1408 poll_s ? 00:00:00 wpa_supplicant
1 S 0 1553 2 0 80 0 - 0 worker ? 00:00:00 kworker/0:2
1 S 0 1621 1 0 80 0 - 1223 poll_s ? 00:00:00 dhclient
5 S 0 1926 1 0 80 0 - 436 poll_s ? 00:00:00 ifplugd
5 S 0 1928 1 0 80 0 - 6992 poll_s ? 00:00:00 rsyslogd
1 S 0 2002 1 0 80 0 - 955 hrtime ? 00:00:00 cron
5 S 104 2038 1 0 80 0 - 794 epoll_ ? 00:00:00 dbus-daemon
5 S 102 2085 1 0 80 0 - 1377 poll_s ? 00:00:00 ntpd
5 S 0 2131 1 0 80 0 - 1552 poll_s ? 00:00:00 sshd
5 S 65534 2148 1 0 80 0 - 503 poll_s ? 00:00:00 thd
4 S 0 2167 1 0 80 0 - 935 n_tty_ tty1 00:00:00 getty
4 S 0 2168 1 0 80 0 - 935 n_tty_ tty2 00:00:00 getty
4 S 0 2169 1 0 80 0 - 935 n_tty_ tty3 00:00:00 getty
4 S 0 2170 1 0 80 0 - 935 n_tty_ tty4 00:00:00 getty
4 S 0 2171 1 0 80 0 - 935 n_tty_ tty5 00:00:00 getty
4 S 0 2172 1 0 80 0 - 935 n_tty_ tty6 00:00:00 getty
4 S 0 2173 1 0 80 0 - 515 n_tty_ ttyAMA0 00:00:00 getty
4 S 0 2189 2131 1 80 0 - 2450 poll_s ? 00:00:00 sshd
4 S 0 2242 1 0 80 0 - 6886 poll_s ? 00:00:00 console-kit-da
4 S 0 2314 1 0 80 0 - 5571 poll_s ? 00:00:00 polkitd
5 S 1000 2324 2189 0 80 0 - 2450 poll_s ? 00:00:00 sshd
0 S 1000 2325 2324 3 80 0 - 1357 wait pts/0 00:00:00 bash
0 S 0 2568 310 0 80 0 - 421 hrtime ? 00:00:00 sleep
0 S 0 2571 313 0 80 0 - 421 hrtime ? 00:00:00 sleep
4 S 0 2572 2325 0 80 0 - 1279 poll_s pts/0 00:00:00 sudo
0 S 0 2575 289 0 80 0 - 421 hrtime ? 00:00:00 sleep
4 R 0 2576 2572 0 80 0 - 1033 - pts/0 00:00:00 ps
pi@raspberrypi ~ $
 

Rob

Member
Apr 26, 2012
743
424
owfs mail listing, there's stacks of people with RPi's

https://lists.sourceforge.net/lists/listinfo/owfs-developers

Your ps listing looks ok, its gotta be something easy however cannot see it. Can you post up the owserver comand you are typing on the command line again. forget startup scripts and stuff you should be able to issue the owser and owhttpd straight on the command line. You should then see it in the ps listing. Make sure owfs is not running. Do you know how to kill a program once started ?
 
Many thanks. I am running the following at the command line as I did not want to use the script until I know all is working -

pi@raspberrypi ~ $ sudo /opt/owfs/bin/owserver -p 3001 --i2c=/dev/i2c-1:ALL
pi@raspberrypi ~ $ sudo /opt/owfs/bin/owhttpd -s 3001 -p 3002
Once I run these, I can confirm they are running processes. -

pi@raspberrypi ~ $ sudo ps -el
F S UID PID PPID C PRI NI ADDR SZ WCHAN TTY TIME CMD
4 S 0 1 0 1 80 0 - 536 poll_s ? 00:00:01 init
1 S 0 2 0 0 80 0 - 0 kthrea ? 00:00:00 kthreadd
1 S 0 3 2 0 80 0 - 0 run_ks ? 00:00:00 ksoftirqd/0
1 S 0 4 2 0 80 0 - 0 worker ? 00:00:00 kworker/0:0
1 S 0 5 2 0 60 -20 - 0 worker ? 00:00:00 kworker/0:0H
1 S 0 6 2 0 80 0 - 0 worker ? 00:00:00 kworker/u:0
1 S 0 7 2 0 60 -20 - 0 worker ? 00:00:00 kworker/u:0H
1 S 0 8 2 0 60 -20 - 0 rescue ? 00:00:00 khelper
5 S 0 9 2 0 80 0 - 0 devtmp ? 00:00:00 kdevtmpfs
1 S 0 10 2 0 60 -20 - 0 rescue ? 00:00:00 netns
1 S 0 11 2 0 80 0 - 0 worker ? 00:00:00 kworker/0:1
1 S 0 12 2 0 80 0 - 0 bdi_fo ? 00:00:00 bdi-default
1 S 0 13 2 0 60 -20 - 0 rescue ? 00:00:00 kblockd
1 S 0 14 2 0 80 0 - 0 hub_th ? 00:00:00 khubd
1 S 0 15 2 0 60 -20 - 0 rescue ? 00:00:00 rpciod
1 S 0 16 2 0 80 0 - 0 watchd ? 00:00:00 khungtaskd
1 S 0 17 2 0 80 0 - 0 kswapd ? 00:00:00 kswapd0
1 S 0 18 2 0 80 0 - 0 fsnoti ? 00:00:00 fsnotify_mark
1 S 0 19 2 0 60 -20 - 0 rescue ? 00:00:00 nfsiod
1 S 0 20 2 0 60 -20 - 0 rescue ? 00:00:00 crypto
1 S 0 27 2 0 60 -20 - 0 rescue ? 00:00:00 kthrotld
1 S 0 28 2 0 61 -19 - 0 down_i ? 00:00:00 VCHIQ-0
1 S 0 29 2 0 61 -19 - 0 down_i ? 00:00:00 VCHIQr-0
1 S 0 30 2 0 60 -20 - 0 down_i ? 00:00:00 VCHIQs-0
1 S 0 31 2 0 60 -20 - 0 rescue ? 00:00:00 iscsi_eh
1 S 0 32 2 0 60 -20 - 0 rescue ? 00:00:00 dwc_otg
1 S 0 33 2 0 60 -20 - 0 rescue ? 00:00:00 DWC Notificati
1 S 0 34 2 0 80 0 - 0 worker ? 00:00:00 kworker/u:1
1 S 0 35 2 0 60 -20 - 0 rescue ? 00:00:00 deferwq
1 S 0 36 2 0 80 0 - 0 worker ? 00:00:00 kworker/u:2
1 S 0 37 2 0 80 0 - 0 mmc_qu ? 00:00:00 mmcqd/0
1 S 0 38 2 0 80 0 - 0 kjourn ? 00:00:00 jbd2/mmcblk0p2
1 S 0 39 2 0 60 -20 - 0 rescue ? 00:00:00 ext4-dio-unwri
5 S 0 154 1 0 80 0 - 720 epoll_ ? 00:00:00 udevd
1 S 0 248 2 0 60 -20 - 0 rescue ? 00:00:00 cfg80211
5 S 0 265 154 0 80 0 - 719 epoll_ ? 00:00:00 udevd
5 S 0 278 154 0 80 0 - 719 epoll_ ? 00:00:00 udevd
1 S 0 285 1 0 80 0 - 438 wait ? 00:00:00 ifplugd.agent
1 S 0 307 1 0 80 0 - 438 wait ? 00:00:00 ifplugd.agent
1 S 0 309 1 0 80 0 - 438 wait ? 00:00:00 net.agent
1 S 0 366 2 0 80 0 - 0 bdi_wr ? 00:00:00 flush-179:0
5 S 0 1503 1 0 80 0 - 1408 poll_s ? 00:00:00 wpa_supplicant
1 S 0 1614 1 0 80 0 - 1223 poll_s ? 00:00:00 dhclient
5 S 0 1914 1 0 80 0 - 436 poll_s ? 00:00:00 ifplugd
5 S 0 1918 1 0 80 0 - 6992 poll_s ? 00:00:00 rsyslogd
1 S 0 1998 1 0 80 0 - 955 hrtime ? 00:00:00 cron
5 S 104 2035 1 0 80 0 - 794 epoll_ ? 00:00:00 dbus-daemon
5 S 102 2081 1 0 80 0 - 1377 poll_s ? 00:00:00 ntpd
5 S 0 2124 1 0 80 0 - 1552 poll_s ? 00:00:00 sshd
5 S 65534 2143 1 0 80 0 - 503 poll_s ? 00:00:00 thd
4 S 0 2163 1 0 80 0 - 935 n_tty_ tty1 00:00:00 getty
4 S 0 2164 1 0 80 0 - 935 n_tty_ tty2 00:00:00 getty
4 S 0 2165 1 0 80 0 - 935 n_tty_ tty3 00:00:00 getty
4 S 0 2166 1 0 80 0 - 935 n_tty_ tty4 00:00:00 getty
4 S 0 2167 1 0 80 0 - 935 n_tty_ tty5 00:00:00 getty
4 S 0 2168 1 0 80 0 - 935 n_tty_ tty6 00:00:00 getty
4 S 0 2169 1 0 80 0 - 515 n_tty_ ttyAMA0 00:00:00 getty
4 S 0 2299 2124 0 80 0 - 2450 poll_s ? 00:00:00 sshd
4 S 0 2342 1 0 80 0 - 6886 poll_s ? 00:00:00 console-kit-da
4 S 0 2413 1 0 80 0 - 5835 poll_s ? 00:00:00 polkitd
5 S 1000 2419 2299 0 80 0 - 2450 poll_s ? 00:00:00 sshd
0 S 1000 2420 2419 2 80 0 - 1357 wait pts/0 00:00:00 bash
1 S 0 2585 1 0 80 0 - 807 poll_s ? 00:00:00 owserver
1 S 0 2702 1 0 80 0 - 809 inet_s ? 00:00:00 owhttpd
0 S 0 2818 307 0 80 0 - 421 hrtime ? 00:00:00 sleep
0 S 0 2821 309 0 80 0 - 421 hrtime ? 00:00:00 sleep
0 S 0 2824 285 0 80 0 - 421 hrtime ? 00:00:00 sleep
4 S 0 2825 2420 0 80 0 - 1279 poll_s pts/0 00:00:00 sudo
4 R 0 2826 2825 0 80 0 - 1033 - pts/0 00:00:00 ps
pi@raspberrypi ~ $
 
For those using the WiPi wireless adapter I have found 2 tips on the Internet which maybe useful -

Enable Re-connect
By default the WiPi will not try and reconnect to your router if it drops the connections. Create a new script containing the commands below which will continually check for drops and reconnect if a drop is detected -

#!/bin/bash

while true ; do
if ifconfig wlan0 | grep -q "inet addr:"
then
sleep 60
else
echo "Network connection down! Attempting reconnection."
ifup --force wlan0
sleep 10
fi
done


Turn Off Power Saving

Add
wireless-power off

To your etc/network/interfaces file. I was getting a lot of drop outs and thought it was my power adaptor but it turns out this is a known problem with these adapters. I will have added this to my config and so far, no dropouts......will keep you updated.
 

Rob

Member
Apr 26, 2012
743
424
Ill try your wireless tips this week.

The humidity sensor is not 1wire so it does not use owfs. It uses a specific protocol which is not common however noticed adafruit have created a program that that reads the data for the 11 and 22 sensors, not sure if it handles the 21 sensor. Each of these 3 types have different data registers
 

Rob

Member
Apr 26, 2012
743
424
We may get it to work, I'm interested in connectIng these as well. I got the model 22 whIch seems to have better support however also got a model 21 to try, they are soo cheap
 
You had any more ideas on using cosm for collecting data. I am still trying to get my head around cosm but it would be good to just have the pi as a data collected and for it to post to a website. This way, we would not need to open up ports on routers to view the pi's data when not on your own network and the data would be reachable anywhere in the world!

There I go again....loads of ideas and not enough of my own knowledge to implement them!
 

Rob

Member
Apr 26, 2012
743
424
just purchased the camera module, AUD$32.00
Don't know what I will do however looks easy to capture either a snapshot image or a 10sec video and simply store to disk. Should be easy to show on the RPi apache2 web site.