Skip to content
This repository has been archived by the owner. It is now read-only.
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
api
 
 
 
 
 
 
 
 
 
 

HermesRemote

This project is under flux and flow. Subject to change and breakage. Enjoy!

What is it?

Screenshot of HermesRemote

The marriage of AppleScript and an dynamic webpage. An experiment: Control Hermes without adding server code to the main project. Success! One may control Hermes from a webpage.

There was an attempt to create a remote control for Hermes. Another user asked about a similar solution.

PHP is great. It's shipped with all Macs. With a few clicks, a PHP-enabled webserver is running on your Mac.

What can it do?

  • View current song information including album art
  • Like or Dislike a song
  • Play/Pause and Next song

How to use?

Two options:

or

  • Install php55 from Homebrew: brew install php55
  • Run this from the project directory: /usr/local/bin/php -S localhost:1234
  • Open http://localhost:1234/ in your browser.

What needs to be added to Hermes

  • stations does not know the count message, so one cannot iterate over stations.
  • Expose song history to AppleScript.

Limitations of HermesRemote

  • Cannot switch stations.
  • Cannot view a list of recent songs.
  • api.php is sent a GET every second — per client! Needs to cache and query less often.
  • Should be using something like Backbone.js.

About

The marriage of AppleScript and an dynamic webpage

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published