Configuring the Pi Headless
cat /sys/class/net/eth0/address - get MAC address
Use `open vnc://10.0.1.35:5901` to connect to vnc erver on rasbberry pi with IP address 10.0.1.35, where vncserver was started with
You can connect to your raspberrypi from another mac on the same local network using ssh raspberrypi.local provide that you have done
sudo apt-get update
sudo apt-get install libnss-mdns
Often this is pre0installed in the Pi distro.
Editing the Wifi configuration
PiFiller, PiFinder: PiFinder scans your network to find your Raspberry Pi and returns its IP address and MAC address. You can use the later to make a DHCP reservation for the RPi with a fixed IP address (Airport, choose Network)
Pi for Linux Users
Shutdown: sudo shutdown -h now
A collection links on Swift (the language). It will be updated as time passes.
Fun with Swift
It seems that even in the most stratospheric regions of the technocracy, the printed, physical book, that object we can hold in our two hands and read without a power source, is very much alive. Bill Gates has his book blog, Gates Notes. Mark Zuckerberg has his book club, his list, and his New Year’s resolution:
“Books allow you to fully explore a topic and immerse yourself in a deeper way than most media today,” Zuckerberg wrote on his personal Facebook page. “I’m looking forward to shifting more of my media diet towards reading books.”I
I don’t know if Jeff Bezos are Tim Cook have blogs or clubs, but in any case, three cheers to Gates and Zuckerberg. Anything that counterbalances the attention-pulverizing forces in our society is a good thing. If a CEO can read books, so can we:-)
PS. I guess Oprah started it:-) The more, the better.
BonsaiBot Mark IV (photos below) was put into service tonight after a week of development and testing. It measures and reports on soil moisture and waters the Bonsai when it is too dry. The code is at GitHub. No documentation or circuit diagrams yet, but that is coming.
The sensor is made of two nails, spaced about 2 cm apart, which are driven into the soil of the pot, one near the corner, the other near the trunk. Wires lead from the nails to an Arduino Uno, with connections to ground and analog pin 0. Using a voltage divider with the soil as one resistance, a 100 KOhm resistor as the other, the Arduino monitors the voltage drop between the junction of the two resistors and ground. A measure of “wetness” ranging from 0 to 100 is derived from this reading and displayed on an LCD. Using a knob, aka potentiometer the user can set a wetness level at which watering begins.
Watering is controlled by a relay connected to one of the digital output pins. The relay operates a valve connected to a water bottle whose bottom it about 10 cm above the top of the Bonsai’s soil level. When watering begins, it runs until the measured moisture level is “wet.” At the moment, watering is set to wetness 65, which is “dry’. (Between “wet” and “dry” is “moist”). Water is administered for one second every ten seconds so as to give plenty of time for it to be absorbed. Seems to work.