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

Added telldus-core install script #56

Closed
wants to merge 1 commit into from
Closed

Added telldus-core install script #56

wants to merge 1 commit into from

Conversation

EliasGabrielsson
Copy link
Contributor

This add installation script for the service telldus-core and matching samba share.
Telldus-core enables usage of tellstick usb devices to communicate with openhab.

Signed-off-by: Elias Gabrielsson elias@benefactory.se

@mention-bot
Copy link

@EliasGabrielsson, thanks for your PR! By analyzing the history of the files in this pull request, we identified @ThomDietrich, @BClark09 and @jupe76 to be potential reviewers.

@EliasGabrielsson
Copy link
Contributor Author

Note that this needs a minor rewrite if pull request #55 get merged. The user accounts is hard-coded in the script.

This add installation script for the service telldus-core and matching samba share.
Telldus-core enables usage of tellstick usb devices to communicate with openhab.

Signed-off-by: Elias Gabrielsson <elias@benefactory.se>
Copy link
Member

@ThomDietrich ThomDietrich left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the addition. I've added one comment. Besides that I'm not happy with the samba symlinks change. Do you need the samba share? Is there a better solution?
What's the reason for including https://bitbucket.org/davka003/pytelldus.git and of "alias tdtool"? Both are not mentioned in the introtext and davka003 doesn't look like the "official repository"...

if [ $? -ne 0 ]; then echo "FAILED"; exit 1; fi
cond_redirect sed -i '/############ Misc ############/a allow insecure wide links = yes' /etc/samba/smb.conf
cond_redirect chown -R openhab:pi /opt /var/lib/tellstick
cond_redirect chmod -R g+w /opt
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You don't need to handle /opt here, that's done in another place.

@EliasGabrielsson
Copy link
Contributor Author

EliasGabrielsson commented Jan 10, 2017

Put review of this on hold until the password PR is solved.
The rewrites will be based on the outcome of that addon.

a) I have tested this script for a while now and have found an edge case with the symlink method.
I will look into an alternative method for syncing a samba share to /etc folder.

b) Telldus the creator of tellstick have for some unspoken reason not included a detect new devices capability to their tdtool utility, which is essential in setup. (The function exist in the windows version. 😞)
This re-implementation in python adds that capability.

But I fully agree that this shall be mention in the introtext.

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

Successfully merging this pull request may close these issues.

None yet

3 participants