Giter Site home page Giter Site logo

sdwifi's Introduction

Automated Uploads with Transcend Wi-Fi SD Card

This is based on this article Transcend WIFI SD Hacks.

Files

SD only files

  • autorun.sh (sd root)
    Sets-up our environment.
  • config.sh (.custom)
    Configuration settings.

root-fs files

  • autoupload (.custom)
    It is copied to /bin. This script automatically uploads pictures to the configured server. Runs once on start-up.
  • busybox-armv5l (.custom)
    Copied to /sbin. Contains additional busybox functionality.

DHCP extensions

  • access.sh (.custom)
    Starts background daemons if we are on trusted wireless nets. It is added to the /etc/dhcp.script.
  • ntpd.sh (.custom)

Host only files

  • inst
    This is a script used to copy working files to the sdcard.

FTP Server

This script will automatically upload files to an FTP server. The server needs to be specially prepared. Specifically under the ftp_path directory you need to create sub-directories. The sub-directories need to be in the form:

xx.xx.xx.xx.xx.xx

Where this is the MAC address of the WIFI card, in hex with dot (.) separators and lowercase.

This directory has to be writeable to the FTP user. Also, in that directory, there should be two empty files:

.state.0
.state.1

These files should also be writeable to the FTP user.

Configuring the client

Configuring the client is through editing the file config.sh.

Basic Usage

Usage should be quite simple. Simply turn on the camera within the range of the trusted network. Thing should happen automatically.

Notes

Linux command to format SD card:

sudo mkdosfs -n C00LPIX -v /dev/sdb1

TODO

  • document stop/resume and how we handle ungraceful shutdown
  • include a status (uploading ... date ... etc)
  • or, send an e-mail (or other notification) when it starts and ends. Possible notification options:

sdwifi's People

Contributors

alejandroliu avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.