Ss Brewing Technologies Giveaway!

Home Brew Forums > Home Brewing Beer > Automated Brewing Forum > Help with Web Interface
Reply
 
LinkBack Thread Tools
Old 06-30-2013, 09:44 PM   #1
Adeering
Feedback Score: 0 reviews
Recipes 
 
Join Date: Jan 2012
Location: Sherwood, Arkansas
Posts: 685
Liked 46 Times on 38 Posts
Likes Given: 4

Default Help with Web Interface

So Im working on a project with Raspberry Pi and looking to do a web interface but havent working with SSH, python or html. I have done lots of programming with java though.

Wondering if anyone has some info on some good tutorials or information on getting started with those.

__________________
Primary: None
Secondary: None
Bottle Conditioning/Carbonating: Apple Pie
Kegged: None :(
Bottled: None
Next Brews: Pumpkin Ale, Unknown
Adeering is offline
 
Reply With Quote Quick reply to this message
Old 07-01-2013, 04:29 PM   #2
refluxologist
Junior Member
HBT_SUPPORTER.png
Feedback Score: 0 reviews
Recipes 
 
Join Date: Feb 2013
Location: San Carlos, CA
Posts: 25
Likes Given: 3

Default

SSH is used to connect to a shell on the RaspPi, using windows PuTTY is a great application for it.

OSX's terminal app is good there.

Java is a perfectly acceptable platform to work with on the raspi. if thats what your comfortable with.

http://learn.adafruit.com/category/raspberry-pi

That place is a great place to get your feet wet with the platform.

__________________
refluxologist is offline
 
Reply With Quote Quick reply to this message
Old 07-04-2013, 05:41 AM   #3
tob77
Feedback Score: 0 reviews
Recipes 
 
Join Date: Sep 2012
Location: Napa, CA
Posts: 62
Liked 6 Times on 4 Posts
Likes Given: 21

Default

I am using python with web.py in my raspberry pi project. I've got a nice interface started right now using html/javascript/jQuery widgets from http://www.jmwidgets.com/. They are fairly easy to work with and work good with either my laptop or my nexus tablet.

__________________
tob77 is offline
 
Reply With Quote Quick reply to this message
Old 07-13-2013, 05:12 PM   #4
Adeering
Feedback Score: 0 reviews
Recipes 
 
Join Date: Jan 2012
Location: Sherwood, Arkansas
Posts: 685
Liked 46 Times on 38 Posts
Likes Given: 4

Default

Quote:
Originally Posted by tob77 View Post
I am using python with web.py in my raspberry pi project. I've got a nice interface started right now using html/javascript/jQuery widgets from http://www.jmwidgets.com/. They are fairly easy to work with and work good with either my laptop or my nexus tablet.
Any chance you could point me towards a good getting started tutorial for it.

Also want to make sure im understanding the process correctly:

1. You have a server on the raspberry pi that is running a script or a web page?
2. View the webpage (written in html/javascript/css/jquery)
3. User interacts with webpage which the jquery registeres and then runs the python script to react?
4. Python script can then talk back to web page
__________________
Primary: None
Secondary: None
Bottle Conditioning/Carbonating: Apple Pie
Kegged: None :(
Bottled: None
Next Brews: Pumpkin Ale, Unknown
Adeering is offline
 
Reply With Quote Quick reply to this message
Old 07-14-2013, 07:05 AM   #5
tob77
Feedback Score: 0 reviews
Recipes 
 
Join Date: Sep 2012
Location: Napa, CA
Posts: 62
Liked 6 Times on 4 Posts
Likes Given: 21

Default

I am by no means an authority on this subject. This has been my first experience with python, html, and javascript. web.py is a web server framework for python. All of my server logic like temperature monitoring, temperature control, turning pumps and valves on an off, etc. is handled on the python server. The html, javascript, and css files that web browsers use to display the interface is served up via the web.py server. Communications between the client side web browser and the python server is accomplished by get and post calls to the web.py server using the ajax function included in the jQuery library(javascript).

The widgets from jmwidgets.com that I mentioned before are very easy to use once you have a data widget created. I dirty hacked together a data widget that works with my web.py server by tweaking their php data widget example.

Check out steve071's github if you haven't already: http://www.homebrewtalk.com/f235/ras...roller-344529/
I used his python server structure as a model for my project. My server is a bit more complicated with a lot more data being passed between the server and the client. I'm sure that there is a simpler and more concise way of passing larger quantities of data through the different processes and the web server, but I didn't feel like fixing something that wasn't broke.

Let me know if your interested in seeing my jmwidgets data widget or anything else. I am planning on setting up a github when I get things a little more finalized. However, I haven't had a lot of time to work on it lately. In fact, I haven't even touched it in a few months.

__________________
tob77 is offline
 
Reply With Quote Quick reply to this message
Reply



Quick Reply
Message:
Options
Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
My latest DIY project: UberFridge (temp controller with web interface) Elkoe DIY Projects 18 11-03-2012 11:42 AM
Shank/Wood collar interface protection? n8dagr8 DIY Projects 2 05-08-2012 04:41 AM
Teredo Tunneling Pseudo Interface McMalty General Chit Chat 7 06-13-2011 12:17 PM
Email-like interface to PMs Lil' Sparky HomeBrewTalk Announcements & Feedback 13 02-13-2008 09:48 PM