Skip to content

willowcheng/Makerthings-server

Repository files navigation

Makerthings Server

Introduction

The Makerthings server is based on openHAB and all documentation of openHAB is applied. Makerthings server runs on Raspberry Pi and connected to certain items, e.g. RGB strip, power switch, etc, to control them. You can download Makerthings app to connect Makerthings server, or, open website http://137.122.51.94:8080/openhab.app (only available when you are in University of Ottawa school network)

Features

  • Integrate with GPIO binding for Raspberry Pi for controlling GPIO based items, e.g. RGB strip, power switch (check important settings in Raspberry Pi)
  • Integrate Dropbox Synchronization for backup systen folder
  • Integrate Yahoo weather to display temperature and humidity
  • Play music from preset online music list
  • Support My.OpenHab Cloud data service for accessing logs and notification management for mobile devices
  • Support voice control feature with preset commands

Get Started

  1. Download zip file
  2. For Windows users, excute start.bat. For Mac and Linux users, navigate to your server root folder and use command sudo sh start.sh
  3. Open web browser and enter URL http://localhost:8080/openhab.app
  4. You're ready to play around. Remember to get Makerthings Android app to have your things on your phone

Development

  1. Download openHAB Designer application
  1. Open openHAB Designer application and select configurations folder (OpenHab/configurations) in Configurations
  2. If you are completely new, I would suggest you go through the starter webniar for openHAB which gives you the tutorial how to develop step by step
  3. Under OpenHab/configuration folder, development will be made on Items, Persistence, Rules, Scripts, Sitemaps and openhab.cfg
  4. Check OpenHab Home to get ideas of how those things connected and cooperate with each other
  5. For implementing binding, check How To Implement A Binding. For advanced developers, checking How To Implement An Action

Development in Raspberry Pi

  1. Raspberry Pi runs on Linux system can also run openHAB server. By default, Raspbian system is suggested, you can find the download and how to write image into SD card from Download - Raspberry Pi
  2. The easier way to develop server is downloading Linux version of openHAB designer, Linux 64-bit | Linux 32-bit
  3. Use the same development method as Windows or Mac
  4. If you want to edit server in Windows/Mac and upload your files directly to Raspberry Pi. FTP tool is suggested and SSH should be enabled - SSH (Secure Shell) - Raspberry Pi, FileZilla is free for Windows/Mac. Alternatively, using Github to keep your work between laptop and Raspberry Pi is even better. (Push work to Github and pull changes to Raspberry Pi)
  5. Use terminal to navigate to OpenHab server directory and use sudo sh start.sh to run your server
  6. Enable SPI and I2C support for using GPIO
  7. Unexport GPIO before starting server, a more intelligent way is using WiringPi in terminal
  • cd /sys/class/gpio
  • sudo echo 17 > unexport (17 may be altered depending on which pin number will be used)
  1. Install native JNA library via apt-get install libjna-java
  2. If you want to run server automatically once you start Raspberry Pi, Check Linux OS X - openhab

Liu Cheng, University of Ottawa

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published