• Content Count

  • Joined

  • Last visited

  1. Hi, I am trying to write a program which will detect the presence of SD Card in Nano Pi M1 plus device. There are many ways to do this either by doing fdisk -l or looking into /dev/mmcblk* . But I want to keep running it in a loop and doing fdisk -l and grep doesn't seems an appropriate way. Can the insertion or removal of SD cards be checked via Hardware Interrupts? Plz. help me I am a newbie.
  2. ron123456

    Service file not playing video

    I have written a Python script that receives an online link from the server and downloads it and plays it simultaneously. After that, it plays it from the device unless it receives a new video link. I have written a service file that runs this code once the device boots. Service Script [Unit] Description=My device boot script service [Service] Type=idle User=root Environment=DISPLAY=:0 Restart=on-failure ExecStart=/root/Video_project/ [Install] script #!/bin/bash #exec 1> >(logger -s -t $(basename $0)) 2>&1 python /root/Video_project/ Python function to play video I have these 3 functions running which displays the image and the video def image_func(): img_link = "" img_cmd = "feh -F %s"%(img_link) os.system(img_cmd) def play_video_from_server(link): print("Playing video from server") cmd = "mplayer -fs ffmpeg://%s" %(link) #link is read from JSON file os.system(cmd) def play_video_from_device(link_ID): print("Playing video from Device") cmd = "mplayer -fs %s.mp4" %(link_ID) #link_ID .mp4 is the name of the downloaded video os.system(cmd) The video player and image viewer never open in the front screen. How should I make it run to view the image and video?
  3. ron123456

    Mplayer unable to play stream

    I am trying to stream a video using NanoPi M1 Plus device from a URL using mplayer But it throws an error No stream found to handle url What is the issue?
  4. ron123456

    Nanopi M1 plus WiFi

    Hello as I have been experimenting with my NanoPi M1+, I want to know how to turn my nanopi device into a wifi access point. Also, how will it automatically start transmitting wifi signals immediately after boot?
  5. ron123456

    Nanopi M1 plus WiFi

    Hello, I am new to Nanopi platform. I want to use nanopi m1+ as a wifi access point. How should I go after it from starting?
  6. Hello I am new to Nanopi m1 plus development board. I followed the instruction as on friendlyarm's wiki page. I loaded the image from my Ubuntu OS and connected my device to the pc. The blue led was blinking normally. I used Putty to view the logs. While booting it is showing: resize2fs 1.42.12 (29-Aug-2014) resize2fs: Bad magic number in super-block while trying to open /dev/mmcblk0p2 Couldn't find valid filesystem superblock. resize2fs exited with status code 1 done. mount: mounting /dev/mmcblk0p2 on /root failed: Invalid argument done. Target filesystem doesn't have requested /sbin/init. Begin: Running /scripts/local-bottom ... done. Begin: Running /scripts/init-bottom ... mount: mounting /dev on /root/dev failed: No such file or directory done. No init found. Try passing init= bootarg. Rebooting automatically due to panic= boot argument [ 45.460839] reboot: Restarting system I uploaded image. What is the issue and how can it be resolved?