Git Product home page Git Product logo

mydomoathome-perl's Introduction

MyDomoAtHome Legacy

DOMO/REST Gateway between Domoticz and Imperihome ISS

MP Perl Plack Dancer1 ![REST](https://img.shields.io/badge/REST API-powered-green.svg) PayPal donate button

![REST](https://img.shields.io/badge/RPI-tested ok-green.svg) ![REST](https://img.shields.io/badge/Odroid-tested ok-green.svg) ![REST](https://img.shields.io/badge/Intel-tested ok-green.svg)

MyDomoAtHome

Features and goals

The initial goal is to provide a REST API to ImperiHome ISS that would only allow to see the current state of sensors and interact with them in case of an actuator.

Reached M1 Goal reached

  • Free
  • Multi-platform (Linux, Mac OS X, Windows)
  • Support major type of sensors/feature of Domoticz
    • Weather and Environmental sensors
    • Energy sensors (Electricity, Gas, Water)
    •  Switches
    • Thermostat
  • Dependency-less
  • Perl Dancer 1 engine
  • MPD based players support (Volumio...)

Next M2 milestone will provide extended support to other platforms with Docker and Synology

PayPal donate button

  • Extended platform (support)
    • Provide Docker images
    • Provide Synology package
  • Perl Dancer2 engine
  • Auto updatable
  • Kodi support
  • Support every single type of sensors/feature of Domoticz
    • Dynamic room creation
    • RGB lamps
    • Alarm pannel

Standalone installation (PI, cubie, odroid, intel...)

Install procedure

  • cd ~/domoticz/
  • git clone https://github.com/empierre/MyDomoAtHome MyDomoAtHome
  • cd MyDomoAtHome
  • cp config.yml.def config.yml
  • edit config.yml with your values
  • edit MyDomoAtHome.sh and change the path line 16 to your home installation
  • sh ./run_once.sh

Running the service

The default port is now 3001.

Start the service:

sudo service MyDomoAtHome.sh start

Stop the service :

sudo service MyDomoAtHome.sh stop

Restart the service :

sudo service MyDomoAtHome.sh reload

Update:

  • cd ~/domoticz/MyDomoAtHome
  • sh ./update-mdah.sh

Docker installation

Duplicate the image

docker pull epierre/mdah

Launch the process

Remember to change the IP below and authorize in Domoticz the docker IP range

docker run --name=mdah --env DOMO="http://your_ip:8080" -it --rm -p 3002:3002 epierre/mdah

Check running docker processes

docker ps

Stoping a docker process

docker stop mdah 

Testing the installation

  • Check the domoticz is accessible from the hosting machine: curl http://domoticz_ip:domoticz_port/json.htm?type=devices&filter=all&used=true&order=Name
  • Check the MDAH returns the result from the hosting machine: curl http://gateway_ip:gateway_port/devices

Troubleshooting

Some of the following may help those fast breaking dependencies we now have:

sudo cpnam i DateTime::Format::Strptime
sudo curl -L http://cpanmin.us | perl - --sudo App::cpanminus
sudo cpanm install Time::Moment
sudo cpanm install Task::Plack

Support:

Q&A

  • Remember to add the gateway in the local networks under setup in domoticz !

mydomoathome-perl's People

Contributors

empierre avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.