You can edit the font-size value in the .btn-control section in ~/pikrellcam/www/js-css/pikrellcam.css. Try changing ittropho wrote: ↑Tue Jun 18, 2019 1:06 pmDoes anyone know how to increase the size of the buttons on the PiKrellCam main page? I would like to increase the size of the Motion, Video, Stills, etc. buttons to make them easier to use on the touch screen I have mounted next to my front door. It's great for seeing who is outside, but the buttons are so small and difficult to activate. I have a similar issue on my phone, though not as much but it would still be great to make them bigger. I've reviewed the various .php files, .js and .css files and don't see anything that is obvious to me. Thanks in advance for any help with this!
Code: Select all
dir=~pi/pikrellcam
mkfifo $dir/servoblaster
sudo ln -s $dir/servoblaster /dev
Code: Select all
while :
do
IFS='=' read pin value < /dev/servoblaster
width=$((value*10))
echo Setting pin $pin to $width microseconds
done
Code: Select all
MPlayer 1.3.0-8.2.0 (C) 2000-2016 MPlayer Team
Playing rtsp://192.168.0.9:8555/stream.high.
Connecting to server 192.168.0.9[192.168.0.9]: 8555...
rtsp_session: unsupported RTSP server. Server type is 'GStreamer RTSP server'.
libavformat version 58.20.100 (external)
libavformat file format detected.
[rtsp @ 0x7f77c63e8840]method DESCRIBE failed: 503 Service Unavailable
LAVF_header: av_open_input_stream() failed
Code: Select all
[email protected]:~# ./start-gst-variable-rtsp-server.sh
[1]:main:527 - set debug level to: 99
[1]:main:535 - set port to: 8555
[1]:main:531 - set mount point to: /stream.high
[1]:main:539 - set user pipeline to: ( tcpclientsrc port=3000 do-timestamp=true blocksize=262144 ! video/x-h264,stream-format=byte-stream,profile=high ! h264parse ! rtph264pay name=pay0 pt=96 )
Pipeline set to: ( ( tcpclientsrc port=3000 do-timestamp=true blocksize=262144 ! video/x-h264,stream-format=byte-stream,profile=high ! h264parse ! rtph264pay name=pay0 pt=96 ) )...
Stream ready at rtsp://127.0.0.1:8555/stream.high
Dear Fox Mulder, kindly ask your assistance to make sending motion event notifications to telegram.
Code: Select all
curl -i -X GET "https://api.telegram.org/bot<telegram_bot_token>/sendMessage?chat_id=<chat_id>&text=motion%20detected"
Code: Select all
chmod 755 pikrellcam/scripts/motion-notify
Code: Select all
curl -F [email protected]$PREVIEW_JPEG -H "Content-Type:multipart/form-data" "https://api.telegram.org/bot<telegram_bot_token>/sendPhoto?chat_id=<chat_id>"
Code: Select all
on_motion_begin $C/motion-notify
on_motion_preview_save $C/preview-save $F $m $P $G $A
Well, after a bit of research I found that someone has made a tool to make part of this possible. "Cast All The Things", aka catt is a project on github that allows you to cast media and websites to your Chromecast-enabled devices, including Google Nest/Home Hubs. I just successfully cast the PiKrellCam webpage using the command catt -d "Living Room Hub" cast_site http://username:[email protected], where my Google Nest Hub named "Living Room Hub" displayed the PiKrellCam site running on my deck camera. It's fully controllable from the Nest Hub's screen, too! It requires python v3, so the installed-by-default version of python (v2.7) will not work. You'll need to install the python3 and python-pip3 packages to install and run catt, and I believe you will also need to use the update-alternatives tool to specify there are multiple versions of python available:tropho wrote: ↑Thu Jul 11, 2019 2:37 pmDoes anyone have any idea how we might tie a PiKrellCam feed into Google Assistant, like to the Google Nest Hub/Google Home Hub since it has a screen? Or perhaps to Chrome/Chromecast? I have no clue how this might be accomplished, but am curious to know if it is possible.
Code: Select all
sudo update-alternatives --install /usr/bin/python python /usr/bin/python2.7 1
sudo update-alternatives --install /usr/bin/python python /usr/bin/python3.5 2
I have seen that you added a new feature in pikrellcam:
Code: Select all
#ifdef MOTION_STILLS
{ "\n# -------------------- Motion Still Recording -----------------------\n"
The #ifdef is there because I'm not finished adding the feature. I still need to work out some details on how motion stills interactandies wrote: ↑Sun Jul 14, 2019 9:13 pmI have seen that you added a new feature in pikrellcam:But I cannot find this code in the conf-file (even after upgrading). How can I activate this feature?Code: Select all
#ifdef MOTION_STILLS { "\n# -------------------- Motion Still Recording -----------------------\n"
Hi,jeff65 wrote: ↑Wed Jul 10, 2019 9:23 pmRe: Telegram
I use the curl command and the Telegram api. Not my gist, but like so:
https://gist.github.com/dideler/85de4d6 ... 2304b9caf1
Put the curl command in a script and set that to run in pikrellcam.conf when the desired event occurs. I'm calling a script to send a notification when motion start event occurs and then calling a different script sending the preview image to Telegram chat when the motion preview save event occurs.
Edit: added the details below showing my set up
Follow above gist to create your bot and get <telegram_bot_token> and <chat_id>. Make sure you substitute them in the scripts below.
Create motion-notify script in ~/pikrellcam/scripts/motion-notifyCode: Select all
curl -i -X GET "https://api.telegram.org/bot<telegram_bot_token>/sendMessage?chat_id=<chat_id>&text=motion%20detected"
Set permissions on above scriptCode: Select all
chmod 755 pikrellcam/scripts/motion-notify
Edit preview-save script ~/scripts/preview-save. Add the following to the end of scriptCode: Select all
curl -F [email protected]$PREVIEW_JPEG -H "Content-Type:multipart/form-data" "https://api.telegram.org/bot<telegram_bot_token>/sendPhoto?chat_id=<chat_id>"
Ensure these two lines are present in ~/.pikrellcam/pikrellcam.conf by uncommenting / adding / editing lines as neededCode: Select all
on_motion_begin $C/motion-notify on_motion_preview_save $C/preview-save $F $m $P $G $A
I've uploaded a version which has the motion still recording mode available so you can upgrade now and give it a try.andies wrote: ↑Sun Jul 14, 2019 9:13 pmI have seen that you added a new feature in pikrellcam:But I cannot find this code in the conf-file (even after upgrading). How can I activate this feature?Code: Select all
#ifdef MOTION_STILLS { "\n# -------------------- Motion Still Recording -----------------------\n"
Simplest is your PIR starts a record you want to have 5 seconds of precapture and you want it to record until you send "record off":Sp4rkR4t wrote: ↑Fri Aug 02, 2019 5:30 pmI've added a PIR sensor to one of my camera traps and it works well to create a 10 second video by sending "record on 5 5" to FIFO, however I'd like to send a start record command on motion activity and a stop when activity has ended, where can I find the commands I can send to FIFO to do this?
Code: Select all
"record on 5 0"
Code: Select all
"record off"
Code: Select all
"motion trigger 0:PIR"
Code: Select all
{ MMAL_PARAM_AWBMODE_GREYWORLD, "greyworld" }
Code: Select all
make
Code: Select all
white_balance greyworld