Temp Display only.

Things to come.
Post Reply
roc-craven
Posts: 20
Joined: Fri Jan 06, 2012 1:41 pm
Bot?: No

Temp Display only.

Post by roc-craven »

Is there a way to display just the Temps from the BCS-462 on our main webpage? We would like to have just the Temps notthe process.

Jon
Jon Sheldon
jon@bugnutty.com
Owner/Brewer
Bugnutty Brewing Company
www.bugnutty.com
321-452-4460
User avatar
ECC
Posts: 676
Joined: Fri Sep 12, 2008 12:29 pm
Bot?: No
Contact:

Re: Temp Display only.

Post by ECC »

Not in the current firmware. If this is something that people would find useful we could look at it for future releases.
roc-craven
Posts: 20
Joined: Fri Jan 06, 2012 1:41 pm
Bot?: No

Re: Temp Display only.

Post by roc-craven »

For us it would be. I can display the ultemp.dat file in a web page. I just cant figure out how to parse it so I can get the temp readings. I'm not so good with HTML.
Jon Sheldon
jon@bugnutty.com
Owner/Brewer
Bugnutty Brewing Company
www.bugnutty.com
321-452-4460
User avatar
ECC
Posts: 676
Joined: Fri Sep 12, 2008 12:29 pm
Bot?: No
Contact:

Re: Temp Display only.

Post by ECC »

Ah, ok. Maybe I misunderstood your question. Are you trying to get your existing (non-BCS) website to display BCS temperatures?

There is a stripped down page on every BCS, meant for limited mobile viewing. You can look at the source to see an example.
http://192.168.0.105:8081/m.html
roc-craven
Posts: 20
Joined: Fri Jan 06, 2012 1:41 pm
Bot?: No

Re: Temp Display only.

Post by roc-craven »

Yes that is basicly what we want. The only problem is that our web page is hosted off site so I cant see the 462 from the webpage. At least I dont know how to see it.
Jon Sheldon
jon@bugnutty.com
Owner/Brewer
Bugnutty Brewing Company
www.bugnutty.com
321-452-4460
User avatar
ECC
Posts: 676
Joined: Fri Sep 12, 2008 12:29 pm
Bot?: No
Contact:

Re: Temp Display only.

Post by ECC »

To accomplish this, you will have to open up the BCS to outside access. We have some instructions here:
http://www.embeddedcc.com/wiki/index.ph ... g_Remotely

Then, in your web page, you can poll the ultemp.dat file, as you have done internally. The data definitions are defined here:
http://www.embeddedcc.com/wiki/index.ph ... Ultemp.dat

From there, its just a matter of parsing out the values that you want to display, and and inserting them into the html. If you are not comfortable with html/javascript, I would recommend getting help from your website guru.
roc-craven
Posts: 20
Joined: Fri Jan 06, 2012 1:41 pm
Bot?: No

Re: Temp Display only.

Post by roc-craven »

Here is the script I wrote to parse the temps into html with javascript. Is it posible to get the ultemp.dat file with needing the password?

Code: Select all

<script language="JavaScript">
	var client = new XMLHttpRequest();
    client.open('GET', 'http://your.bcs.462:address/ultemp.dat');
    client.onreadystatechange = function() {
	}
	client.send();
 
	var ultemps= (client.responseText);
	
    var temp= ultemps.split(","); 
    var hlt=  (temp[0, 3]/10);
	var mash=  (temp[0, 4]/10);
	var boil=  (temp[0, 5]/10);
	
	//document.write(hlt, mash, boil);

//-->

</script>
Jon Sheldon
jon@bugnutty.com
Owner/Brewer
Bugnutty Brewing Company
www.bugnutty.com
321-452-4460
roc-craven
Posts: 20
Joined: Fri Jan 06, 2012 1:41 pm
Bot?: No

Re: Temp Display only.

Post by roc-craven »

Bump
Jon Sheldon
jon@bugnutty.com
Owner/Brewer
Bugnutty Brewing Company
www.bugnutty.com
321-452-4460
brahn
Posts: 543
Joined: Thu Dec 13, 2012 11:01 am
Bot?: No

Re: Temp Display only.

Post by brahn »

If you have a password enabled on your device, you will need to supply that password in order to get ultemps.dat.

Can you provide a little more information about your setup? What software is running on the web server where you want to display the temperature?

I would suggest looking into BCS.client, the author is part of the new development team for the BCS.

https://github.com/cscade/BCS.client
roc-craven
Posts: 20
Joined: Fri Jan 06, 2012 1:41 pm
Bot?: No

Re: Temp Display only.

Post by roc-craven »

I guess there is my problem. I have no clue how to provide the password automatically. I know how to brew beer, write basic HTML and .net so I see some more reading in my future.
Jon Sheldon
jon@bugnutty.com
Owner/Brewer
Bugnutty Brewing Company
www.bugnutty.com
321-452-4460
Post Reply