Jump to content

saeedesmaili

Member
  • Posts

    1
  • Joined

  • Last visited

Reputation Activity

  1. Like
    saeedesmaili reacted to VincentZ in Home Assistant lights&switches   
    Toggle lights and switches in Home Assistant
     
    Back with Alfred after a short stint with the competitor 😀. I created a small workflow to control lights and switches through the Home Assistant REST API, written in Ruby. There's an existing workflow by @Browall however this is no longer functional (it's Python 2 based, and does not include support for long-lived access tokens).

    Enter `ha` to bring up a list of all switches and lights, which can of course be filtered by typing their name. Hit return to toggle its state. Additionally, enter `%50` for a light to set its brightness level to 50.
     
    The workflow is configured through Alfred, where there are inputs for the instance URL and access token. Additionally, you can enter a comma-seperated list of entity IDs to ignore. This can include wildcards. For example, I use `switch.adaptive*` to hide all the switches linked with the "adaptive lights" HA integration.

    Install from Github: https://github.com/vincentezw/alfred-homeassistant/

  2. Like
    saeedesmaili got a reaction from pseudometa in Search for python packages and their latest version on pypi   
    Hello everyone
    This is my first attempt to create an Alfred workflow.
     
    pypied
    Search for Python packages in pypi and get the latest version number of a package.
     
    Github repository
     

    Installation
    Download the workflow here.
    Usage
    Fetch the list of packages
    Since pypi doesn't provide an API to search for packages and it recommends using https://pypi.org/simple/ instead, this workflow fetches the list of Python packages when it's used for the first time (~22MB will be downloaded). This list gets stored as a JSON file in the workflow's directory and will be used to search for packages. To update this list you can use pypi-fetch keyword.
    Search for packages
    Use pypi <package-name> keyword (as shown in the demo above).
    The first three results will have an up-to-date latest version and summary (fetched from pypi in real time). Other items in the list will only have the name (fetched from the local JSON file to prevent rate limit on pypi).
    Copy the latest version to the clipboard
    Hitting enter will copy the latest version number of the package to the clipboard (0.101.0 in the demo above).
    Open the package page on pypi
    Holding Option while hitting Enter will open the package's page on pypi in the default browser.
    View a list of the latest versions of a package
    Use pypi <package-name>/ to view a list of the latest versions of a package:

    Hitting enter in this list will copy the version number to the clipboard.
  3. Like
    saeedesmaili reacted to Quicksilver in Will there ever be an RSS feed for Alfred Workflows?   
    It would be so lovely to have an RSS feed for new Alfred workflows. Are there any plans for this? Pretty please?
×
×
  • Create New...