回覆 9# apple_999911


其實我真係未做過…

如果佢話你
No such file or directory:  'build'
其實你打
  1. mkdir build
複製代碼
建立翻個directory就可以。

另外
  1. cd ..
複製代碼
先至系command,中間有空格。

或者我再重申一次,記得留意你個current working directory系邊,如果同幅圖唔同,上面嘅command可能要改。

TOP

回覆 9# apple_999911


try this to download
https://github.com/teckyio/nowpi/releases

TOP

回覆  apple_999911


try this to download
john_linux 發表於 2021-11-22 13:21

位置正確,我再裝多次node and yarn又行到了, 但有error未解決到,
有冇師兄做咗可以放個image出嚟,原本個link都download唔到, 謝謝
圖片
圖片

via HKEPC IR Pro 3.6.1 - Android(3.3.1)

TOP

回覆 13# apple_999911
  1. yarn upgrade
複製代碼

TOP

回覆  apple_999911
john_linux 發表於 2021-11-22 20:27

之前試過了, 結果一樣, 好奇怪

via HKEPC IR Pro 3.6.1 - Android(3.3.1)

TOP

回覆 9# apple_999911


我頭先重新睇過篇教學,系唔需要安裝node.js同yarn(除非你想自製.img)。
請問你系想變自己部pi做now新聞台機項盒,定係幫其他人整.img?

TOP

回覆  apple_999911


我頭先重新睇過篇教學,系唔需要安裝node.js同yarn(除非你想自製.img)。
請問你系 ...
john_linux 發表於 2021-11-22 21:10

想變自己部pi做now新聞台機項盒

via HKEPC IR Pro 3.6.1 - Android(3.3.1)

TOP

本帖最後由 john_linux 於 2021-11-22 22:21 編輯
想變自己部pi做now新聞台機項盒  

via HKEPC IR Pro 3.6.1 - Android(3.3.1)
apple_999911 發表於 2021-11-22 09:26 PM


#千祈唔好copy全部command之後一次過貼上,否則我唔負責。
#part 1
  1. sudo apt update
複製代碼
  1. sudo apt install jq ffmpeg vlc
複製代碼
#part 2
#ref: https://askubuntu.com/questions/ ... -ssl-security-level
  1. #開文字編輯器
  2. sudo nano /etc/ssl/openssl.cnf
複製代碼
#You need to add this to the beginning of your config file
  1. openssl_conf = default_conf
複製代碼
#And then this to the end
  1. [default_conf]
  2. ssl_conf = ssl_sect
  3. [ssl_sect]
  4. system_default = system_default_sect
  5. [system_default_sect]
  6. MinProtocol = TLSv1.2
  7. CipherString = DEFAULT:@SECLEVEL=1
複製代碼
  1. export OPENSSL_CONF=/etc/ssl/openssl.cnf
複製代碼
#part 3
  1. #開文字編輯器
  2. nano ~/nowtv.sh
複製代碼
  1. #貼上以下內容
  2. until $(curl --output /dev/null --silent --head --fail http://duckduckgo.com); do
  3.     printf '.'
  4.     sleep 5
  5. done
  6. LINK=`curl -X POST -d '{"channelno":"332","mode":"prod","audioCode":"","format":"HLS","callerReferenceNo":"20140702122500"}' -H 'Content-Type: application/json' https://hkt-mobile-api.nowtv.now.com/09/1/getLiveURL | jq -r ".asset.hls.adaptive[0]"`
  7. ffmpeg -re -i $LINK -fflags +genpts+igndts -c copy -f mpegts udp://localhost:1234 &
  8. vlc udp://@:1234
複製代碼
  1. chmod u+x ~/nowtv.sh
複製代碼
###如果冇error,上面只需做1次,下面就每次睇now tv新聞台都做1次。
#如果睇now tv新聞台睇到error(或者一開就error),記住reboot能治百病(誤)。
  1. cd ~ && ./nowtv.sh
複製代碼
#參考並修改自:(3樓有寫)

TOP

#千祈唔好copy全部command之後一次過貼上,否則我唔負責。
#part 1#part 2
#ref: #You need to add this  ...
john_linux 發表於 2021-11-22 22:07

好詳細,明天再試試, 謝謝你

via HKEPC IR Pro 3.6.1 - Android(3.3.1)

TOP

除左貪過癮,諗唔到有乜好處。
MacJuJu 發表於 2021-11-21 23:03



    一啲都唔過癮

TOP