Comments (5)
i would love to see this in Fahrenheit too
from node-red-contrib-thermostat-scheduler.
Has anyone rewritten it into Fahrenheit? I would convert my whole house to Celsius, but I think my wife would be frustrated. I am new to this type of programming (more of a ladder logic guy). I started converting everything to Fahrenheight, but due to uncommented code and not understanding all of what I am working with, I temporarily gave up. I do learn best by reverse engineering and have learned a lot about NodeRed from this code, but I wouldn't mind stealing someone else's code who has already done it just because I don't have enough time right now.
from node-red-contrib-thermostat-scheduler.
It reads whatever temp you have set up for your thermostat
Just need to update the UI with a new range in node red "Nest" line 234 and 235 need to be updated to whatever you like and it will automatically just work
I put 40 for the min and 100 for the max
I am still lost on how the schedule works so good luck
from node-red-contrib-thermostat-scheduler.
Under the "Settings Page" node, you will find this very easy to change code:
function bar(mm,val)
{
if (val==12 || val==12.5) {
if (val==13 || val==13.5) {
if (val==14 || val==14.5) {
if (val==15 || val==15.5) {
if (val==16 || val==16.5) {
if (val==17 || val==17.5) {
if (val==18 || val==18.5) {
if (val==19 || val==19.5) {
if (val==20 || val==20.5) {
if (val==21 || val==21.5) {
if (val==22 || val==22.5) {
if (val==23 || val==23.5) {
if (val==24) {
}
Later down the code are other functions that I am having a hard time reverse engineering to determine what (if anything) needs to be changed:
(function(scope){
scope.ID = ID;
scope.send({payload: '29'})
scope.$watch('msg', function(msg) {
selec(last,0); last=msg.selector; selec(last,1);
for (var x=0; x<24; x++)
{
var w="#t"+x+ID; bar(w,msg.timing[((msg.days-1)*24)+x].toFixed(1));
var v="#v"+x+ID; $(v).text(msg.timing[((msg.days-1)*24)+x].toFixed(1)+"°")
}
for (var x=0; x<2; x++) { var w="#s"+x+ID; $(w).text(msg.timing[168+x].toFixed(1)+"°"); }
$("#d0"+ID).text(thedays[msg.days-1]);
if ((last>4) &&(last<29))
$("#current"+ID).text(msg.timing[((msg.days-1)*24)+last-5].toFixed(1) + "°");
else
$("#current"+ID).text("-");
if (msg.foryou!="") { stat(msg.foryou); }
});
from node-red-contrib-thermostat-scheduler.
I too would love to see a Fahreneit solution! I'm a total layman, but playing with it. I too wonder about the function. For the moment, I'm leaving it because I think whatever it's doing would only be until the schedule sends the next update. We'll see.
Obviously, a first step, but here's my conversion:
function bar(mm,val)
{
if (val==53.6 || val==54.5) {
if (val==55.4 || val==56.3) {
if (val==57.2 || val==58.1) {
if (val==59 || val==59.9) {
if (val==60.8 || val==61.7) {
if (val==62.6 || val==63.5) {
if (val==64.4 || val==65.3) {
if (val==66.2 || val==67.1) {
if (val==68 || val==68.9) {
if (val==69.8 || val==70.7) {
if (val==71.6 || val==72.5) {
if (val==73.4 || val==74.3) {
if (val==75.2) {
}
Later in the same settings node, I converted the send({payload: numbers as well.
from node-red-contrib-thermostat-scheduler.
Related Issues (20)
- refactor needed HOT 1
- Question about timezone
- Question about timezone HOT 2
- How to put it in a lovalace UI HOT 3
- Bug | Can’t see icons
- Nothing loading HOT 1
- Window opening sensor(s) HOT 1
- problemi con la dashboard
- TypeError: Cannot read properties of undefined (reading 'selector')
- More than one Thermostat possible? How? HOT 4
- calendar schedule page problem on nodered 3.0.1 HOT 1
- Multiple thermostats or multiple zones?
- I'm missing a "Summer mode"
- Home assistant integration HOT 2
- Schedule with half hours
- No widget HOT 1
- Multiple istances HOT 6
- How to use other temperature sensors?
- Add to Lovelace HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from node-red-contrib-thermostat-scheduler.