Skip to content

Commit

Permalink
#15: Update to Support different kind of remotes
Browse files Browse the repository at this point in the history
  • Loading branch information
Danil Ko committed Nov 21, 2020
1 parent b867624 commit 7884c2a
Show file tree
Hide file tree
Showing 4 changed files with 44 additions and 3 deletions.
11 changes: 10 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,17 @@ Frontend Technology
------
- Angular/Angular Material

IR Technology
------
- JSerial https://fazecast.github.io/jSerialComm/

Compile Setting
------
Following is an example setup
Following is an example compile
```
# need to install latest npm/angular CLI (detail in controller-web/src/main/web/)
# in git root folder
# note it may need to compile twice in order for the war to package the final javascript
mvn clean package
# collect the final artificat controller.jar from controller-server/target
```
Expand All @@ -56,3 +61,7 @@ java -jar controller.jar
# one can the access at http://localhost:8080/
```

IR Remote Template
------
In the `ir-remote-template`, one can check the sample for IR config and generate one for their own purpose
Replace the `ir_receiver_setting.json` in `MUSIC_LOCATION`, and restart the `musicutility` system to take effect
15 changes: 15 additions & 0 deletions ir-remote-templates/ir_receiver_setting_NEC_SAMPLE.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"portPrefix" : "",
"portName" : "ttyUSB0",
"isHexDecode" : false,
"vendor" : "NEC_SAMPLE",
"fastForwardList" : [ "5f81bf01" ],
"fastBackwardList" : [ "5f81bf" ],
"playList" : [ "5f81ba01" ],
"stopList" : [ "5f811701" ],
"pauseList" : [ "5f81bb09" ],
"nextList" : [ "5f8101" ],
"lastList" : [ "5f8103" ],
"networkOnList" : [ "5f81bb02" ],
"networkOffList" : [ "5f81ba0b" ]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"portPrefix" : "ttyACM",
"portName" : "",
"isHexDecode" : true,
"vendor" : "PHILIP_RC5_TTYACM",
"fastForwardList" : [ "D34", "534" ],
"fastBackwardList" : [ "532", "D32" ],
"playList" : [ "535", "D35" ],
"stopList" : [ "536", "D36" ],
"pauseList" : [ "530", "D30" ],
"nextList" : [ "520", "D20" ],
"lastList" : [ "521", "D21" ],
"networkOnList" : [ "6BD5ADFF", "5860F6F8" ],
"networkOffList" : [ "531", "D31" ]
}
6 changes: 4 additions & 2 deletions musicutility.service
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ After=syslog.target
SyslogIdentifier=musicutility
WorkingDirectory=/home/atomicpi/application/
ExecStart=/bin/bash -c "export MUSIC_LOCATION='/srv/public/mount/'; export LC_ALL='en_US.UTF-8'; java -jar /home/atomicpi/application/controller.jar"
User=atomicpi
Type=simple
User=musicutility
RestartSec=5s
Restart=on-failure

[Install]
WantedBy=multi-user.target

0 comments on commit 7884c2a

Please sign in to comment.