Search found 3 matches

by VladGets
Monday 14 November 2016 14:23
Forum: PHP and all others
Topic: Parsing JSON with JQ
Replies: 5
Views: 2696

Re: Parsing JSON with JQ

is it a python script?

tim = '16:30:10'
hrs, mins, secs = tim.split(':')

or bash?

#!/usr/bin/env bash

IN="[email protected];[email protected]"

mails=$(echo $IN | tr ";" "\n")

for addr in $mails
do
echo "> [$addr]"
done

if you are interested in this questions, you can read more this blog http ...
by VladGets
Thursday 10 November 2016 14:30
Forum: LUA
Topic: Find My iPhone implementation in LUA script
Replies: 273
Views: 88012

Re: Find My iPhone implementation in LUA script

Wow its really cool
by VladGets
Thursday 10 November 2016 14:29
Forum: Cameras
Topic: how to turn a camera into a presence detector?
Replies: 13
Views: 3571

Re: how to turn a camera into a presence detector?

Not so hard if you know Google.
Something like this should do it.


#!/bin/bash
#Count files at start
PREV=`find /volume1/files/PiCam1/archive/ -type f | wc -l`
RUN=1
#Start endless loop
while :
do
#Check number of files again
NEW=`find /volume1/files/PiCam1/archive/ -type f | wc -l`
#if new ...