Search found 23 matches
- Fri Nov 06, 2020 4:05 am
- Forum: Automation, sensing and robotics
- Topic: Citrus grow light
- Replies: 7
- Views: 506
Re: Citrus grow light
Thank you everyone for the comments. I finally had some time again to sit down at my computer again and dug deep into google. Here is what I came up with. So far it appears to work, just need to add a few things, like actually controlling the GPIO's. For now, I just put a comment in where that will ...
- Tue Nov 03, 2020 3:52 pm
- Forum: Python
- Topic: datetime.now() - basic python question
- Replies: 3
- Views: 273
Re: datetime.now() - basic python question
Awesome! That was exactly what I was looking for. Good explanation of how it works. Thank you both. A quick answer and then a place to get more info. Haven't stumbled across realpython yet. I tend to go to whatever google gives me first (usually stack exchange). Much appreciated! Also like the expla...
- Tue Nov 03, 2020 3:43 am
- Forum: Python
- Topic: datetime.now() - basic python question
- Replies: 3
- Views: 273
datetime.now() - basic python question
Still kinda new to python and I'm muddling through trying to learn as I go. What is the difference between: from datetime import datetime now = datetime.now() And import datetime now = datetime.datetime.now() I guess my expectation was that if I did the 2nd option it would import everything includin...
- Fri Oct 30, 2020 2:41 am
- Forum: Automation, sensing and robotics
- Topic: Citrus grow light
- Replies: 7
- Views: 506
Citrus grow light
I live in the northeast and have a couple of citrus trees that I keep outside in the summer and move inside in the fall. When I move them inside in the fall I need to very gradually increase the light they get to avoid stressing them (which causes all the leaves and any set fruit to fall off). I've ...
- Tue Sep 13, 2016 1:51 am
- Forum: Raspberry Pi OS
- Topic: Broadcast Message from pi@pand
- Replies: 7
- Views: 2936
Re: Broadcast Message from pi@pand
I am SUCH and IDIOT! My subconscious works much better after if I let it sleep on a problem. When I first set up this pi, I was messing around with learning crontab. Guess what I had left in the cron file for user pi? # This command writest 'test' to the wall of all users logged in at 11:21pm (23:21...
- Tue Sep 13, 2016 1:42 am
- Forum: Raspberry Pi OS
- Topic: Broadcast Message from pi@pand
- Replies: 7
- Views: 2936
Re: Broadcast Message from pi@pand
Have you added www-data to your sudoers file? That's a definite no-no and a serious security exposure. Nope. Just checked and this is what my sudoers looks like and there is nothing in the /etc/sudoers.d except the README file # # This file MUST be edited with the 'visudo' command as root. # # Plea...
- Mon Sep 12, 2016 8:48 pm
- Forum: Raspberry Pi OS
- Topic: Broadcast Message from pi@pand
- Replies: 7
- Views: 2936
Re: Broadcast Message from pi@pand
Well, someone has logged in as "pi" and sent a message to all users (wall). You have to assume your Pi has been compromised. Wipe the card and start again. If you want to see where the login came from, try "last -i" to show all recent logins. You'll see the IP addresses of any r...
- Mon Sep 12, 2016 8:33 pm
- Forum: Raspberry Pi OS
- Topic: Broadcast Message from pi@pand
- Replies: 7
- Views: 2936
Re: Broadcast Message from pi@pand
Before wiping the card take a look at /var/log/auth.log and you should see a line in there that tells you that someone logged in from outside your network. If you've opened ports with port forwarding and someone has got in you have to assume that it's not just your RPi that's possible been compromi...
- Sat Sep 10, 2016 3:43 am
- Forum: Raspberry Pi OS
- Topic: Broadcast Message from pi@pand
- Replies: 7
- Views: 2936
Broadcast Message from pi@pand
Not sure if this is the best forum or not but I'm going to start here. I had a putty window open on my desktop to my raspberry pi and was running the tail -f command to monitor a logfile. While off doing something else on my desktop I hear a beep and bounce back to my putty window and see this messa...
- Thu Sep 08, 2016 4:38 pm
- Forum: General discussion
- Topic: module gpiozero doesn't exist apparently
- Replies: 20
- Views: 17457
Re: module gpiozero doesn't exist apparently
B.Goode wrote:That can probably be fixed with:Andy10 wrote: when I use python version 3 it gives me an error, but not in version 2.Code: Select all
sudo apt-get install python3-pip
Yep. This did it. Thank you!
- Thu Sep 08, 2016 2:59 am
- Forum: General discussion
- Topic: module gpiozero doesn't exist apparently
- Replies: 20
- Views: 17457
Re: module gpiozero doesn't exist apparently
Have you considered - if only as an experiment - starting with a Full recent version of Raspbian with the gpiozero module pre-installed. I did try that and it works fine. Different raspberry pi zero running the full latest updated version of Jessie. I'm guessing at this point it's an issue with som...
- Wed Sep 07, 2016 2:40 am
- Forum: General discussion
- Topic: module gpiozero doesn't exist apparently
- Replies: 20
- Views: 17457
Re: module gpiozero doesn't exist apparently
So ran across this thread while trying to do some simple GPIO work with my new zero. I'm getting a similar error and not sure where to go from here. I've never used the GPIO's on this particular zero before so I started with a clean install of jessie-lite (it's going to be a battery powered game box...
- Fri May 06, 2016 5:34 pm
- Forum: Beginners
- Topic: Raspberry PI 3 power supply
- Replies: 3
- Views: 2369
Re: Raspberry PI 3 power supply
Short answer, No. Long answer, no, unless it was designed to handle the higher voltage (the Pi is not), you can't feed a 5V device directly from a 12V battery or power supply without 'letting the smoke out'. However, you can buy a 12V to 5V converter, such as a cigarette lighter adapter to charge yo...
- Sun Apr 17, 2016 3:06 am
- Forum: Automation, sensing and robotics
- Topic: RasPi web scraper & txt notification
- Replies: 4
- Views: 5684
Re: RasPi web scraper & txt notification
Why not do everything in python with BeautifulSoup4? BS4 gives you a really easy way to scrape a web page. Took a look at BS4, it looks interesting but a little above my current coding level. I'm still only good at understanding others code and modifying for my use, not so much with writing things ...
- Sun Apr 17, 2016 2:55 am
- Forum: Automation, sensing and robotics
- Topic: R.C Car Raspberry pi via web server
- Replies: 2
- Views: 865
Re: R.C Car Raspberry pi via web server
I've had good luck with adafruit tutorials in the past. They are really geared towards beginners and are helpful explaining the code when you don't understand it. This probably won't be quite what you need, but it might give you a starting point for the car portion- https://learn.adafruit.com/simple...
- Sat Apr 09, 2016 3:49 pm
- Forum: Automation, sensing and robotics
- Topic: RasPi web scraper & txt notification
- Replies: 4
- Views: 5684
Re: RasPi web scraper & txt notification
I think I solved my own problem. After posting and sleeping on it, I started poking around some more with cron. I changed the file names to have the full path and it appears to be working based on a suggestion I found here-> http://askubuntu.com/questions/23009/reasons-why-crontab-does-not-work hope...
- Fri Apr 08, 2016 7:16 pm
- Forum: Automation, sensing and robotics
- Topic: RasPi web scraper & txt notification
- Replies: 4
- Views: 5684
RasPi web scraper & txt notification
Howdy. Not sure if I should post this here or under software, but it's an automation project to me so I'll start here. The gist of what I'm trying to do is as follows-> 1) get data from a website 2) send text alert if it exceeds a certain value. 3) store the value in a text file 3) repeat I have man...
- Mon Jan 26, 2015 12:06 am
- Forum: Automation, sensing and robotics
- Topic: Set GPIO pin for variable length of time using CRON
- Replies: 8
- Views: 2282
Re: Set GPIO pin for variable length of time using CRON
I'd recommend option 2. Also, if you are increasing the time by a set amount per day, you could work out the time based on the number of the day within the year and subtract from the start day. No need to use file. So if incrementing by one minute a day and it started on 6th of Jan (day 6) and toda...
- Sun Jan 25, 2015 11:22 pm
- Forum: Automation, sensing and robotics
- Topic: Set GPIO pin for variable length of time using CRON
- Replies: 8
- Views: 2282
Re: Set GPIO pin for variable length of time using CRON
https://apscheduler.readthedocs.org Looks interesting, but this may be beyond my current technical capabilities to use, I'll have to spend some time reading into this one more. Python is brandy new to me. Unless I can copy and paste someone else's code as a solution, I have to spend days googling t...
- Sun Jan 25, 2015 4:58 pm
- Forum: Automation, sensing and robotics
- Topic: Set GPIO pin for variable length of time using CRON
- Replies: 8
- Views: 2282
Set GPIO pin for variable length of time using CRON
Hello world. I'm trying to figure out the best way to start and stop something at a variable time using my RPi, running the current version of Raspbian. I bought a new grow light for my dwarf lime tree but can't just use a standard timer to turn it on and off. I would have to start with a very minim...
- Mon Oct 13, 2014 12:48 pm
- Forum: Other projects
- Topic: APCUPSD on Raspi to send email on loss of power
- Replies: 4
- Views: 20683
Re: APCUPSD on Raspi to send email on loss of power
So the key thing I didn't include here was the APCCONTROL script. I had a friend take a peek at it for me and he immediately saw what my mistake was (DOH!). Turns out either the installed default does not include calls to the onbattery or offbattery scripts, or I changed it somewhere along the way t...
- Fri Sep 19, 2014 11:38 am
- Forum: Other projects
- Topic: APCUPSD on Raspi to send email on loss of power
- Replies: 4
- Views: 20683
Re: APCUPSD on Raspi to send email on loss of power
This was also a helpful post and got me to the point I'm at now->
http://www.raspberrypi.org/forums/viewt ... 29&t=14447
http://www.raspberrypi.org/forums/viewt ... 29&t=14447
- Fri Sep 19, 2014 3:20 am
- Forum: Other projects
- Topic: APCUPSD on Raspi to send email on loss of power
- Replies: 4
- Views: 20683
APCUPSD on Raspi to send email on loss of power
Hoping someone has run into this before and can help. My plan was to plug my Raspberry Pi which is setup as a 24/7 server with raspian 3.12.22+ into a UPS and have it email me when it lost power and when power came back. Bought a cheap APC UPS with a USB port and plugged it in. Downloaded and instal...