Skip to content

A basic implementation of an IoT, Client/Server Application, for manual or automatic command a window shades.

Notifications You must be signed in to change notification settings

driouecheMed/smart-window

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

smart-window

This is a Client/Server IoT project, Smart Window.

This project:

  • Automize the window shades to open and close automatically based on the outside sun light.
  • Contain a Dashboard (visualize the sun light lux value, and the shades position history).
  • Add the ability to the client to command the shades from any place all over the world.

Notes:

  • Due to the lack of Hardware, we simulate the hardware by a .txt file, for actuators we write in a file, and for sensors we read value from the file.
  • You can modify the file manipulation parts by the code of ur hardware based on hardware reference.
  • Make sure to change the absolute paths in the project before deployment.

Hardware

  • Raspberry pi
  • LDR
  • Stepper motor (In the file .txt i named "servo-moter" but it should be a Stepper motor 😶 )

Server (Raspberry pi)

  • Written in C, python and shell.
  • Get data from sensors and command actuators.
  • Save sensors values and actuators action to the database.
  • The database contains two tables:
    • ldr table: contain values and time of saving.
    • motor_hitory table: contain time of changing position, direction (up/down, open/close) and type (manual/automatic).

Client (Web Application)

  • Written in php, javascript, html, and bootstrap for styling.
  • Dashboard is mobile friendly.
  • Dashboard for visualizing the system history and command the shades.

Dashboard

About

A basic implementation of an IoT, Client/Server Application, for manual or automatic command a window shades.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published