# Help Compiling Spotify binding from Git

**URL:** <https://community.openhab.org/t/help-compiling-spotify-binding-from-git/33980>\
**Category:** IDE & Build\
**Tags:** compile, spotify, binding\
**Created:** [September 6, 2017, 3:29pm UTC](https://community.openhab.org/t/help-compiling-spotify-binding-from-git/33980 "2017-09-06T15:29:30Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![sjef86](https://community.openhab.org/user_avatar/community.openhab.org/sjef86/32/80783_2.png) [@sjef86](https://community.openhab.org/u/sjef86)\
**Post date:** [September 6, 2017, 3:29pm UTC](https://community.openhab.org/t/help-compiling-spotify-binding-from-git/33980/1 "2017-09-06T15:29:30Z")

</div>

Can anyone help me with compiling a .jar file of the following git source:

> **[openhab2-addons/addons/binding/org.openhab.binding.spotify at master ·...](https://github.com/astenlund74/openhab2-addons/tree/master/addons/binding/org.openhab.binding.spotify)**
>
> Add-ons for openHAB 2.x. Contribute to astenlund74/openhab2-addons development by creating an account on GitHub.

Would be truly appreciated 🙂

---

<div class="post-metadata">

**Author:** ![BrutalBirdie](https://community.openhab.org/user_avatar/community.openhab.org/brutalbirdie/32/47907_2.png) [@BrutalBirdie](https://community.openhab.org/u/BrutalBirdie)\
**Post date:** [September 7, 2017, 9:30am UTC](https://community.openhab.org/t/help-compiling-spotify-binding-from-git/33980/2 "2017-09-07T09:30:26Z")

</div>

Check in progress.

### Edit! Check Done

Did you install maven? (Do you use Windows or Linux?)

> git clone [GitHub - astenlund74/openhab2-addons: Add-ons for openHAB 2.x](https://github.com/astenlund74/openhab2-addons.git)

> cd addons/binding/org.openhab.binding.spotify

> mvn package

After maven finished go into

> cd target  
> ls

```php
 MANIFEST.MF classes local-artifacts.properties maven-archiver org.openhab.binding.spotify-2.1.0-SNAPSHOT.jar p2artifacts.xml p2content.xml

```

You can download my .jar if you want to

#### edit! Link changed from puush to google drive

[https://drive.google.com/file/d/0B2fC98SZJv6qMWxZOUNnOElLQzA/view?usp=drive\_web](https://drive.google.com/file/d/0B2fC98SZJv6qMWxZOUNnOElLQzA/view?usp=drive_web)

---

<div class="post-metadata">

**Author:** ![ChrisA](https://community.openhab.org/user_avatar/community.openhab.org/chrisa/32/48266_2.png) [@ChrisA](https://community.openhab.org/u/ChrisA)\
**Post date:** [September 7, 2017, 10:01am UTC](https://community.openhab.org/t/help-compiling-spotify-binding-from-git/33980/3 "2017-09-07T10:01:51Z")

</div>

> [@BrutalBirdie](#):
>
> You can download my .jar if you want to
> 
> [https://puu.sh/xtDuA/19b68efd9b.jar](https://puu.sh/xtDuA/19b68efd9b.jar)

the links goes to a .zip file not .the jar

can u fix this please

---

<div class="post-metadata">

**Author:** ![BrutalBirdie](https://community.openhab.org/user_avatar/community.openhab.org/brutalbirdie/32/47907_2.png) [@BrutalBirdie](https://community.openhab.org/u/BrutalBirdie)\
**Post date:** [September 7, 2017, 10:25am UTC](https://community.openhab.org/t/help-compiling-spotify-binding-from-git/33980/4 "2017-09-07T10:25:34Z")

</div>

LoL ?  
If I press my URL I download the .jar  
[https://puu.sh/xtEuR/224b4748ea.png](https://puu.sh/xtEuR/224b4748ea.png)

Try this one [https://drive.google.com/open?id=0B2fC98SZJv6qMWxZOUNnOElLQzA](https://drive.google.com/open?id=0B2fC98SZJv6qMWxZOUNnOElLQzA)

---

<div class="post-metadata">

**Author:** ![ChrisA](https://community.openhab.org/user_avatar/community.openhab.org/chrisa/32/48266_2.png) [@ChrisA](https://community.openhab.org/u/ChrisA)\
**Post date:** [September 7, 2017, 11:24am UTC](https://community.openhab.org/t/help-compiling-spotify-binding-from-git/33980/5 "2017-09-07T11:24:03Z")

</div>

this works fine! thx

---

<div class="post-metadata">

**Author:** ![BrutalBirdie](https://community.openhab.org/user_avatar/community.openhab.org/brutalbirdie/32/47907_2.png) [@BrutalBirdie](https://community.openhab.org/u/BrutalBirdie)\
**Post date:** [September 7, 2017, 11:27am UTC](https://community.openhab.org/t/help-compiling-spotify-binding-from-git/33980/6 "2017-09-07T11:27:58Z")

</div>

@ChrisA Could you report if the jar is working?

---

<div class="post-metadata">

**Author:** ![ChrisA](https://community.openhab.org/user_avatar/community.openhab.org/chrisa/32/48266_2.png) [@ChrisA](https://community.openhab.org/u/ChrisA)\
**Post date:** [September 7, 2017, 7:55pm UTC](https://community.openhab.org/t/help-compiling-spotify-binding-from-git/33980/7 "2017-09-07T19:55:28Z")

</div>

i managed the connection with the spotifyservice and discovered a little bug: in the authentication page the binding considers only a http connection, not https. now the binding crashes with this log:

21:49:13.240 [INFO] [smarthome.event.ThingUpdatedEvent] - Thing ‘spotify:player:0fb2bb1c’ has been updated.  
21:49:13.314 [INFO] [marthome.event.ConfigStatusInfoEvent] - ConfigStatusInfo [configStatusMessages=]  
21:49:14.130 [INFO] [marthome.event.ConfigStatusInfoEvent] - ConfigStatusInfo [configStatusMessages=]  
21:49:15.086 [INFO] [marthome.event.ItemStateChangedEvent] - spotify\_player\_user1\_trackRepeat changed from NULL to off  
21:49:15.088 [INFO] [marthome.event.ItemStateChangedEvent] - spotify\_player\_user1\_trackProgress changed from NULL to 5:10  
21:49:15.095 [INFO] [marthome.event.ItemStateChangedEvent] - spotify\_player\_user1\_trackDuration changed from NULL to 5:17  
21:49:15.099 [INFO] [marthome.event.ItemStateChangedEvent] - spotify\_player\_user1\_trackName changed from NULL to The Girl From Ipanema  
21:49:15.104 [INFO] [marthome.event.ItemStateChangedEvent] - spotify\_player\_user1\_albumName changed from NULL to Stan Getz: The Bossa Nova Albums  
**21:49:15.103 [ERROR] [nding.spotify.handler.SpotifyHandler] - Exception caught in anonymous scheduled runnable task. This task will now stop.**  
**java.lang.IllegalArgumentException: Channel with ID ‘deviceActive’ does not exists.**  
at org.eclipse.smarthome.core.thing.binding.BaseThingHandler.isLinked(BaseThingHandler.java:573)[105:org.eclipse.smarthome.core.thing:0.9.0.b5]  
at org.openhab.binding.spotify.handler.SpotifyHandler.setChannelValue(SpotifyHandler.java:423)[224:org.openhab.binding.spotify:2.1.0.201709070932]  
at org.openhab.binding.spotify.handler.SpotifyHandler.updatePlayerInfo(SpotifyHandler.java:410)[224:org.openhab.binding.spotify:2.1.0.201709070932]  
at org.openhab.binding.spotify.handler.SpotifyHandler.lambda$0(SpotifyHandler.java:272)[224:org.openhab.binding.spotify:2.1.0.201709070932]  
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)[:1.8.0\_121]  
at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)[:1.8.0\_121]  
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)[:1.8.0\_121]  
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)[:1.8.0\_121]  
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)[:1.8.0\_121]  
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)[:1.8.0\_121]  
at java.lang.Thread.run(Thread.java:745)[:1.8.0\_121]  
21:49:15.118 [INFO] [marthome.event.ItemStateChangedEvent] - spotify\_player\_user1\_artistName changed from NULL to Stan Getz

---

<div class="post-metadata">

**Author:** ![ChrisA](https://community.openhab.org/user_avatar/community.openhab.org/chrisa/32/48266_2.png) [@ChrisA](https://community.openhab.org/u/ChrisA)\
**Post date:** [September 11, 2017, 8:13am UTC](https://community.openhab.org/t/help-compiling-spotify-binding-from-git/33980/8 "2017-09-11T08:13:05Z")

</div>

heue u find the fixed version:

[https://github.com/astenlund74/org.openhab.binding.spotify-binary/blob/master/org.openhab.binding.spotify-2.2.0-SNAPSHOT\_20170910.jar](https://github.com/astenlund74/org.openhab.binding.spotify-binary/blob/master/org.openhab.binding.spotify-2.2.0-SNAPSHOT_20170910.jar)

---

<div class="post-metadata">

**Author:** ![sjef86](https://community.openhab.org/user_avatar/community.openhab.org/sjef86/32/80783_2.png) [@sjef86](https://community.openhab.org/u/sjef86)\
**Post date:** [September 16, 2017, 5:17pm UTC](https://community.openhab.org/t/help-compiling-spotify-binding-from-git/33980/9 "2017-09-16T17:17:28Z")

</div>

Thanks for the help guys! 🙂 Got the latest spotify binding running now 😃

---

<div class="post-metadata">

**Author:** ![Moellegaard](https://community.openhab.org/letter_avatar_proxy/v4/letter/m/97f17d/32.png) [@Moellegaard](https://community.openhab.org/u/Moellegaard)\
**Post date:** [October 5, 2017, 7:34pm UTC](https://community.openhab.org/t/help-compiling-spotify-binding-from-git/33980/10 "2017-10-05T19:34:57Z")

</div>

Thanks so much for this binding, noobs question, I like to remove the logging from the binding e.g.:

```
2017-10-05 21:31:08.669 [ItemStateChangedEvent] - spotify_player_633029c1_trackProgress changed from 0:43 to 0:48
2017-10-05 21:31:13.897 [ItemStateChangedEvent] - spotify_player_633029c1_trackProgress changed from 0:48 to 0:54
2017-10-05 21:31:19.116 [ItemStateChangedEvent] - spotify_player_633029c1_trackProgress changed from 0:54 to 0:59
2017-10-05 21:31:24.419 [ItemStateChangedEvent] - spotify_player_633029c1_trackProgress changed from 0:59 to 1:04
2017-10-05 21:31:29.790 [ItemStateChangedEvent] - spotify_player_633029c1_trackProgress changed from 1:04 to 1:09
2017-10-05 21:31:34.976 [ItemStateChangedEvent] - spotify_player_633029c1_trackProgress changed from 1:09 to 1:15
2017-10-05 21:31:40.229 [ItemStateChangedEvent] - spotify_player_633029c1_trackProgress changed from 1:15 to 1:20
2017-10-05 21:31:45.413 [ItemStateChangedEvent] - spotify_player_633029c1_trackProgress changed from 1:20 to 1:25
2017-10-05 21:31:50.732 [ItemStateChangedEvent] - spotify_player_633029c1_trackProgress changed from 1:25 to 1:30
2017-10-05 21:31:56.222 [ItemStateChangedEvent] - spotify_player_633029c1_trackProgress changed from 1:30 to 1:36
2017-10-05 21:32:01.529 [ItemStateChangedEvent] - spotify_player_633029c1_trackProgress changed from 1:36 to 1:41
2017-10-05 21:32:06.848 [ItemStateChangedEvent] - spotify_player_633029c1_trackProgress changed from 1:41 to 1:47
2017-10-05 21:32:12.067 [ItemStateChangedEvent] - spotify_player_633029c1_trackProgress changed from 1:47 to 1:52

```

I’ve added this to my:

`/var/lib/openhab2/etc/org.ops4j.pax.logging.cfg`

`log4j.logger.org.openhab.binding.spotify = ERROR, out, osgi:*`

But im still getting the log from the binding.
