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

This only works with desktop raspbian and not lite/headless flavours. #2

Closed
yenoromm opened this issue Jul 16, 2020 · 2 comments
Closed
Assignees
Labels
bug Something isn't working

Comments

@yenoromm
Copy link

This one took me a while to work out. I wanted to run a lighter version as this RPI's sole purpose is Lemon.

Constantly threw pillow errors and recommending to install with 'sudo pip3 install pillow'. Each attempt returning 'Requirement already satisfied: pillow...'.

Remedied by installing the desktop versions. It might be worthwhile to add this to the documentation or if you know the package that is missing, adding that to the docs.

In saying that, this is fantastic work and by no means is a dig at your work. This is super versatile and is being integrated as notifications from my Home Assistant whilst in meetings. Thank you for doing this project.

@mrusme mrusme self-assigned this Jul 17, 2020
@mrusme
Copy link
Owner

mrusme commented Jul 17, 2020

@yenoromm thank you for investigating and reporting this! I've just added it to the README.md and linked this issue.

Glad you get a benefit out of Lemon! :-)

@mrusme mrusme closed this as completed Jul 17, 2020
@mrusme mrusme reopened this Jul 17, 2020
@mrusme mrusme added the bug Something isn't working label Jul 17, 2020
@yenoromm
Copy link
Author

yenoromm commented Jul 17, 2020

No worries, thanks for the quick reply. Incase anyone wants to use this with Home Assistant:

Example to add to configuration.yaml:

rest_command:
  lemon:
    url: 'http://YOUR.IP.ADDRESS:20001/api'
    method: POST
    content_type: 'application/json; charset=utf-8
    payload: '{"icon": "{{ icon }}", "text": "{{ text }}"}'

Home to call this as a service:

  action:
    - service: rest_command.my_request`
      data:`
        icon: "lemon"`
        text: "Success"

Edited because I can't seem to get it to keep the correct YAML formatting.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants