Search found 3 matches
- Monday 14 November 2016 14:23
- Forum: PHP and all others
- Topic: Parsing JSON with JQ
- Replies: 5
- Views: 2473
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://djangostars ...
- Thursday 10 November 2016 14:30
- Forum: LUA
- Topic: Find My iPhone implementation in LUA script
- Replies: 273
- Views: 75011
Re: Find My iPhone implementation in LUA script
Wow its really cool
- Thursday 10 November 2016 14:29
- Forum: Cameras
- Topic: how to turn a camera into a presence detector?
- Replies: 13
- Views: 3358
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 does not ...