Skip to content

soixantecircuits/watchy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

91 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Watchy

Watchy is going to die soon. Please use chokidar instead.

js-standard-style node node node node

An command-line app which watch folder and send event over socket.io about file modification. It use zeroconf to propagate its service.

Installation

  • Install system dependencies:
$ sudo add-apt-repository ppa:chris-lea/node.js && sudo apt-get update
$ sudo apt-get install nodejs
$ sudo apt-get install avahi-daemon avahi-discover libnss-mdns libavahi-compat-libdnssd-dev curl build-essential
  • Clone repo and install packages:
$ git clone git@github.com:soixantecircuits/watchy.git && cd watchy
$ npm install
  • Copy the example config et fill it with your own:
$ cp config/config.example.json config/config.json
$ vim config/config.json

Be careful with the servicelookup name

  • Launch it:
$ npm start

Important note: The device must be connected to a network which can access the internet

Troubleshooting

Linux:

  • Waiting...Fatal error: watch ENOSPC :

    You can just type echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p in a terminal. Read here for explanations.

  • The program 'nodejs' called 'DNSServiceRegister()' which is not supported (or only supported partially) in the Apple Bonjour compatibility layer of Avahi.

    You can ignore it for now. Don't forget that the config files allows you to specify the server that you want to connect to.

TODO

  • Don't connect twite to the same service/adress
  • Find nice name that no one has thought of.

Releases

No releases published

Packages

No packages published