forked from vxmppb/vxmppb
Merge branch 'main' of https://git.vanderwarker.family/stephen/vxmppb
This commit is contained in:
commit
4bf12d42ab
10
index.js
10
index.js
|
@ -399,11 +399,11 @@ try {
|
|||
let wmc = weather_city_name + " Weather: Tempature: " + w.main.temp + " degrees. Conditions: " + w.weather[0].main + ". Pressure: " +
|
||||
w.main.pressure + ". Wind Direction: " + getDirection(w.wind.deg) + ". Wind Speed: " + w.wind.speed + " miles per hour \r\n";
|
||||
// send weather to mqtt
|
||||
client.publish('weather/temp', 'w.main.temp');
|
||||
client.publish('weather/conditions', 'w.weather[0].main');
|
||||
client.publish('weather/pressure', 'w.main.pressure');
|
||||
client.publish('weather/wind/direction', 'getDirection(w.wind.deg)');
|
||||
client.publish('weather/wind/speed', 'w.wind.speed');
|
||||
client.publish('weather/temp', '' + w.main.temp + '');
|
||||
client.publish('weather/conditions', '' + w.weather[0].main + '');
|
||||
client.publish('weather/pressure', '' + w.main.pressure + '');
|
||||
client.publish('weather/wind/direction', '' + getDirection(w.wind.deg) + '');
|
||||
client.publish('weather/wind/speed', '' + w.wind.speed + '');
|
||||
// send weather to xmpp admin
|
||||
xmpp.send(from, wm);
|
||||
// call admin with latest weather report
|
||||
|
|
Reference in New Issue
Block a user