Code Monkey home page Code Monkey logo

hc2-tools's People

Contributors

theovassiliou avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

anto35 nilmoty

hc2-tools's Issues

Check requiered go version in Makefile

Normally if you are providing a Makefile people do not read to much documentation but make just use of the normal make approach. So checking the requiered golang version would be very conventient.

deflate previously included libraries

On Upload hc2UploadScene expands via the require() statment included libraries.
So for a full round-trip engineering it would be beneficial to "deflate" the included libraries again.

In other words to replace code like

--^ require('library/Debug');
-- LIBRARY BEGIN -------------------------
-- DO NOT MODIFY THE CODE
...
-- LIBRARY END -------------------------

back to
require('library/Debug');

Time stamp in uploaded file

It would be in some situations helpful if we could identify when the scene in the Fibaro HC2 system has been uploaded. A timestamp would be beneficial.

A related but perhaps different feature could be, to include the commit code in case it has been uploaded via a pre-commit hook. So the status of the uploaded scene could be visualised very easy.

Handle multiple require statements

It seems to be a common problem, that multiple libraries import the same libraries. For example a "debug" library can be imported multiple times. As a result only one expanded import should be used. The othe required() should be just commented.

Example

file1.lua
require('libary/debug')
require('library/hueLights')
libary/debug.lua
...
--- Print an error message in the console
Error = function ( message )
  Debug("red", "error: " .. message ) 
end
...

And finally

library/hueLights.lua
require('libary/debug')
.....

Currently we get an expanded file1.lua as

file1.lua
--^ require('libary/debug')
-- LIBRARY BEGIN -------------------------
-- DO NOT MODIFY THE CODE
...
--- Print an error message in the console
Error = function ( message )
  Debug("red", "error: " .. message ) 
end
...
-- LIBRARY END -------------------------

--^ require('library/hueLights')
-- LIBRARY BEGIN -------------------------
-- DO NOT MODIFY THE CODE
--^ require('libary/debug')
-- LIBRARY BEGIN -------------------------
-- DO NOT MODIFY THE CODE
...
--- Print an error message in the console
Error = function ( message )
  Debug("red", "error: " .. message ) 
end
...
-- LIBRARY END -------------------------
-- LIBRARY END -------------------------

This is definitely not what we want.

Instead

file1.lua
--^ require('libary/debug')
-- LIBRARY BEGIN -------------------------
-- DO NOT MODIFY THE CODE
...
--- Print an error message in the console
Error = function ( message )
  Debug("red", "error: " .. message ) 
end
...
-- LIBRARY END -------------------------

--^ require('library/hueLights')
-- LIBRARY BEGIN -------------------------
-- DO NOT MODIFY THE CODE
--^ require('libary/debug')
-- LIBRARY END -------------------------

Or something similiar would be required.

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.