/    Sign up×
Community /Pin to ProfileBookmark

Celcius to Fahrenheit

I am receiving a variable that represents a celcius temperature. I need to display this variable as fahrenheit. However, the plot thickens.

The web pages are stored on an Echelon iLon web Server.(Used for Automated Facilities)I am receiving the variable from a temperature sensing unit. The “iLonWeb” code below is interpreted from the web server. The code below says to display (func=ShowValue) the information coming from this address “symbol=NVE_AS:SN.DM:0.SU:2.NO:1.ST:UA.PR:0.AU:0.SY:0.NI:0.NS:0.RY:3.TX:192.TY:105.SZ:2”

<iLonWeb func=ShowValue symbol=NVE_AS:SN.DM:0.SU:2.NO:1.ST:UA.PR:0.AU:0.SY:0.NI:0.NS:0.RY:3.TX:192.TY:105.SZ:2></iLonWeb>

The results are displayed in Celcius. I need to convert and display the data as Fahrenheit.

Any and All Help is Appreciated.
David

to post a comment
JavaScript

3 Comments(s)

Copy linkTweet thisAlerts:
@oleragNov 20.2003 — Probably missing what your asking for but the

Celsius -> Farenheit conversion is, I believe,

F = (9/5) + 32
Copy linkTweet thisAlerts:
@dburnham4739authorNov 20.2003 — Thanks, but I am lost on the Java Script code. I was asked to create a web page that will allow this companies management to view/control their lab freezers with a web browser. The issue is that the sensing unit reports in celcius and they want to see Fahrenheit.

I do not know Java Script.

Thanks,

David
Copy linkTweet thisAlerts:
@oleragNov 20.2003 — This script permits the user to enter the Celcius temp and

the converion is performed/displayed when the button is

pressed.

[code=php]
<html>
<head>
<script type="text/javascript">
function convert(form) {
var celcius = form.celcius.value;
form.fahrenheit.value = celcius * (9/5) + 32;
}
</script>
</head>
<body>
<center>
<b>Temperature Conversion</b>
<form>
<b>Celcius:</b>&nbsp;&nbsp;<input type="text" name="celcius">
<b>Fahrenheit:</b>&nbsp;&nbsp;<input type="text" name="fahrenheit" disabled>
<input type="button" name="convertBtn" value="Convert" onClick="convert(this.form)">
</form>
<hr>
</center>
</body>
</html>
[/code]
×

Success!

Help @dburnham4739 spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.15,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...