Skip to main content

Home Assistant automation to save Ring camera video to disk

Submitted by gill on
- id: '1664919647127'
  alias: Notify when doorbell senses motion
  description: ''
  trigger:
  - type: motion
    platform: device
    device_id: cfad552d81098c4038ea2d4bd813b366
    entity_id: binary_sensor.front_door_motion
    domain: binary_sensor
  condition: []
  mode: single
  action:
  - service: notify.persistent_notification
    data:
      message: '{{ trigger.to_state.attributes.friendly_name }} opened {{now().strftime("%c")}}'
      title: Doorbell motion sense
  - service: downloader.download_file
    data:

Install version of PHP

Submitted by gill on

dnf module list php
dnf module reset php
dnf remove php php-fpm
dnf remove php\*
dnf module enable php:remi-8.1
dnf refresh
dnf install php php-fpm composer php-bcmath php-cli php-common php-fedora-autoloader php-gd php-intl php-mbstring php-mysqlnd php-opcache php-pdo php-pecl-imagick-im7 php-pecl-zip php-process php-sodium php-tcpdf php-tidy php-xml phpMyAdmin

Permanently enable wake-on-lan with nmcli

Submitted by gill on

First, check that the interface supports WoL:

sudo ethtool enp4s0 |grep Wake
    Supports Wake-on: g
    Wake-on: d

Supports Wake-on: g is required for WoL to work. You can change the setting with ethtool or NetworkManager. When you use ethtool, the change does not survive a reboot.

sudo ethtool -s enp4s0 wol g

By using Network Manager nmcli commands, the change persists reboots.

Oboo Clock

Submitted by gill on

ssh root@Oboo-Clock-69F0

http://oboo-clock-69f0/clock.html

 

Software repo:

http://repo.getoboo.com/oboo-clock/packages/

http://repo.getoboo.com/oboo-clock/packages/latest/

Audio

Enable Bluetooth speaker audio: gpioctl dirout-high 3

Disable Bluetooth speaker audio: gpioctl dirout-low 3

gpioctl dirout-low 41

sleep 2

gpioctl dirout-high 41

sleep 2

gpioctl dirout-low 41

sleep 2

gpioctl dirout-high 41

Workload Scheduler power users: You need rlwrap

Submitted by gill on

If you use the Linux shell very much, you find its history functions very useful. You can recall previous commands very easily, just using the arrow keys.
If you use the Workload Scheduler command-line interfaces, conman and composer, you really miss the history. Sure there's the redo command, but its editing capability is limited to the last command you typed.

Tags

OpenWeather API

Submitted by gill on

Dear Customer!





Thank you for subscribing to Free OpenWeather API!



API key:

- Your API key is e0388b904819f96b7db1c9b5c2a99e76

- Within the next couple of hours, it will be activated and ready to use

- You can later create more API keys on your account page

- Please, always use your API key in each API call



Endpoint:

Print to SAMSUNG ML-3312ND

Submitted by gill on

To print to the SAMSUNG ML-3312ND you need:

  • Generic Linux drivers
  • SAMSUNG (now HP) Unified Linux printer drivers Print Driver (Driver) ver.V1.00.27.04 - Linux (MULTI LANGUAGE, 15.44 MB) 
  • CUPS

Try these steps:

  1. Download and decompress ULD_V1.00.27.04.tar.gz
  2. Copy

    ./uld/x86_64/rastertospl
    to

    /usr/lib/cups/filter
    and set ownership, permissions, and SELinux context like the other filters in that directory