Skip to content

Home Automation Console based on JQuery, Backbone, Marionette application using Require.js, Bower, Grunt and LESS

License

Notifications You must be signed in to change notification settings

dario01/domotics

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Domotics

Home Automation Console based on JQuery, Backbone, Marionette application using Require.js, Bower, Grunt and LESS

Quick start

Installing this project:

  1. Clone this repository: git clone [email protected]:dario01/domotics.git

  2. Install all npm dependencies defined in package.json: npm install

  3. Install all Bower dependencies defined in bower.json: bower install

Compile and watch files

grunt

Test and watch files

karma start test/js/karma.conf.js

Generate JsDocs

grunt jsdoc

The Web Application can be accessed at

app/index.html

Adding new domotics

Adding a new domotic item instance

Just add an instance to the JSON-LD file at rest/test/domotic-items

Adding a new domotic type

Sensors are read-only, so all you need to do is create a template under app/templates/item with the same name as the domotic item type (but in camel case).

For more complex scenarios, you can have a custom view or model by adding elements to:

  • app/js/view/DomoticViewMapper

  • app/js/model/DomoticModelMapper

See respective examples under:

  • app/js/view/item

  • app/js/model/item

Note: Please keep the schema at schema/domotics.owl.jsonld up-to-date.

Thanks

Many thanks to:

About

Home Automation Console based on JQuery, Backbone, Marionette application using Require.js, Bower, Grunt and LESS

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published