Go to advanced search

by rohtua
Sun May 05, 2019 9:42 pm
Forum: Troubleshooting
Topic: Motion keeps blocking my Raspberry Pi 3 after a while
Replies: 2
Views: 97

Re: Motion keeps blocking my Raspberry Pi 3 after a while

Hi, I've had similar problems in the past. Would you be able to elaborate aon your setup a little more please. I.e. what sort of power supply are you using and how big is the sd card you're recording to? Also are you able to share any logs from motioneye at the time of a crash so we could see what m...
by rohtua
Thu Feb 28, 2019 8:26 pm
Forum: General discussion
Topic: Need to upload security video to Google Drive
Replies: 6
Views: 261

Re: Just need a pointer to how to do this...

Have a look at motioneyeos it has options for uploading to remote storage. Plus the web interface could be used externally with some port forwarding. So you could if you wanted just view it remotely via the interface rather than via google drive.

https://github.com/ccrisan/motioneyeos
by rohtua
Tue Feb 12, 2019 1:57 pm
Forum: Beginners
Topic: How to copy file from server dir to home dir
Replies: 9
Views: 200

Re: How to copy file from server dir to home dir

Try it without the quotes around $savedatum I don't think they're needed. exec("cp /var/www/html/Briefjes/Meetrapport_.$savedatum.png '/home/pi/Google Drive/Online logboek 2019/'"); or only use single quote ' around it if it does need a quote of some sort. I think the quote marks there are ending yo...
by rohtua
Sat Feb 09, 2019 11:58 am
Forum: Troubleshooting
Topic: using Find to remove files older than X number of days
Replies: 18
Views: 502

Re: using Find to remove files older than X number of days

Thanks guys, it works perfectly!!!!! :)
by rohtua
Sat Feb 02, 2019 5:00 pm
Forum: Troubleshooting
Topic: Grafana package from apt install grafana not working
Replies: 6
Views: 588

Re: Grafana package from apt install grafana not working

Hi I've installed Grafana succesfully but I'm not getting any data through. I'm using InfluxDB as a data source on another pi and have it set and when i link it to Grafana I get a no data points error and looking at InfluxDB I'm not getting any logs generated in /var/log/influxd all I seem to be abl...
by rohtua
Thu Jan 31, 2019 5:35 pm
Forum: Troubleshooting
Topic: using Find to remove files older than X number of days
Replies: 18
Views: 502

Re: using Find to remove files older than X number of days

The syntax would be '-mindepth 1' rather than '-mindepth=1' See "man find" for the details. In order to remove the directories when empty, try the '-delete' option. It will remove both directories and files, but only remove the directories if they happen to be empty. Hi, I should have specified in ...
by rohtua
Thu Jan 31, 2019 4:12 pm
Forum: Troubleshooting
Topic: using Find to remove files older than X number of days
Replies: 18
Views: 502

Re: using Find to remove files older than X number of days

Perfect, I've just tested it and it's working perfectly. I'm running: find /media/nas/Security/ -depth -mtime +7 -print and it's working, the only issue I ran into was it didn't recognize -mindepth=1 for some reason, it gave the below error: find: unknown predicate `-mindepth=1' but once I took that...
by rohtua
Wed Jan 30, 2019 10:29 pm
Forum: Troubleshooting
Topic: using Find to remove files older than X number of days
Replies: 18
Views: 502

Re: using Find to remove files older than X number of days

Ahhh. That makes sense I was using * because I thought I had to specify which of the files found I wanted to use rm on and I wanted to use it on all of them. I'll give that ago and let everyone know what results I get. It looks like there was a couple of issues in there with the * and the modified t...
by rohtua
Wed Jan 30, 2019 7:13 pm
Forum: Troubleshooting
Topic: using Find to remove files older than X number of days
Replies: 18
Views: 502

Re: using Find to remove files older than X number of days

Hi yes, the -rv * is to remove files and directories and the v is for verbose so I can see what is being removed while it's running. I'm aiming to get rid of all files found by the find command it's just for some reason that wasn't happening. I think it's because the backup script I have uses rsync ...
by rohtua
Wed Jan 30, 2019 6:08 pm
Forum: Troubleshooting
Topic: using Find to remove files older than X number of days
Replies: 18
Views: 502

Re: using Find to remove files older than X number of days

Not to jynx it but that sounds like it might be the answer to my problem :) :) :) :) :)

Will update once I've tested it out properly.

Thank you :) :) :)
by rohtua
Wed Jan 30, 2019 5:50 pm
Forum: Troubleshooting
Topic: using Find to remove files older than X number of days
Replies: 18
Views: 502

Re: using Find to remove files older than X number of days

Cheers, I think my best bet might be to use a script based of the filename and work with the date for that side of it. I've just had a look at stat, currently the info it's showing looks correct (ish) in as much there is no created time and the modified time appears to be when the file was copied on...
by rohtua
Wed Jan 30, 2019 5:30 pm
Forum: Troubleshooting
Topic: using Find to remove files older than X number of days
Replies: 18
Views: 502

Re: using Find to remove files older than X number of days

Hi the date is in the filenames so I can always look at that. I should have said in the first post the NAS is run off a Raspberry Pi 3B+ using OpenMediaVault and the camera is another Pi 3B+ using MotionEyeOS. That's why I'm a bit confused as to why it isn't working because both of the scripts are b...
by rohtua
Wed Jan 30, 2019 4:53 pm
Forum: Troubleshooting
Topic: using Find to remove files older than X number of days
Replies: 18
Views: 502

