Giter Club home page Giter Club logo

Comments (16)

acockburn avatar acockburn commented on July 26, 2024 1

I really appreciate you working on it but I regard this as a learning process and would really like to figure it out myself - perhaps I could ask you for feedback when I have something?

from appdaemon.

acockburn avatar acockburn commented on July 26, 2024 1

OK, this is done - thanks Martin for your example (which I pretty much used) as well as the additional assistance in answering my questions.

@jasonmhite - as currently constructed, an appdaemon executable is made available in "/usr/local/bin", at least that's where it ends up on Ubuntu, so in the path as requested.

from appdaemon.

acockburn avatar acockburn commented on July 26, 2024

Couldn't agree more - I am relatively new to Python and haven't done any of the above previously but I will add this to the next release. FWIW I am also working on a Docker file.

from appdaemon.

MartinHjelmare avatar MartinHjelmare commented on July 26, 2024

@acockburn Do you want a PR for the python package structure, or do you want to do it yourself? I have a branch more or less ready.

from appdaemon.

MartinHjelmare avatar MartinHjelmare commented on July 26, 2024

Good call! I'm happy to answer questions as far as I'm able. I've pushed my branch to my fork, so you can take a look if you like when you're ready. I suggest reading some docs or blog first, though.

There is also the cookiecutter project which can setup a full project skeleton for you with optional test modules, travis, tox and pypi scripts.

from appdaemon.

acockburn avatar acockburn commented on July 26, 2024

Thanks for the pointers - I can forsee a lot of reading this weekend :)

from appdaemon.

justyns avatar justyns commented on July 26, 2024

I'll second @MartinHjelmare; if you need any help/feedback feel free to let me know too!

from appdaemon.

acockburn avatar acockburn commented on July 26, 2024

Thanks, much appreciated!

from appdaemon.

jasonmhite avatar jasonmhite commented on July 26, 2024

A note on this one... assuming you build a package such that it installs an executable to the standard system path (e.g. via the scripts argument to setup), that will make it much easier to write initscripts since you can rely on appdaemon being in $PATH.

I can contribute a systemd unit file to go alongside the existing initscript once it's done, it's only about 5 lines. I have one now that I'm using on Debian, but if AppDaemon is going to get packaged up I might as well wait.

from appdaemon.

acockburn avatar acockburn commented on July 26, 2024

Makes sense - I would like to have a look at your systemd script.

from appdaemon.

timdonovanuk avatar timdonovanuk commented on July 26, 2024

Is appdaemon supposed to be easy to install using pip? I've just spent the last 30 minutes running appdaemon, seeing what "ImportError: No module named '' it gives this time, and then running pip to manually install the missing package. No end in sight either. Feel like I'm missing something. http://appdaemon.readthedocs.io/en/latest/INSTALL.html also has a few 404 links (Docker link, HA link).

from appdaemon.

acockburn avatar acockburn commented on July 26, 2024

It should be a single command - with possibly a couple of apt-get installs listed in the docs.

from appdaemon.

timdonovanuk avatar timdonovanuk commented on July 26, 2024

Ah! My apologies...maybe move that section up a bit...listing dependencies required to get something working right at the bottom of documentation is a little..unusual!

from appdaemon.

acockburn avatar acockburn commented on July 26, 2024

I can certainly do that :)

from appdaemon.

timdonovanuk avatar timdonovanuk commented on July 26, 2024

Thanks! Confirmed all working happily now :)

from appdaemon.

acockburn avatar acockburn commented on July 26, 2024

Great :)

from appdaemon.

Related Issues (20)

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.