Author Topic: ReefPi Interface WebSite  (Read 20421 times)

0 Members and 1 Guest are viewing this topic.

Offline Bigguy

  • Administrator
  • Sr. Member
  • *****
  • Posts: 498
  • Karma: 2

+Info

  • Gender: Male
  • Large Fat and Ugley
    • ReefPI
Re: ReefPi Interface WebSite
« Reply #60 on: March 31, 2014, 12:40:08 AM »
ok buddy got 3 temp sensors hooked up :)

Offline Grafne

  • Global Moderator
  • Full Member
  • *****
  • Posts: 206
  • Karma: 0

+Info

Re: ReefPi Interface WebSite
« Reply #61 on: April 01, 2014, 08:59:01 PM »
For anyone that is following this I have made some pretty major updates to both the controller (python) and UI (PHP)..

the major updates to the UI are
1) we can now graph the readings from a sensor.  if you run the python and go to the LED tab you can see the temperature simulator running and generating data for the graph.
2) updates to allow the user to view and create devices, sensors,  controllers, device types, scheduled tasks
3) update to structure of sensors to make them more generic.

Offline Bigguy

  • Administrator
  • Sr. Member
  • *****
  • Posts: 498
  • Karma: 2

+Info

  • Gender: Male
  • Large Fat and Ugley
    • ReefPI
Re: ReefPi Interface WebSite
« Reply #62 on: April 01, 2014, 10:36:37 PM »
cool best down load it again then still at work at mo but due home around 12 :) lol

the joys of been a support engineer on call

Offline matt20687

  • Administrator
  • Full Member
  • *****
  • Posts: 208
  • Karma: 0

+Info

  • Gender: Male
    • Control your aquarium with a ReefPi!!
Re: ReefPi Interface WebSite
« Reply #63 on: April 01, 2014, 10:40:53 PM »
Things are really starting to look good!

Anyone that's hasn't got SVN installed and set up need to have so we can share code etc!


You want more pie? Have some ReefPi!!!
--------------
Matt

Offline Bigguy

  • Administrator
  • Sr. Member
  • *****
  • Posts: 498
  • Karma: 2

+Info

  • Gender: Male
  • Large Fat and Ugley
    • ReefPI
Re: ReefPi Interface WebSite
« Reply #64 on: April 02, 2014, 09:33:43 AM »
Simon - the easiest way to get it running is to run the python script 'core.py'.  This will create the DB for you (you are having the same issue Matt is having due to password differences).  I am in the process of gathering the password information into a config file that we can keep local to fix this.

get the latest version and go to the 'other' tab you will see some goodies.... :-)

not seeing another yab and a few errors last night

got today off go to hospital at 11 so will have a look this afternoon :)

Offline Grafne

  • Global Moderator
  • Full Member
  • *****
  • Posts: 206
  • Karma: 0

+Info

Re: ReefPi Interface WebSite
« Reply #65 on: April 02, 2014, 05:53:16 PM »
Simon - as I said give me a shout on Skype and I can help you get started.

Matt - this looks like the solution to our issue of submitting the MySQL INSERT statements on page refresh.. http://stackoverflow.com/questions/8553466/why-does-my-form-send-the-data-twice-after-refresh

Offline matt20687

  • Administrator
  • Full Member
  • *****
  • Posts: 208
  • Karma: 0

+Info

  • Gender: Male
    • Control your aquarium with a ReefPi!!
Re: ReefPi Interface WebSite
« Reply #66 on: April 02, 2014, 06:21:21 PM »

Simon - as I said give me a shout on Skype and I can help you get started.

Matt - this looks like the solution to our issue of submitting the MySQL INSERT statements on page refresh.. http://stackoverflow.com/questions/8553466/why-does-my-form-send-the-data-twice-after-refresh

Check your skype from last night lol


You want more pie? Have some ReefPi!!!
--------------
Matt

Offline Grafne

  • Global Moderator
  • Full Member
  • *****
  • Posts: 206
  • Karma: 0

