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
Temp Display only.
-
- Posts: 20
- Joined: Fri Jan 06, 2012 1:41 pm
- Bot?: No
Re: Temp Display only.
Not in the current firmware. If this is something that people would find useful we could look at it for future releases.
-
- Posts: 20
- Joined: Fri Jan 06, 2012 1:41 pm
- Bot?: No
Re: Temp Display only.
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.
Re: Temp Display only.
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
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
-
- Posts: 20
- Joined: Fri Jan 06, 2012 1:41 pm
- Bot?: No
Re: Temp Display only.
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.
Re: Temp Display only.
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.
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.
-
- Posts: 20
- Joined: Fri Jan 06, 2012 1:41 pm
- Bot?: No
Re: Temp Display only.
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>
-
- Posts: 20
- Joined: Fri Jan 06, 2012 1:41 pm
- Bot?: No
Re: Temp Display only.
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
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
-
- Posts: 20
- Joined: Fri Jan 06, 2012 1:41 pm
- Bot?: No
Re: Temp Display only.
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.