Skip to content

Connecting a lamp over a wifi shield to open and close book

Notifications You must be signed in to change notification settings

Paulami/IoT_Lamp_wifi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

IoT Lamp Wifi

API

GET /

Returns the degrees to turn, based on the last ping timestamp.

GET /ping

saves timestamp

Requirements

Local setup

cd the-ping-project
bundle install
rackup

Now visit http://localhost:9292 to get the degrees to turn.

After making changes in local git repo, push to heroku with git push heroku master.

Development log

mkdir iot-lamp-wifi
# create all the required files

# Create git repo and add files
git init
git add .
git commit -m "First commit"

heroku apps:create --app iot-lamp-wifi

# Set timezone to India
heroku config:add TZ='Asia/Kolkata'

# Push to heroku
git push heroku master

About

Connecting a lamp over a wifi shield to open and close book

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages