Ok so this is the Temperature part in the metrics file. The only thing that I did was uncomment FtoC and FHtoC. When I went back into the gateway dashboard it was stuck at waiting for socket connection. So I comment the two lines again and the error was still there. I did not edit anything else. Also is this the correct way to change Fahrenheit to Celsius.
//WeatherShield metrics
//uncomment FtoC if you want a F:1234 to be valuated as a Centigrade isntead of F (the first match is picked up and will evaluate, any following defs are ignored)
//FtoC : { name:'C', regexp:/F\
-?\d+\.\d+)/i, value:'', duplicateInterval:3600, valuation:function(value) {return (value - 32) * 5/9;}, unit:'°', pin:1, graph:1, graphValSuffix:'C', graphOptions:{ legendLbl:'Temperature', lines: { lineWidth:1 }}}
F : { name:'F', regexp:/\bF\
-?\d+\.\d+)\b/i, value:'', duplicateInterval:3600, unit:'°', pin:1, graph:1, graphValSuffix:'F', graphOptions:{ legendLbl:'Temperature', lines: { lineWidth:1 } }},
//uncomment FHtoC if you want a F:1234 to be valuated as a Centigrade isntead of F (the first match is picked up and will evaluate, any following defs are ignored)
//FHtoC : { name:'C', regexp:/\bF\
-?\d+)\b/i, value:'', duplicateInterval:3600, valuation:function(value) {return (value/100 - 32) * 5/9;}, unit:'°', pin:1, graph:1, graphValSuffix:'C', graphOptions:{ legendLbl:'Temperature', lines: { lineWidth:1 }}}
FH : { name:'F', regexp:/\bF\
-?\d+)\b/i, value:'', duplicateInterval:3600, valuation:function(value) {return value/100;}, unit:'°', pin:1, graph:1, graphValSuffix:'F', graphOptions:{ legendLbl:'Temperature', lines: { lineWidth:1 }}},
C : { name:'C', regexp:/\bC\
[-\d\.]+)\b/i, value:'', duplicateInterval:3600, unit:'°', pin:1, graph:1, graphValSuffix:'C', graphOptions:{ legendLbl:'Temperature' }},
H : { name:'H', regexp:/\bH\
[\d\.]+)\b/i, value:'', duplicateInterval:3600, unit:'%', pin:1, graph:1, graphOptions:{ legendLbl:'Humidity', lines: { lineWidth:1 }}},
P : { name:'P', regexp:/\bP\
[\d\.]+)\b/i, value:'', duplicateInterval:3600, unit:'"', pin:1, },