Jump to content

All Activity

This stream auto-updates     

  1. Today
  2. Gus

    Raspberry Pi Internet Speed Monitor

    Hi Targenor, It looks likely that the code is failing to create the speedtest.csv file this when it moves onto f.write the file doesn't exist and it fails. This likely stems from a permissions issue. You can try running as sudo or/and also try using this line to give the script execute privileges. sudo chmod +x /home/pi/speedtest.sh
  3. Yesterday
  4. Gus

    Spoof MAC

    Hi PiriX, Can you please provide me the inside of the macchange file. /etc/network/if-up.d/macchange I will need to try and recreate the issue.
  5. Gus

    Raspberry Pi Kiosk using Chromium

    Hi Clay, You should be able to login like normal once the Kiosk has launched. The keyboard and mouse should work fine, we're only hiding the mouse cursor. Alternatively, you can try programming a login using xdotool but is likely complicated and may not work that well. It also is a bit of a security risk.
  6. I followed this guide (https://pimylifeup.com/raspberry-pi-kiosk/) which worked great but I'm wondering how to display websites that need a login. Thanks.
  7. Last week
  8. PiriX

    Spoof MAC

    I use your tutorial on https://pimylifeup.com/raspberry-pi-mac-address-spoofing/ and everything is working! Thanks! But.... the only thing I can't make run is the mac change script on system boot. Can you help me?
  9. Targenor

    Raspberry Pi Internet Speed Monitor

    Hi I am trying to do this project https://pimylifeup.com/raspberry-pi-internet-speed-monitor/ But it seems like i got some problems i dont understand I get this error: Traceback (most recent call last): File "/root/speedtest.py", line 22, in <module> f.write('{},{},{},{},{}\r\n'.format(time.strftime('%m/%d/%y'), time.strftime('%H:%M'), ping, download, upload)) NameError: name 'f' is not defined My file speedtest.py looks like this: import os import re import subprocess import time response = subprocess.Popen('/usr/local/bin/speedtest-cli --simple', shell=True, stdout=subprocess.PIPE).stdout$ ping = re.findall('Ping:\s(.*?)\s', response, re.MULTILINE) download = re.findall('Download:\s(.*?)\s', response, re.MULTILINE) upload = re.findall('Upload:\s(.*?)\s', response, re.MULTILINE) ping = ping[0].replace(',', '.') download = download[0].replace(',', '.') upload = upload[0].replace(',', '.') try: f = open('/home/pi/speedtest/speedtest.csv', 'a+') if os.stat('/home/pi/speedtest/speedtest.csv').st_size == 0: f.write('Date,Time,Ping (ms),Download (Mbit/s),Upload (Mbit/s)\r\n') except: pass f.write('{},{},{},{},{}\r\n'.format(time.strftime('%m/%d/%y'), time.strftime('%H:%M'), ping, download, upload))
  10. The project https://pimylifeup.com/raspberry-pi-wifi-extender/ fails on RPi 3B+ with sudo update/upgrade on 1/17/19. Both install packages dnsmasq and hostapd seem to work until the Y/n question, then failure to fetch errors appear. Trying --fix-missing produced Aborting Install. The project says Gus Updated Aug 20, 2018. Project looks promising, please help. Thank you.
  11. Brand new to Raspberry Pi, and struggling through the setup. I finally got through imaging the SD card, and the next step is: <<Set your wifi details in the “octopi-network.txt” configuration file on the SD – ensure you save as plain text, do not convert ” characters to curly ” characters!>> But, I get E: is not accessible.
  12. Earlier
  13. ElSabio

    4096 byte long DH Param

    Hello there, I am following the Raspberry Pi OwnCloud tutorial and on point 7 it asks the user to create a 4096 byte long DH Param. So, you copy that code line provided in the blog, and an error shows up, "oh okay they forgot to add 'sudo', I will add it", but boy, 1 hour and a half later the Rpi still is calculating this. I read on reddit it can go on for 23 hours... So I ask you, mighty raspberriers, for advice on wether this can be calculated on another machine (more calculus powerfull machine) and then somehow add it to the raspberry pi. I bought it yesterday, so I have close to cero idea on how to do this. If anyone could explain it simply I would love to read it. Bye bye mi picolisima bye bye.
  14. atux_null

    rpi with pi cam and usb cam

    i failed to see the second camera. I have motion working working with the onboard camera and i added a usb camera (Microsoft lifecam HD3000) and it is recongised from the system since i can manually see with the software fswebcam. /dev/video0 is the onboard camera /dev/video1 is the usb camera i have two files (Camera 1 and camera 2). Motion.conf: daemon on process_id_file /var/run/motion/motion.pid setup_mode off logfile /var/log/motion/motion.log log_level 6 log_type all v4l2_palette 17 input -1 norm 0 frequency 0 power_line_frequency -1 rotate 0 width 1280 height 960 framerate 80 minimum_frame_time 0 netcam_keepalive off netcam_tolerant_check off rtsp_uses_tcp on auto_brightness off brightness 0 contrast 0 saturation 0 hue 0 roundrobin_frames 1 roundrobin_skip 1 switchfilter off threshold 1500 threshold_tune off noise_level 32 noise_tune on despeckle_filter EedDl smart_mask_speed 0 lightswitch 0 minimum_motion_frames 1 pre_capture 5 post_capture 5 event_gap 60 max_movie_time 0 emulate_motion off output_pictures on output_debug_pictures off quality 75 picture_type jpeg ffmpeg_output_movies off ffmpeg_output_debug_movies off ffmpeg_timelapse 0 ffmpeg_timelapse_mode daily ffmpeg_bps 400000 ffmpeg_variable_bitrate 0 ffmpeg_video_codec mpeg4 ffmpeg_duplicate_frames true use_extpipe off snapshot_interval 0 locate_motion_mode off locate_motion_style box text_right %d-%m-%Y\n%T-%q text_left rpi0w_CAMERA %t text_changes off text_event %Y%m%d%H%M%S text_double off target_dir /home/pi/camera_images snapshot_filename %v-%Y%m%d%H%M%S-snapshot picture_filename %Y_%m_%d/%v-%d%m%Y_%H%M%S-%q movie_filename %Y_%m_%d/%v-%d%m%Y%_H%M%S-%q timelapse_filename %d%m%Y-timelapse ipv6_enabled off stream_port 8081 stream_quality 50 stream_motion off stream_maxrate 1 stream_localhost off stream_limit 50 stream_auth_method 0 webcontrol_port 8080 webcontrol_localhost off webcontrol_html_output on track_type 0 track_auto off track_iomojo_id 0 track_step_angle_x 10 track_step_angle_y 10 track_move_wait 10 track_speed 255 track_stepsize 40 quiet on camera /etc/motion/camera1-dist.conf camera /etc/motion/camera2-dist.conf ################################################# camera1-dist.conf camera_id = 1 videodevice /dev/video0 input -1 text_left CAMERA 1 picture_filename CAM1_%v-%Y%m%d%H%M%S-%q stream_port 8081 ################################################# camera2-dist.conf camera_id = 2 videodevice /dev/video1 input 1 text_left CAMERA 2 picture_filename CAM2_%v-%Y%m%d%H%M%S-%q stream_port 8082 ################################################### if i go to http://IP:8080 i see twice the onboard camera and the usb it says unable to open camera https://ibb.co/nfgNyPB
  15. PiLover

    will not execute on boot up

    Hi, Thank you for even asking. I do appreciate your effort. I hope this answers your question: in the file /etc/rc.local are the following 2 lines: sleep 10 /bash/home/start-picture-frame.sh & In that file is the line: #!/bin/bash set BLANK_TIME=0 DISPLAY=:0.0 XAUTHORITY=/home/pi/.Xauthority /usr/bin/feh -d -p -Z -F -R 15.0 -$ media/pi/PINKDR ALL THE .jpg files are in the top directory: (no sub folder) of a little 16 gb PINK COLORED THUMBDRIVE. (PINK is my wife's favorite color and the digital picture frame) was one of my Christmas gifts to my wife. The drive is named all in upper case letters, and is recognizable as such no matter which of the 4 usb ports I plug it into. I have tested this by rebooting the raspberry pi, that drives the display each time, before moving the drive. I actually do a software shutdown, and then, move the thumb drive. The kicker is if I bash the file after start up, it starts fine. but it will not start on boot up all on its own. I want it to start up all on its own, so that my wife does not need to come to be to re-start it manually. She is no where near a technical nerd that I am. Any insights would be very much appreciated. i also need to enter the command startx after it boots up, even though raspberry preferences are set to bring up the desktop and not cli, and also it is set in sudo respi-config. All files mentioned above are set to sudo chmod 777 vnc is enabled, feel free to log in yourself. I have reset the password. Let me know if you want it. Thank you, Joe Rich
  16. atux_null

    rpi with pi cam and usb cam

    i do have a RPI with rpi cam and by using the software motion it can motion(dah) detect movement. It records it as video and still images. Also it provides in http://IP_ADDRESS:8081 a stream. I would like to add another one or two usb cameras (Microsoft lifecam HD 3000) and motion detect from all three cameras, as well present in a single webpage the stream of each camera in a tile. Has anyone got any ideas on how to create it, please?
  17. atux_null

    RPI camera motion alerts

    Just finished the setup of a new Raspbian install with motion. In order to make it work, as user i created a folder and gave it 777 rights. then in motion.conf in target_dir i pointed to this directory. It worked after clean install. Thanks a lot for your time.
  18. Spadge

    Kiosk cache

    Greetings community ! Have recently set up several pi kiosks with the fantastic guide on this website and it works a treat !!! My situation is i have pi's on remote sites running kiosk mode on an interactive choices website. But when changing pages the load time is quite noticeable. I was aiming to speed this up with caching the pages in question but im lost on how to go about this. thanks
  19. Gus

    RPI camera motion alerts

    Unsure why that didn't work as it worked for me, I will need to look into it further.
  20. Each USB port will have a unique name. You should be able to see the name of your USB drive by using the following command. ls /media/pi/ It should look something like IC50-B61A If you're on Raspbian lite then you will need to do it manually by doing something like what's explained in this tutorial. Alternatively you can try using the usbmount package. If drive is formatted in either exFAT or NTFS then you will need to install the appropriate packages.
  21. auto

    will not execute on boot up

    Sorry I can't answer your question but I would like to know what you named and how you setup the thumb-flash drive. Also does the setup change depending on which port you plug it into? The photo frame instructions are not clear on setting up the path to the thumb drive full of images.
  22. My mistake. As setup, using /media/NASHDD1/test , can I now put images on a flash drive in a directory named "test" or is it more complicated than that? Also, does each usb port have a unique name?
  23. atux_null

    RPI camera motion alerts

    i am afraid even that did not make it to work. i have the folder /home/pi/camera_images and the rights are: pi@rpi0cam:~ $ ls -la | grep camera_images drwxrwxr-x 2 pi motion 4096 Jan 3 09:06 camera_images pi@rpi0cam:~ $ and it is configured in /etc/motion/motion.conf as: # Target directory for pictures, snapshots and movies target_dir /home/pi/camera_images and there are not any logs available to find out the error: pi@rpi0cam:/var/log/motion $ ls pi@rpi0cam:/var/log/motion $ any ideas please?
  24. Gus

    Question With NGINX Pi Build

    Most likely means your Nginx configuration is incorrect or the required PHP packages aren't installed. If PHP is definitely installed, I would run back through step 3 to 6 and double check for any mistakes. If you continue to have problems let me know and I will look into it further. Also, can you provide config files, and any other information that might help with troubleshooting?
  25. A great change for students, freelancers and anyone else using the free version of GitHub as you can now create as many private repositories as you want. More Information Here: https://pimylifeup.com/news-unlimited-github-private-repositories/
  26. Gus

    RPI camera motion alerts

    Ok, I identified the issue with the videos/snapshots not saving. You will need to make a directory and give Motion permission to write into it. For example. sudo mkdir /motion sudo chgrp motion /motion sudo chmod g+rwx /motion Then inside the motion config file, change target_dir to the folder. target_dir /motion As for the motion saving in a new folder for each day, I am not entirely sure if this is possible. Will need to look through the Motion documentation. If not via motion, it may be possible to set up a cron that organises the files into folders at the end of each day.
  27. In step 2, you replace the /media/NASHDD1/test with the path to your images. Your images can be anywhere you wish but you need to update that part of the command. If you don't update it, then it will throw that error as the path unlikely exists. There are no default images for feh to display.
  28. I did everything exactly as instructed but I got the message "no loadable images specified". Was it supposed to load a default image? Where do I put my images?
  29. linuxman

    corrupt sudoers file

    Recently, I had a problem with a corrupt sudoers file. I have an old RPi 2 that I had loaded the latest raspian OS. The sudo command did not work. I traced it down to sudoers just having open and close brackets in the file. When I replaced the sudoers file with a good one, all worked well. My explanations was that I was using a 1000ma 5V power supply for the RPI2, or when I loaded the new OS to the SD card (16GB), I should have reformatted the card. I used Etcher to load the OS to the SD card. Any comments would be appreciated.
  1. Load more activity
  • Newsletter

    Want to keep up to date with all our latest news and information?

    Sign Up