Author Topic: Spec and Requirements for the WebUI  (Read 12877 times)

0 Members and 1 Guest are viewing this topic.

Offline matt20687

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

+Info

  • Gender: Male
    • Control your aquarium with a ReefPi!!
Re: Spec and Requirements for the WebUI
« Reply #30 on: March 16, 2014, 09:39:04 PM »

I was thinking the same Just a Blank Page to start with and see how we go from their any input or guidance from anybody is appreciated :)

Definitely agree, in the end this is what I started doing.

I made the form that wrote to a database and reads from a database into a drop down, happy to keep progressing things but databases are really not my strong area. I am a lot better with HTML and PHP.


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: Spec and Requirements for the WebUI
« Reply #31 on: March 16, 2014, 10:22:50 PM »
HTML i can sort of work my way around but php well i will be playing going to install wamp on at work so i can work on this at work
Will Post some results
Is it easy mat to transfer the pages from say PC to pi ?
Will Have a read tomorrow ;)

Offline matt20687

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

+Info

  • Gender: Male
    • Control your aquarium with a ReefPi!!
Re: Spec and Requirements for the WebUI
« Reply #32 on: March 16, 2014, 11:22:38 PM »
HTML i can sort of work my way around but php well i will be playing going to install wamp on at work so i can work on this at work
Will Post some results
Is it easy mat to transfer the pages from say PC to pi ?
Will Have a read tomorrow ;)

My personal opinion would be to develop on PC and move over to the pi but it really depends on your set up with the pi and how comfortable you are using the OS.
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: Spec and Requirements for the WebUI
« Reply #33 on: March 16, 2014, 11:31:03 PM »
i can work with just about any os dude i run and work with windows at work i have a mac and linux boxes at home :)
So the OS is not the issue its the web stuff that's scary but so was Linux but i am getting more and more comfortable with it :)

Offline Grafne

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

+Info

Re: Spec and Requirements for the WebUI
« Reply #34 on: March 16, 2014, 11:35:59 PM »
I am happy to help with the DB side of things.  I think the problem you're an into is that the php executes sql statements so you will have to have a grasp of sql.  This can get pretty complex when you start having to join data form different tables but I can help with that.

I think there are 2 approaches we should consider
1) Structure the web UI code so that all calls relating to the DB are in one place (object, file or whatever PHP uses) and tell me what you want the functions to do I can do the sql for you?
2) I write all the interface stuff in python and you  to cal the python directly from php.  I will have a google around on how easy that would be to do tomorrow. All you would have to specify is what you want to do (get data, set something) and how you want any data back.  I think longer term you would be able to figure out how to do most of this yourself given examples.

Offline perkint

  • Full Member
  • ***
  • Posts: 226
  • Karma: 0

+Info

  • Gender: Male
Re: Spec and Requirements for the WebUI
« Reply #35 on: March 17, 2014, 01:23:31 AM »
I have to say, considering the position we are at, I agree using the templates was a step too mich, too early. Let's get the design agreed for how it hangs together, and worry about making it pretty and the user interface usable, after we actually have a working mechanical structure underneath.

What do we have as a basic structure?
All displays show alerts (and certain statuses eg temp) based on reading what? Readings table? Or (I think better) an alerts table (which can have priority to signify P1 issue or P2 (or P3, 4, whatever) to signify normal status report)
Device config
Action config (what to do based on the device readings - turn something on/off, email/text, etc)
Schedule config (primarily lighting set up - LED PWM, algae light switching, etc, but also how often to hit sensors for a report - temp sensors, etc)
System config (email config, text config, etc)
Status report (display all readings with the ability to drill down into individual devices and history of readings and actions)

Anything I've missed?

Tim

Offline Bigguy

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

+Info

  • Gender: Male
  • Large Fat and Ugley
    • ReefPI
Re: Spec and Requirements for the WebUI
« Reply #36 on: March 17, 2014, 12:29:52 PM »
OK So I have installed WAMP on my PC at Work

And Uploaded this
http://www.reefpi.net/BIGGUY
Let ME know what you think and what headings we need I think this is a start I think we can tweak it as we go along if everybody is ok with this Then lets build this up between us

Simon

Offline Grafne

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

+Info

Re: Spec and Requirements for the WebUI
« Reply #37 on: March 17, 2014, 12:35:43 PM »
excellent dude!! good start.

can you coordinate with Matt please ? we were working a bit last night.

Also can we start to check code into the google code repository we setup? this is the easiest way to make sure we coordinate how we work.  We need to make sure we are all working with the same DB from day 1 otherwise its going to be a nightmare later.

Offline Bigguy

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

+Info

  • Gender: Male
  • Large Fat and Ugley
    • ReefPI
Re: Spec and Requirements for the WebUI
« Reply #38 on: March 17, 2014, 12:38:22 PM »
NO Database yet I will Do some Tweaks then upload the code to there

The next bit is to get this to talk to a database but before all that i just what a general lay out

Keep looking i have tweaked it again lol
Dam Customers Keep Phoning while i am trying to work on this

Offline matt20687

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

+Info

  • Gender: Male
    • Control your aquarium with a ReefPi!!
Re: Spec and Requirements for the WebUI
« Reply #39 on: March 17, 2014, 12:59:54 PM »

NO Database yet I will Do some Tweaks then upload the code to there

The next bit is to get this to talk to a database but before all that i just what a general lay out

Keep looking i have tweaked it again lol
Dam Customers Keep Phoning while i am trying to work on this


The database is all set up on reefpi.net. Simon, Graeme you around tonight to Skype about this?


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: Spec and Requirements for the WebUI
« Reply #40 on: March 17, 2014, 02:04:15 PM »
not ready for that bit trying to sort design and  layout first dude and Once we are happy will work on front page
I have had some help from our Website Designer for getting this far
Any Thoughts on layout for the front page :)
Updated a bit more and now has the logo :)
http://www.reefpi.net/BIGGUY/

:)

Offline smudge

  • Full Member
  • ***
  • Posts: 127
  • Karma: 0

+Info

  • Gender: Male
Re: Spec and Requirements for the WebUI
« Reply #41 on: March 17, 2014, 02:36:46 PM »
Looking good Simon

Offline Bigguy

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

+Info

  • Gender: Male
  • Large Fat and Ugley
    • ReefPI
Re: Spec and Requirements for the WebUI
« Reply #42 on: March 17, 2014, 02:41:32 PM »
Starting to Take Shape :) This Work Thing is getting in way now lol

Offline Grafne

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

+Info

Re: Spec and Requirements for the WebUI
« Reply #43 on: March 17, 2014, 05:04:50 PM »
Nice one Simon!

Be careful about getting carried away with nice shiny bits when the core functions are not done seriously I would get the DB connect working and start working with the same version and Matt and myself to ensure minimal rework due to using different versions of databases..  I am around on Skype tonight if we want to have a chat?

Offline Bigguy

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

+Info

  • Gender: Male
  • Large Fat and Ugley
    • ReefPI