Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re^2: Continuous or timed?

by Bod (Parson)
on Dec 12, 2020 at 23:35 UTC ( [id://11125077]=note: print w/replies, xml ) Need Help??


in reply to Re: Continuous or timed?
in thread Continuous or timed?

Your app depends upon knowing the current time - what happens if that time isn't known

You make a good point. I've not tried it, but I guess that the clock would initialise to sometime in the past (1st January 1970 perhaps) when the system boots until it is able to get the time from the internet. The plan is to not make any changes to the state of the curtains if the system time is before sometime in the past - probably 1st December 2020 to remind me when all this weird activity happened 😜

Once it knows the time, and knows it knows the time, it can go to work determining what state the curtains need to be in and putting them that way. There will be some 'fiddling' needed with the setup to get everything fine tuned as I cannot develop the system with a set of powered curtains to test it.

I have a Raspberry Pi. I am just starting to play with it - so I am a Pi newbie

Good luck!
It is proving to be an interesting and, at times frustrating process. Using an RPi Zero is frustrating at times as it is rather slow. Perflectly capable for the task it is to perform but very slow to set up and develop.

Replies are listed 'Best First'.
Re^3: Continuous or timed?
by Marshall (Canon) on Dec 13, 2020 at 02:20 UTC
    A quick google search shows that RPi Zero is a cheap $10 board. I have what I guess is a Pi 4. It has an Ethernet connection, HDMI connection to my monitor, USB for keyboard and mouse. Nothing slow about it at all! By the time I bought my Pi, the case. power supply. and the cables, it was north of $80. A friend burned me an SD card for me with the O/S including Perl and Python. My Pi has a Debian flavor of Unix and it works great - very fast - no problems.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11125077]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (3)
As of 2024-04-20 01:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found