+Info

Re: ReefPi Interface WebSite
« Reply #67 on: April 02, 2014, 06:31:04 PM »
lol.. at work so not on Skype.. will check when I get back to the hotel.. :-)

Offline matt20687

  • Administrator
  • Full Member
  • *****
  • Posts: 208
  • Karma: 0

+Info

  • Gender: Male
    • Control your aquarium with a ReefPi!!
Re: ReefPi Interface WebSite
« Reply #68 on: April 02, 2014, 07:04:25 PM »
The code in your link does have bit more than mine. I will give it a bash tonight.


You want more pie? Have some ReefPi!!!
--------------
Matt

Offline Bigguy

  • Administrator
  • Sr. Member
  • *****
  • Posts: 498
  • Karma: 2

+Info

  • Gender: Male
  • Large Fat and Ugley
    • ReefPI
Re: ReefPi Interface WebSite
« Reply #69 on: April 02, 2014, 07:56:42 PM »
Here is what i have so Far

SSh

sudo nano /etc/ssh/sshd_config
#  to change ssh port :)
apt-get update
apt-get upgrade
 
Static IP
http://stuffaboutcode.blogspot.com.au/2012/05/raspberry-pi-setting-static-ip-address.html
 
nano /etc/network/interfaces
  # iface eth0 inet dhcp
 
  iface eth0 inet static
    address 192.168.1.xx  <- update to suit your network
    netmask 255.255.255.0
    network 192.168.1.0
    broadcast 192.168.1.255
    gateway 192.168.1.1
 
 
sudo nano  /etc/resolv.conf
# add name servers here :)

sudo nano /etc/apt/sources.list.d/raspi.list
# add the following

deb http://archive.raspberrypi.org/debian/ wheezy main untested

sudo apt-get update
sudo apt-get upgrade

Install apache
http://fusionstrike.com/2012/installing-apache2-raspberry-pi-debian
 
   groupadd www-data     # this was all ready on mine ?
  usermod -a -G www-data www-data
  apt-get update
  sudo apt-get install apache2 sqlite3
 
Install SAMBA     
http://elinux.org/R-Pi_NAS
 
 # not sure if this is needed but there is info on the link


 
I2C (RASPBIAN)
http://nathan.chantrell.net/20120602/raspberry-pi-io-expander-board/
http://www.bootc.net/projects/raspberry-pi-kernel/
 
  sudo nano  /etc/modprobe.d/raspi-blacklist.conf
  comment out the line: blacklist i2c-bcm2708
  sudo nano  /etc/modules    # add new line containing:
i2c-dev
  sudo nano  /etc/modprobe.d/raspi-blacklist.conf
  comment out the line: blacklist i2c-bcm2708
  sudo nano  /etc/modules    # add new line containing:
i2c-dev
w1-gpio
w1-therm

  sudo apt-get install i2c-tools
  # i did get a error but had installed ?

  sudo adduser pi i2c

  #rebbot ?  i did

  i2cdetect -y 0   
  # 2cdetect -y 0 (use i2cdetect -y 1 if you have one of the new revision 2 Raspberry Pis with mounting holes and marked as made in the UK)
      0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
00:          -- -- -- -- -- -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
40: 40 -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: -- -- -- -- -- -- -- 57 -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- 68 -- -- -- -- -- -- --
70: 70 -- -- -- -- -- -- --         

#you should see something like above :)


sudo modprobe w1-gpio
sudo modprobe w1-therm


ls

#  i had 28-000003e7b450  28-000003e7bf09  28-000003e7cc9e  w1_bus_master1  3 temp sensors conected :)

So Far So Good

Comments Please any thing else we need ?
« Last Edit: April 02, 2014, 08:56:37 PM by Bigguy »

Offline Grafne

  • Global Moderator
  • Full Member
  • *****
  • Posts: 206
  • Karma: 0

+Info

Re: ReefPi Interface WebSite
« Reply #70 on: April 02, 2014, 08:46:57 PM »
MySQL server?