Jump to content

All Activity

This stream auto-updates     

  1. Today
  2. 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.
  3. Yesterday
  4. Last week
  5. 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?
  6. 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 problerms 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))
  7. 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.
  8. 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.
  9. Earlier
  10. 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.
  11. 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
  12. 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
  13. 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?
  14. 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.
  15. 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
  16. Gus

    RPI camera motion alerts

    Unsure why that didn't work as it worked for me, I will need to look into it further.
  17. 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.
  18. 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.
  19. 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?
  20. 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?
  21. 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?
  22. 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/
  23. 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.
  24. 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.
  25. 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?
  26. 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.
  27. atux_null

    RPI camera motion alerts

    At the moment the snapshots/videos are not saved anywhere for some strange reason
  28. atux_null

    RPI camera motion alerts

    Thanks for your reply. i did a clean install and wget the new version that you mentioned. The camera feed in the browser seems to work better now. i have an issue with the snapshots/videos recording (motion detection). I need them to be stored in the /home/pi/camera_images folder and create a folder for different day and send me email alert when there is a motion detection to my email. Here is my config: # Rename this distribution example file to motion.conf # # This config file was generated by motion 4.2.1 # Documentation: /usr/share/doc/motion/motion_guide.html # # This file contains only the basic configuration options to get a # system working. There are many more options available. Please # consult the documentation for the complete list of all options. # ############################################################ # System control configuration parameters ############################################################ # Start in daemon (background) mode and release terminal. daemon on # Start in Setup-Mode, daemon disabled. setup_mode off # File to store the process ID. ; pid_file value # File to write logs messages into. If not defined stderr and syslog is used. ; log_file value # Level of log messages [1..9] (EMG, ALR, CRT, ERR, WRN, NTC, INF, DBG, ALL). log_level 6 # Target directory for pictures, snapshots and movies target_dir /home/pi/camera_images/ # Video device (e.g. /dev/video0) to be used for capturing. videodevice /dev/video0 # Parameters to control video device. See motion_guide.html ; vid_control_params value # The full URL of the network camera stream. ; netcam_url value # Name of mmal camera (e.g. vc.ril.camera for pi camera). ; mmalcam_name value # Camera control parameters (see raspivid/raspistill tool documentation) ; mmalcam_control_params value ############################################################ # Image Processing configuration parameters ############################################################ # Image width in pixels. #width 640 width 1024 # Image height in pixels. #height 480 height 768 # Maximum number of frames to be captured per second. framerate 24 # Text to be overlayed in the lower left corner of images text_left CAMERA1 # Text to be overlayed in the lower right corner of images. text_right %d-%m-%Y\n%T-%q ############################################################ # Motion detection configuration parameters ############################################################ # Always save pictures and movies even if there was no motion. emulate_motion off # Threshold for number of changed pixels that triggers motion. #threshold 1500 threshold 30000 # Noise threshold for the motion detection. ; noise_level 32 # Despeckle the image using (E/e)rode or (D/d)ilate or (l)abel. despeckle_filter EedDl # Number of images that must contain motion to trigger an event. minimum_motion_frames 1 # Gap in seconds of no motion detected that triggers the end of an event. event_gap 60 # The number of pre-captured (buffered) pictures from before motion. pre_capture 3 # Number of frames to capture after motion is no longer detected. post_capture 0 ############################################################ # Script execution configuration parameters ############################################################ # Command to be executed when an event starts. ; on_event_start value # Command to be executed when an event ends. ; on_event_end value # Command to be executed when a movie file is closed. ; on_movie_end value ############################################################ # Picture output configuration parameters ############################################################ # Output pictures when motion is detected picture_output off # File name(without extension) for pictures relative to target directory picture_filename %Y%m%d%H%M%S-%q ############################################################ # Movie output configuration parameters ############################################################ # Create movies of motion events. movie_output on # Maximum length of movie in seconds. movie_max_time 60 # The encoding quality of the movie. (0=use bitrate. 1=worst quality, 100=best) movie_quality 45 # Container/Codec to used for the movie. See motion_guide.html movie_codec mkv # File name(without extension) for movies relative to target directory movie_filename %t-%v-%Y%m%d%H%M%S ############################################################ # Webcontrol configuration parameters ############################################################ # Port number used for the webcontrol. webcontrol_port 8080 # Restrict webcontrol connections to the localhost. webcontrol_localhost on # Type of configuration options to allow via the webcontrol. webcontrol_parms 0 ############################################################ # Live stream configuration parameters ############################################################ # The port number for the live stream. stream_port 8081 # Restrict stream connections to the localhost. stream_localhost off ffmpeg_output_movies off ############################################################## # Camera config files - One for each camera. ############################################################## ; camera /etc/motion/camera1.conf ; camera /etc/motion/camera2.conf ; camera /etc/motion/camera3.conf ; camera /etc/motion/camera4.conf ############################################################## # Directory to read '.conf' files for cameras. ############################################################## ; camera_dir /etc/motion/conf.d i would appreciate any help available
  29. I’ve a situation here and am completely new (and late) into the Retropie Game. Hopefully I can get some opinions and help here! I’ve a HTML 5 game coded in .js and would like to adapt it on my raspberry pi. I’ve installed my Raspian and I’m not sure what my next step should be. Our vision is to get it running offline, and not on a browser. Please let me know how I should go about doing it. The project I’m thinking of doing is to install this whole set up in an arcade machine. Is there any way I could set controller for this? (Joystick and buttons) Based on my research, I should be looking at GPIO. But I’m just not sure how we can customise the controls or install it. Lastly, is there function Whereby it’ll enter the game screen straight away when it’s switched on? Is this my best bet? https://pimylifeup.com/raspberry-pi-kiosk/ I know it’s really a lot queries! But I appreciate anyone that can help me out on this! Thank you in advance!
  1. Load more activity
  • Newsletter

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

    Sign Up
×