Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create demo docker image with virtual devices #196

Open
hfedcba opened this issue Apr 23, 2015 · 5 comments
Open

Create demo docker image with virtual devices #196

hfedcba opened this issue Apr 23, 2015 · 5 comments
Assignees
Labels
Milestone

Comments

@hfedcba
Copy link
Member

hfedcba commented Apr 23, 2015

No description provided.

@hfedcba hfedcba self-assigned this Apr 23, 2015
@hfedcba hfedcba added this to the 0.6 milestone Apr 23, 2015
@spali
Copy link
Member

spali commented Apr 23, 2015

my suggestion
could just be some basic configuration available as package like openweather, just with a "working" setup.

  • should provide some basic virtual device xml's
    • simple switch
    • simple boolean state (i.e. light)
    • simple analog output (i.e. values 0-255)
    • ...
  • maybe use the already existing openweather extension to trigger the examples devices
  • scripts which provides some example logic
  • script with is triggered by the package installation that setup everything.

then a docker image which automatically install this package.

@hfedcba
Copy link
Member Author

hfedcba commented Apr 23, 2015

Sounds good and should be quickly done! There should probably also be a device, that generates random output.

@spali
Copy link
Member

spali commented Apr 23, 2015

What about a "dynamic" virtual device configurable with just xml's?
A Homegear extension which generates automatically devices based on the device xml files? This would also reduce the effort for creating own simple devices.
I know I raise another topic here, but would also help here so the sample devices could be made without any coding, just defining the xml's ;)

I have seen, there are already some possibilities with the <run_program> in the xml files. Which could then be used to generate some random output devices.
Just had problems with it last time I tried it, the defined script started randomly a few minutes after Homegear instead directly after the start. Maybe there is some more testing and improvement needed in this functionality.

@hfedcba
Copy link
Member Author

hfedcba commented Apr 24, 2015

Hmm, run_program should work actually. The program should be executed, when all physical interfaces are connected. I will test it again the next days ;-).

What exactly do you have in mind with the virtual device? How should devices be generated automatically based on the xml file?

@spali
Copy link
Member

spali commented Apr 24, 2015

Thought to generate (add) the device automatically. But now I think this is maybe wrong, because xml is equal to a device type not a device.
There must be anyway a script to setup everything, so we should add the devices there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants