forked from badaix/snapcast
-
Notifications
You must be signed in to change notification settings - Fork 0
/
notes.txt
105 lines (74 loc) · 3.46 KB
/
notes.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
*TODO:
-Server ping client?
-LastSeen: relative time [s] or [ms]?
-Android crash: Empty latency => app restart => empty client list
-Android clean data structures after changing the Server
*JSON RPC:
curl -X POST -H "Content-Type: application/json" -d '{"jsonrpc": "2.0", "method": "Application.SetVolume", "params": {"volume":100}, "id": 1}' http://i3c.pla.lcl:8080/jsonrpc
https://en.wikipedia.org/wiki/JSON-RPC
https://github.com/pla1/utils/blob/master/kodi_remote.desktop
http://forum.fhem.de/index.php?topic=10075.130;wap2
http://kodi.wiki/view/JSON-RPC_API/v6#Application.SetVolume
*Logging:
-Too many of these:
Sep 20 06:50:58 wohnzimmer snapclient[2358]: Exception in Controller::worker(): connect: Network is unreachable
Sep 20 06:50:59 wohnzimmer snapclient[2358]: Exception in Controller::worker(): connect: Network is unreachable
Sep 20 06:51:00 wohnzimmer snapclient[2358]: Exception in Controller::worker(): connect: Network is unreachable
-Limit repeated syslog logging
*GIT Submodules:
http://stackoverflow.com/questions/2140985/how-to-set-up-a-git-project-to-use-an-external-repo-submodule
cd MyWebApp
git submodule add git://github.com/jquery/jquery.git externals/jquery
http://stackoverflow.com/questions/1777854/git-submodules-specify-a-branch-tag
cd submodule_directory
git checkout v1.0
cd ..
git add submodule_directory
git commit -m "moved submodule to v1.0"
git push
http://stackoverflow.com/questions/3796927/how-to-git-clone-including-submodules
git clone git://github.com/foo/bar.git
cd bar
git submodule update --init --recursive
*Icons:
http://s.evemarket.info/images/gnome/256x256/devices/speaker.png
https://upload.wikimedia.org/wikipedia/commons/3/3f/Mute_Icon.svg
https://upload.wikimedia.org/wikipedia/commons/2/21/Speaker_Icon.svg
*dpkg:
https://www.debian.org/doc/manuals/maint-guide/dother.de.html
http://hd-idle.sourceforge.net/
http://0pointer.de/public/systemd-man/systemd.exec.html#Environment=
*file locations:
http://stackoverflow.com/questions/1024114/location-of-ini-config-files-in-linux-unix
*OpenWrt:
https://wiki.openwrt.org/doc/howto/buildroot.exigence
https://wiki.openwrt.org/doc/devel/packages
johannes@T400 ~/Develop/openwrt.15.05/package/sxx/snapcast $ ln -s ~/Develop/snapcast/openWrt/Makefile.openwrt Makefile
johannes@T400 ~/Develop/openwrt.15.05/package/sxx/snapcast $ ln -s ~/Develop/snapcast/ src
johannes@T400 ~/Develop/openwrt.15.05/package/sxx/snapcast $ ls -l
lrwxrwxrwx 1 johannes johannes 48 Apr 3 14:50 Makefile -> /home/johannes/Develop/snapcast/openWrt/Makefile.openwrt
lrwxrwxrwx 1 johannes johannes 32 Mär 29 21:22 src -> /home/johannes/Develop/snapcast/
johannes@T400 ~/Develop/openwrt.15.05 $ make package/sxx/snapcast/clean V=s
johannes@T400 ~/Develop/openwrt.15.05 $ make package/sxx/snapcast/compile -j1 V=s
*Sample format
http://0pointer.de/lennart/projects/pulseaudio/doxygen/sample.html
https://www.musicpd.org/doc/user/config_audio_outputs.html#ao_format
*URI:
https://en.wikipedia.org/wiki/Uniform_Resource_Identifier
*Dependencies
libavahi-client3
libflac8
libogg0
libvorbis0a
libvorbisenc2
*Mac
brew install autoconf automake pkg-config libtool
*Listen
https://www.postgresql.org/docs/9.1/static/runtime-config-connection.html
http://www.cyberciti.biz/faq/unix-linux-mysqld-server-bind-to-more-than-one-ip-address/
*Sonos
https://www.youtube.com/watch?v=LGv6vL-YDIk
https://www.youtube.com/watch?v=W8A7rtVkdrE&t=2s
*MPD
https://git.devuan.org/dev1fanboy/mpd
https://git.devuan.org/dev1fanboy/mpd/blob/master/src/Main.cxx