PiControl with freedisk.js

I wrote freedisk.js for PiControl. Now, I already merge with freedisk.js with piControl and I can check freedisk space of my raspberry pi from my iPhone and iPad. I also update the ajax call instaed of link. Now, piControl will not open safari for shutdown and restart.

Disk Restart

API

It also support API. You can use piControl with other program.

Shutdown

http://[yourip]:1337/shutdown

Restart

http://[yourip]:1337/restart

Free Space

http://[yourip]:1337/freedisk

It will response like following ,

[
    {"name":"/dev/disk0s4","total":269509197824,"free":21474836480},
    {"name":"/dev/disk0s4","total":50465865728,"free":22548578304}      
]

Download source at github.

comments powered byDisqus