Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

control software for Janet Zweig's public art piece in the San Diego public library's Mission Hill/Hillcrest branch

NotificationsYou must be signed in to change notification settings

barlaensdoonn/scroll

Repository files navigation

control software for Janet Zweig's public art piece to be installed at the new San Diego public library Mission Hill/Hillcrest branch

scrolls

dependencies

pyyaml and numpy

sudo pip install pyyamlsudo pip install numpy

external hard drive

there is an 8GB external thumb drive automatically mounted at boot to/mnt/backup. all of the automount settings are stored in the/etc/fstab file.more info here

autolaunching script as a systemd service

the scriptmain.py is set to be run automatically as a systemd service. the relevant systemd service file is located at/lib/systemd/system/scroll.service. note that in order for the service to run successfully relative file paths cannot be used. all file paths must be absolute. theget_basepath() function in themain.py module is useful for setting the correct filepaths.more info on systemd services here

real time clock

currently using theRasPi DS1307 RTC-I2C HAT from Nation Electronics

instructions from their website:runsudo raspi-config and enable I2C in "Advanced Options", then reboot

install I2C-tools:

sudo apt-get install i2c-tools

check that RTC shows up on I2C channel 68:

sudo i2cdetect -y 1

adddtoverlay=i2c-rtc,ds1307 to the bottom of /boot/config.txt:

sudo nano /boot/config.txt

addrtc-ds1307 to /etc/modules:

sudo nano /etc/modules

comment out 3 lines from /lib/udev/hwclock-set:

sudo nano /lib/udev/hwclock-set# comment out these lines:if [ -e /run/systemd/system ] ; then    exit 0fi

reboot, and if the Pi is connected to the internet the current date and time should be set automatically. verify this with:

sudo hwclock -r

if not connected to the internet, first the system date must be set, and then that date must be written to the hwclock:

sudo date -s "6 OCT 2015 18:00:00"sudo hwclock -w

About

control software for Janet Zweig's public art piece in the San Diego public library's Mission Hill/Hillcrest branch

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages


[8]ページ先頭

©2009-2025 Movatter.jp