using Find to remove files older than X number of days

Hi, I'm trying to use the find command to delete files older than X number of days. The files are being recorded on my CCTV camera and then transferred to my NAS for storage. In terms of that I've got a script running regularly that moves any files older than 15 minutes off the camera and onto the N...
by rohtua
Tue Jan 29, 2019 6:42 pm
Forum: General discussion
Topic: Funny behaviour with bash script
Replies: 3
Views: 166

Re: Funny behaviour with bash script

That's it spot on!!!!! Thanks a lot. It looks like some how a copy of the original script had ended up in /usr/local/bin/ not quite sure how but I've removed it and now my script works however I run it!!! Thank you :):):) I'll keep working on the script. I'm slowly finding new things and ways to wri...
by rohtua
Tue Jan 29, 2019 5:48 pm
Forum: Beginners
Topic: How do I get at my files?
Replies: 37
Views: 893

Re: How do I get at my files?

Hi it's sshd_config not sshd.config I'd just double check you've edited the right file.
by rohtua
Tue Jan 29, 2019 5:29 pm
Forum: General discussion
Topic: Funny behaviour with bash script
Replies: 3
Views: 166

Funny behaviour with bash script

Hi, I was just wondering if someone could explain some funny behaviour I'm seeing on one of my Pi's. I have a backup script that I use to backup my files from one drive to another. #!/bin/bash PATH=/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/srv/dev-disk-by-label-Untitled/rohtua/script...
by rohtua
Tue Jan 29, 2019 3:17 pm
Forum: Beginners
Topic: How do I get at my files?
Replies: 37
Views: 893

Re: How do I get at my files?

Hi sshd_config can normally be found in /etc/ssh As for the external link that will be your external IP address. If you google what's my IP you should be able to find out. Unless you have a static IP though (for your external IP), which is unlikely, you'll probably want to look at a dynamic dns serv...
by rohtua
Sun Jan 27, 2019 7:50 am
Forum: Troubleshooting
Topic: Pi v2 Camera Corrupts SD card
Replies: 5
Views: 221

Re: Pi v2 Camera Corrupts SD card

Just out of curiosity how big is the sd card and what class. I've had similar issues where my pi stopped working and won't boot when I've been recording with the camera. For me the issue was I was filling the storage on the card. Once the storage was full the pi would just crash and wouldn't come ba...
by rohtua
Sat Jan 26, 2019 5:22 pm
Forum: General discussion
Topic: Recommend a decent power supply
Replies: 9
Views: 612

Re: Recommend a decent power supply

Sat Jan 26, 2019 3:32 pm Imperf3kt wrote: ↑ Sat Jan 26, 2019 12:49 pm Why not use the official power supply plus a short, say 1.5m, extension cable? The extra connectors and double the wire length may very well cause too much voltage drop. A better option is to cut out the original wire and solder ...
by rohtua
Sat Jan 26, 2019 11:18 am
Forum: General discussion
Topic: Recommend a decent power supply
Replies: 9
Views: 612

Re: Recommend a decent power supply

Hi guys, I know it's been quite a while since you all posted but I've not been online for a while thanks for all your comments, I hadn't though of the POE solution I'll look into trying that thanks. I did get a longer wall extension which seems to have sorted it for me but it would be nice to have a...
by rohtua
Sat Jan 26, 2019 11:12 am
Forum: Troubleshooting
Topic: Pi Nextcloud and just can't see the issue
Replies: 8
Views: 439

Re: Pi Nextcloud and just can't see the issue

I think we might be getting closer to the problem here! The ip address tallys with my pi address however the data directory when I navigate to it says it doesn't exist - So I navigated to nextcloud dir and did an ' ls' command which showed the data directory in red, I assume that it is red due to so...
by rohtua
Fri Jan 25, 2019 10:27 pm
Forum: Beginners
Topic: Connecting through a router from a raspberry pi to another linux computer
Replies: 6
Views: 204

Re: Connecting through a router from a raspberry pi to another linux computer

Hi, could you post the output from the ash attempts please I.e. the stuff it's says after the ssh [email protected] so we can see the exact messages your getting. The yes no question is potentially perfectly normal if it's the one I'm thinking of. Whenever you ssh into a device for the first time it asks ...
by rohtua
Thu Jan 24, 2019 8:36 pm
Forum: Troubleshooting
Topic: Pi Nextcloud and just can't see the issue
Replies: 8
Views: 439

Re: Pi Nextcloud and just can't see the issue

OK. :) Let me know what you find. If it is a case of something corrupted when the power failed I.e. perhaps something was being updated then the power went out you may have to re flash the sd card and set it up again but that's absolute worst case (but may be the easiest way to fix it failing findin...
by rohtua
Thu Jan 24, 2019 8:17 am
Forum: Beginners
Topic: Unable to proceed with ssh session
Replies: 1
Views: 102

Re: Unable to proceed with ssh session

Has the IP changed at all? Unless you have a static IP setup on the pi it can change when you reboot the pi or when the router reboots. It might be that your trying to connect to the wrong IP.
by rohtua
Wed Jan 23, 2019 9:21 pm
Forum: Troubleshooting
Topic: Pi Nextcloud and just can't see the issue
Replies: 8
Views: 439

Re: Pi Nextcloud and just can't see the issue

OK. I'm struggling to think what it might be to be honest. Like you said nothing has changed other than the power failure. It could be something got corrupted when the power went down. Nextcloud will have its own folder with the configuration files etc. Are they all still in the same place, nothing ...

Go to advanced search