this is a redo version of speedometer/video player, and probably no changes would be made in near future. I have replaced the files to its own folder and it's pretty clean now.
== Tested on v55. You should probably skip if your OS version older than v51 ==
what this package contains;
1. speedometer (started off by @serezhka), with following information:
- top speed
- average speed
- current speed
- speed bar
- plot graph (6 minutes drive speed history)
2. video player (started off by @sigma), with following functions:
- generate video list from all connected USB drive
- start playback (by click on the video name in the video list)
- stop playback
- play all option
- repeat option
DO READ information in "video player note" below
3. reboot system
- this feature come together with video player
installation - UPDATED
* if you have installed the earlier version speedometer by @serezhka or mySpeedometer by me, this installation will disable them, no conflict
method 1 - install via ssh
1. download addon-all-fixed.zip
2. unzip and copy all files to your USB root
3. plug it to the USB port
4. ssh into your CMU
5. go to your USB drive folder (e.g. /tmp/mnt/sdb1)
6. run ./install.sh
7. you will see "done" after installation complete, and now reboot
method 2 - auto install upon USB plug in
1. download addon-all-fixed-auto-install-v2.zip
2. unzip and copy all files to your USB root
3. start your CMU
4. plug it to the USB port and wait for about 30 seconds
5. if you see a dialog pop up on your screen, the installation should be completed
the installation will copy both speedometer/video player files into your system, and you have option to enable/disable any one of them (see below)
other than adding new files into the system, what current system files would be changed
changes would be made to the following 4 files, but installation will make backup first before applying the changes
- /jci/sm/sm.conf
- /jci/opera/opera_home/opera.ini
- /jci/scripts/stage_wifi.sh
- /jci/opera/opera_dir/userjs/fps.js (this one only backup, not changes)
question (option & improvement)
Q. I only need speedometer (or video player/reboot), how to disable the other one?
A. the option is at the first 2 lines in /jci/opera/opera_dir/userjs/addon-startup.js
Q. [speedometer] I need mph instead of kph, how to change it?
A. the option is at the first line in /jci/gui/addon-speedometer/addon-speedometer.js
Q. [video player] what type of video file supported?
A. currently the player will only search through all your connected USB drive for *.mp4 files, and generate a video list for you
Q. [video player] can I add more video type other than *.mp4 appear in my video list, e.g. *.mkv,
A. yes, you can modify it at line 68 in /jci/gui/addon-player/playback-action.sh, provided you know bash scripting
Q. [video player] I managed to add more video type file, e.g. *.mkv, can the player play it?
A. should be. if the player doesn't play it and if you know gst-launch command, you can modify it at line 49 in /jci/gui/addon-player/playback-action.sh
Q. [video player] how the "Play All" and "Repeat" works?
A. 3 cases:
- if only "Play All" is checked, play all videos in the list till the end
- if only "Repeat" is checked, repeat your current playing video
- if both "Play All" and "Repeat" are checked, repeat all videos in the list
problem & possible solution
Q. [speedometer] all speed value remain 0 when my car is moving?
A. try reinstall again
Q. [reboot system] when I click on the reboot button, nothing happen?
A. try reinstall again
Q. [video player] when I click on the "Search Videos" button, nothing happen, also the reboot button don't work?
A. try reinstall again
Q. [video player] when I click on the "Search Videos" button, nothing happen, but the reboot button works?
A. unplug and replug your USB drive and click "Search Videos" again. if after 2~3 times still can not, reboot the system
Q. [video player] when I click on one of the videos, nothing happen, and I only see "Preparing..." at the right bottom
A. click "Stop", "Search Videos" and play again. if still can not, try the other video
Q. [video player] only 5 out of 10 videos in my list can play, why?
A. to have the player to play most of the videos you have, from experience the best video codec is h.264/aac or h.264/mp3 at resolution not higher than 480p
* kindly bookmark this post permalink and always refer back here for any problem you may come across. only throw question if you don't find the answer here :smiley:
video player note
this video player, rely on "gst-launch" to play video, and "gst-launch" is a command come with the system. currently there is no menu/button available in the system for you to play video as how you play audio, then this video player been created.
this video player is only to provide you a user-interface to let you play video as easy as how you play audio. it can generate video list, also with playback control button like stop/play all/repeat, but underneath it is the "gst-launch" do the playing and output the video to the screen.
from own experience and many feedback from other users, the "gst-launch" come with the system doesn't seem to be very "stable", not "stable" as in very high chances it refuses to play the video you expected it would play, and reason may vary, most is the error related to memory.
meaning, this video player may not work for you.
(to best interact with the video player, be patient and always allow 2~3 second for the player to response after you click any button)
my note
this is so far the information I could provide. question or possible solution may be added along the time.
UPDATED:
- screenshot uploaded
- fixed and re-uploaded full script (fix speedbar no response)
- added auto install for non-ssh user
github url https://github.com/kwwong/mzd-addon
@waisky2 Nice work. Been waiting for this apps. :smile2: Works fine with my car. 2014 Mazda 3 BM a japanese car. see attached picture for the version. Video player is working fine but the speedometer every 2 seconds return to zero and back to current speed. About the icons, how to move them in other place or make them smaller because it blocks the application at the back. Thank you for your good work. More power. :smile2:
Attachments
-
370.5 KB Views: 330
-
703.9 KB Views: 324
-
573.9 KB Views: 266
-
687.7 KB Views: 286