{"id":13851865,"url":"https://github.com/Paul-Reed/thermostat","last_synced_at":"2025-07-13T03:32:44.919Z","repository":{"id":74197739,"uuid":"79842024","full_name":"Paul-Reed/thermostat","owner":"Paul-Reed","description":"Node-red interactive thermostat","archived":false,"fork":false,"pushed_at":"2019-01-13T19:31:25.000Z","size":212,"stargazers_count":15,"open_issues_count":2,"forks_count":5,"subscribers_count":8,"default_branch":"master","last_synced_at":"2024-11-16T21:10:18.526Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Paul-Reed.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2017-01-23T19:56:19.000Z","updated_at":"2020-12-10T11:16:56.000Z","dependencies_parsed_at":"2024-01-18T10:27:09.954Z","dependency_job_id":"59976da7-05e3-4246-bf71-dc77d78a0b3b","html_url":"https://github.com/Paul-Reed/thermostat","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Paul-Reed%2Fthermostat","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Paul-Reed%2Fthermostat/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Paul-Reed%2Fthermostat/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Paul-Reed%2Fthermostat/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Paul-Reed","download_url":"https://codeload.github.com/Paul-Reed/thermostat/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225855329,"owners_count":17534962,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-04T22:00:44.164Z","updated_at":"2024-11-22T06:30:37.411Z","avatar_url":"https://github.com/Paul-Reed.png","language":"JavaScript","readme":"# thermostat\n## A node-red interactive thermostat\n\n![thermostat](/images/thermo.png)\n### Setup a node-red static directory\n\nCreate a new static directory within your `.node-red` directory from which you can serve the CSS and Javascript files, for example 'public'.  \nGit clone this repo into your newly created static directory;\n\n    cd \u0026\u0026 cd .node-red/public\n    git clone https://github.com/Paul-Reed/thermostat.git\n\nEdit your node-red settings file, usually `nano /home/pi/.node-red/settings.js` as follows;\n\nFirstly, edit httpStatic to read your static folder  \n`httpStatic: '/home/pi/.node-red/public',`\nand also if you havent already done so, httpAdminRoot must also be used to make the editor UI available at a path other than /. So for example if you changed the setting to `httpAdminRoot: '/admin',` then instead of your editor being accessed at the URL `192.168.168.13:1880/` you would use `192.168.168.13:1880/admin`\n\nThen stop and restart node-red\n\n### Use of thermostat\n\nIt is necessary to link both the CSS and Javascript script within the dashboard flow to your static folder, this is normally done by adding;\n\n    \u003cscript type=\"text/javascript\" src=\"/thermostat/thermojs/thermo.js\"\u003e\u003c/script\u003e\n    \u003clink rel=\"stylesheet\" href=\"/thermostat/thermocss/thermo.min.css\"\u003e\n    \nto a template node.\n\nTo load the thermometer widget;\n\n    \u003cdiv id=\"thermostat\"\u003e\u003c/div\u003e\n\nThere is an [example node-red flow](/example/example_flow) to get you started, once you have completed the above.\n\nTo change the temperature setting, hold your mouse down for 1 second on the thermostat, before trying to adjust it, or on a touchscreen device, touch the thermostat for 1 second and then swipe up/down or left/right to adjust.\n\n### Credit\n\nOriginally written by [Dal Hundal](http://codepen.io/dalhundal)\n\n### Licence\n\nFeel free to use the code however you like!\n","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FPaul-Reed%2Fthermostat","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FPaul-Reed%2Fthermostat","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FPaul-Reed%2Fthermostat/lists"}