GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - NewEvolution/thermostats: Home thermostat survey & graphing application

BranchesTags
Open more actions menu

Latest commit

 

History

112 Commits
112 Commits

Folders and files

NameName
Last commit message
Last commit date
controllers
controllers
 
 
models
models
 
 
public
public
 
 
routes
routes
 
 
.bowerrc
.bowerrc
 
 
.eslintignore
.eslintignore
 
 
.gitignore
.gitignore
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
app.js
app.js
 
 
bower.json
bower.json
 
 
package.json
package.json
 
 
thermostats_screenshot.png
thermostats_screenshot.png
 
 

Repository files navigation

Thermostats

A NodeJS API serving user provided home thermostat setting statistics from PostgreSQL to an AngularJS front end, with SmartyStreets ZIP Code lookups and jVectorMap data visualization.

thermostats screenshot

About

This app was written out of curiosity about people's heating and cooling habits and a desire to work with map-based informational display.

Installation & Execution

  • Install NodeJS
  • Install PostgreSQL
  • Sign up for a free SmartyStreets API access
  • Start PostgreSQL
  • Clone down this repository
  • In a terminal within the repository directory:
    • Set your SmartyStreets Secret Keys as environment variables
      • Your key's Auth ID as AUTHID
      • Your key's Auth Token as AUTHTOKEN
    • Install required Node modules by running npm install
    • Install required Bower components by running ./node_modules/.bin/bower install
    • Generate the jVectorMap script by running ./public/vendor/jvectormap/build.sh
    • Install the jVectorMap script by running mv jquery.jvectormap.min.js public/vendor/jvectormap/
    • Start the server by running node server.js

Usage

Full Site
  • In the browser of your choice, go to http://localhost:3000.
  • Click any state on the map to open the data entry modal window.
  • Radio buttons at the bottom of the page switch display between heating and cooling values.
  • States will change their color values based on the relative average heating and cooling values.
  • Mousing over a state which has data will display the average heating and cooling values.
API
  • http://localhost:3000/api - same as /api/detail.
  • http://localhost:3000/api/detail - full listing of all data.
  • http://localhost:3000/api/detail/<state> - full listing of all data for the <state> provided as the state's 2-letter abbreviation.
  • http://localhost:3000/api/detail/<state>/<county> - full listing of all data for the <county> provided by name in the <state> provided by 2-letter abbreviation.
  • http://localhost:3000/api/summary - listing of data summarized by state for all states in the database.
  • http://localhost:3000/api/summary/<state> - listing of data summary for the <state> provided by 2-letter abbreviation.
  • http://localhost:3000/api/summary/<state>/<county> - listing of data summary for all entries for the <county> provided by name in the <state> provided by 2-letter abbreviation.

About

Home thermostat survey & graphing application

thermostats.herokuapp.com

Resources

Readme
MIT license
Activity

Stars

0 stars

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.