Testing the APIs on iOS and Apple Watch

(Bastian) #1

Hi All,

I’m testing the apis to run on the iOS and Apple Watch.
There are several things that i still can’t figure out how to do:

  1. getting the image off of the Album’s image_key. has anybody managed to get this?
  2. is there any way that we can use https calls instead of http? Apple is moving towards banning http calls, especially on watchOS.

here’s the youtube link of my apps: https://youtu.be/sz6-fkeLlcw


(Hans Groot Wesseldijk) #2

Hello Bastian,
I’m very interested in controlling Roon with my Apple Watch.
I’m always listening to Roon when i go to bed en fall asleep with it.
I’m using JH Angies custom iem’s, connected to Chord Mojo, which is connected to Apple Mini. That’s is one of my zones: the ‘Bedroom Rig’.
If i want to skip a song from the playlist while listening, i’d really like to use my watch for it, because i don’t want to disturb my sleeping wife.
Is it possible to make your methods available to me?
I would appreciate it very much!
Hans GW

(Bastian) #3

Hi @Hans_Groot_Wesseldij,

How are you liking the Angies? I’ve been using JH16 for when I’m on the go for quite sometime now and loving it.

Please take a look at the following topic:

I’ve created a set of apis that can be called by http, I also have a link to workflow widget that can be used with iOS’ Workflow app.

This works with iOS widgets as well as Apple Watch.


(Hans Groot Wesseldijk) #4

Wow. That’s great!
Unfortunately, i’m not technically capable of understanding how to get this to work.
I have downloaded and installed the Workflow app on my iphone.
I have your set running, but i don’t know how to get the settings right.
I have changed your ip example to the ip number of my core.
I left the :3100 port unchanged.
From then on i’m stuck…, sorry.

I’m enjoying my Angies by the way.
But during daytime i’m spoiled by my Hifiman HE1000v2 :wink:

(Bastian) #5

Hi @Hans_Groot_Wesseldij,

It’s port 3001 instead of 3100.

Have run the server apis? Are you getting the zone updates?
If you have, don’t forget to enable it on the Roon’ settings -> extension page.


(Mr Fix It ) #6

Hope their is some progress being made here :nerd_face:

(Bastian) #7

Hi @wizardofoz,

I cannot submit my iOS native code to apple because of some code restriction (Apple now only allows secure https connection) which I don’t use.

However, you can use iOS’ workflow app to have it run on Apple Watch as well as iPhone/iPad/s notification area (swipe right on lock/home screen).

You just need to download the Workflow app on an iOS device, which is free and then get the workflow from the following url (you need to open it on your device: https://workflow.is/workflows/7e01d37c7c1e4982ba9c89c2b1e28f12

Then you can use the websocket project to run it.

@Mike_Plugge, I have not seen your code in detail, but if you could add the following http calls to your server you can use it this way too:

  • listZones
  • next
  • play_pause
  • previous


(Mike Plugge) #8

That should be pretty easy to add to the app.js.

Unfortunately, I do not have an Apple watch to test this and I hate releasing code that I can’t test.

(Bastian) #9

Hi Mike,

Yeah, that’s the same with me too.
I was just thinking since a lot of people are using your project, it would be a nice addition.


(Mike Plugge) #10

I will probably use your code since it is largely compatible with mine, then.

Thanks for the heads up!

(luigi martusciello) #11

Hi all,
Just asking for a little help if anyone has the kindness (and time) to oblige
I’m tying to create a macro which will in sequence
Group all zones
Recall and play a specific playlist or album or radio.
Is there any way of doing this via a web api call, or must it be done directly in a js app.
I have coded some simple web api calls and they work ( play pause …etc)
But I’m stumped at how to set up the macro as I outlined earlier.
Unfortunately I have ho JavaScript coding abilities
Any ideas?