PiSupply / PaPiRus

Resources for PaPiRus ePaper eInk displays
https://www.pi-supply.com/product/papirus-epaper-eink-screen-hat-for-raspberry-pi/
Other
345 stars 88 forks source link

papirus-config not working as expected #6

Open hystrix1 opened 8 years ago

hystrix1 commented 8 years ago

Using sudo papirus-config to set the screen size has no effect:

image

image

sudo papirus-set has the same issue:

image

hystrix1 commented 8 years ago

I just found a work-around this by editing papirus-set: sudo nano /usr/local/bin/papirus-set, and editing EPD_SIZE=2.7 to read EPD_SIZE=2.0

eichin commented 8 years ago

By inspection, papirus-set can't actually work, because set_config as-written will only change an existing assignment, line 22 comments out any assignment that's already in the file. I suspect "delete line 22 of papirus-set" fixes the whole problem, but I haven't tested it.

tvoverbeek commented 8 years ago

The install (sudo python setup.py install) installs the wrong version of papirus-set. This is caused by the presence of the build directory. Delete the build directory (under the main PaPiRus directory) and all the papirus-* files under /usr/local/bin/. Then run the install again. This should install the right version (found in PaPiRus/bin/papirus-set). The EPD_SIZE=2.7 should now read EPD_SIZE=$1 (line 25 in the right version).

francesco-vannini commented 7 years ago

Closing this as it has been fixed.

shawaj commented 7 years ago

A number of the functionalities of this still don't seem to work for examples these lines are obviously BS:

if [ "$OPTION" = "Web Interface" ]; then

    #!/bin/bash
    if (whiptail --title "Web Interface"  --yesno "Would you like to enable the web interface?" 10 60) then
        echo "You chose Skittles Exit status was $?."
    else
        echo "You chose M&M's. Exit status was $?."
    fi

fi

if [ "$OPTION" = "Test Mode" ]; then

    #!/bin/bash
    if (whiptail --title "Test mode"  --yesno "Do you want to enable auto test mode?" 10 60) then
        echo "You chose Skittles Exit status was $?."
    else
        echo "You chose M&M's. Exit status was $?."
    fi

fi

So will reopen this issue for now

shawaj commented 7 years ago

That is from here - https://github.com/PiSupply/PaPiRus/blob/master/bin/papirus-config