Skip to content

Power On Event? #701

Answered by tvoverbeek
lcnittl asked this question in Q&A
Apr 11, 2021 · 7 comments · 11 replies
Discussion options

You must be logged in to vote

@lcnittl Attached the modified pijuice_sys.py and a modified pijuice_cli.py (to manipulate the added 'power back' setting)
pijuice_cli.py.txt
pijuice_sys.py.txt
Remove the .txt extension (was needed because github does not allow uploading .py files)

To test:

  • Back up the existing /usr/bin/pijuice_sys.py
  • Stop the pijuice service sudo systemctl stop pijuice
  • Copy the modified pijuice_sys.py to /usr/bin (needs sudo)
  • Set correct owner sudo chown pijuice:pijuice /usr/bin/pijuice_sys.py
  • Start the pijuice service again sudo systemctl start pijuice and check with systemctl status pijuice
  • You can run the changed pijuice_cli.py with sudo -u pijuice python3 <path to modified>pijuice_cli.py to
    enable …

Replies: 7 comments 11 replies

Comment options

You must be logged in to vote
1 reply
@lcnittl
Comment options

Comment options

You must be logged in to vote
1 reply
@lcnittl
Comment options

Comment options

You must be logged in to vote
1 reply
@lcnittl
Comment options

Comment options

You must be logged in to vote
1 reply
@lcnittl
Comment options

Comment options

You must be logged in to vote
7 replies
@lcnittl
Comment options

@lcnittl
Comment options

@tvoverbeek
Comment options

@lcnittl
Comment options

@lcnittl
Comment options

Answer selected by lcnittl
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants