lemon
lemon copied to clipboard
This only works with desktop raspbian and not lite/headless flavours.
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.
@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! :-)
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.