Commit Graph

179 Commits

Author SHA1 Message Date
Bart Van Der Meerssche 66ee322216 [heartbeat] use heartbeat return timestamp to sync time in case ntpclient does not get the job done 2011-04-18 21:55:24 +02:00
Bart Van Der Meerssche 53294f1aea [nixio] add settimeofday method to nixio 2011-04-18 21:35:39 +02:00
Bart Van Der Meerssche b799e4629c [luad] move the #restarts check to the end of the loop, so that it does not get triggered when booting in the first 60secs of epoch time 2011-04-18 21:34:52 +02:00
Bart Van Der Meerssche 91408ddac0 [openwrt] backport crond loglevel fix to busybox v1.15.3-2 2011-04-18 15:43:57 +02:00
Bart Van Der Meerssche 94825afe2d [openwrt] run make oldconfig to update the .config to openwrt r26713 2011-04-18 15:41:58 +02:00
Bart Van Der Meerssche 977f25cc48 [fluksod] make fluksod settings configurable through uci file 2011-04-18 10:28:51 +02:00
Bart Van Der Meerssche 7b81c079f6 [fluksod] add a crontab entry that checks up on the daemon every 15min 2011-04-17 22:08:56 +02:00
Bart Van Der Meerssche 30e0aabab1 [heartbeat] used the wrong variable for calculating the digest 2011-04-16 23:49:27 +02:00
Bart Van Der Meerssche f94e74ddc7 [heartbeat] update the heartbeat to use JSON/HTTPS 2011-04-16 20:54:25 +02:00
Bart Van Der Meerssche 2d42dce5f6 [luci] include a switch to disable peer certificate validation in httpclient 2011-04-16 20:08:29 +02:00
Bart Van Der Meerssche 2faf05b58f [luci] bugfix to make luci.json.encode() work like expected 2011-04-16 12:49:03 +02:00
Bart Van Der Meerssche 216c10202b [fluksod] send non-200 HTTP calls with err level to syslog 2011-04-08 21:01:26 +02:00
Bart Van Der Meerssche e30d3103af [fluksod] improve POST call error logging 2011-04-08 15:46:12 +02:00
Bart Van Der Meerssche 7a5abf1110 [fluksod] remove obsolete comments 2011-04-07 11:13:13 +02:00
Bart Van Der Meerssche e41aa35ccc [fluksod] determine threshold based on current unix time 2011-04-06 15:36:11 +02:00
Bart Van Der Meerssche 5defc5b906 [fluksod] send POST response codes to syslog 2011-04-05 10:31:34 +02:00
Bart Van Der Meerssche 5bffb794d7 [fluksod] send accepted incoming pulses to syslog 2011-04-05 09:25:46 +02:00
Bart Van Der Meerssche f6f6fd3d6e [fluksod + fsync] acquire a write lock on the delta and ctrl fifos when in use 2011-04-04 12:35:34 +02:00
Bart Van Der Meerssche 350a373b72 [fluksod] rename type option to class in the flukso uci file 2011-04-01 15:54:55 +02:00
Bart Van Der Meerssche 0e84af3d04 [fluksod] get http client version from system.@system[0].version 2011-03-30 20:18:56 +02:00
Bart Van Der Meerssche 54ab3a3740 [fluksod] POST measurements to the new RESTful API 2011-03-30 16:20:03 +02:00
Bart Van Der Meerssche d14866cb97 [fluksod] substitute meter for sensor in data module 2011-03-29 21:05:26 +02:00
Bart Van Der Meerssche b0fd4c2753 [fluksod] allow individual sensor measurements to be flushed 2011-03-29 20:55:16 +02:00
Bart Van Der Meerssche 8f0a37d869 [luci] add support for persistent http[s] connections to httpclient 2011-03-26 22:23:22 +01:00
Bart Van Der Meerssche 285833b1f8 [openwrt] remove the rdate hotplug script from the build 2011-03-24 22:24:47 +01:00
Bart Van Der Meerssche 1fbccc9f08 [openwrt] remove the spidev chmod from rc.local 2011-03-24 22:00:05 +01:00
Bart Van Der Meerssche cf45925c44 [openwrt] move sensor config loading at firstboot to flukso init script 2011-03-24 21:56:56 +01:00
Bart Van Der Meerssche 90f4f8be8c [openwrt] add sha1sum and patch busybox commands to the build 2011-03-21 21:04:33 +01:00
Bart Van Der Meerssche 415bcdda48 [flukso] configure flukso device and sensor ids at firstboot 2011-03-10 20:29:17 +01:00
Bart Van Der Meerssche 70ce6fd748 [openwrt] bump package versions of avahi, expat, gdbm, intltool, libdaemon and ntpclient 2011-03-10 10:07:03 +01:00
Bart Van Der Meerssche 34196cc1f1 [fsync] generate a flukso.service file for avahi 2011-03-06 01:05:15 +01:00
Bart Van Der Meerssche 7b5b64abf8 [fsync] check whether sensor exists and has been enabled when symlinking 2011-03-06 00:25:14 +01:00
Bart Van Der Meerssche 5681ec612f [fsync] update sensor symlinks to cgi-script 2011-03-05 20:02:15 +01:00
Bart Van Der Meerssche 5a2122a0c5 [httpclient] name clash: error is alread used by the basic library in Lua 2011-03-05 10:09:07 +01:00
Bart Van Der Meerssche a826343f6c [luci] allow httpclient to perform peer certificate validation 2011-03-05 00:07:56 +01:00
Bart Van Der Meerssche e5c1cd9f00 [luci] select cyassl as luci crypto library 2011-03-05 00:06:59 +01:00
Bart Van Der Meerssche 62b4c7aadf [openwrt] practicing ASCII art 2011-02-26 00:09:24 +01:00
Bart Van Der Meerssche e3de39f026 [fluksod] allow counter to wrap around in WAN branch 2011-02-17 00:11:21 +01:00
Bart Van Der Meerssche efda61d08a [fsync] fix typo 2011-02-12 20:38:23 +01:00
Bart Van Der Meerssche 0878114479 [spid] double Rx/Tx delay to 20ms to accomodate for gd commands 2011-02-12 20:03:29 +01:00
Bart Van Der Meerssche 7e99548842 [luad] add an Erlang-style supervisior to the daemon 2011-02-12 19:34:10 +01:00
Bart Van Der Meerssche 36746544ee [fdude] wraps avrdude in an spidev resource lock 2011-02-12 15:27:01 +01:00
Bart Van Der Meerssche 7fba026ddb [spid + fsync] add support for commit command 2011-02-12 12:36:53 +01:00
Bart Van Der Meerssche 849c671175 [spid] set SPI_TX_RX_DELAY_NS to 10ms, down from 100ms 2011-02-12 11:47:31 +01:00
Bart Van Der Meerssche cbc7949d95 [openwrt] add init.d script to flukso package 2011-02-03 12:28:36 +01:00
Bart Van Der Meerssche 9e8b7680b6 [restful] port local JSON/REST interface to v2 2011-02-03 12:27:24 +01:00
Bart Van Der Meerssche b69a4d5bdd [fluksod] fix bug in pulse logic 2011-02-03 12:25:52 +01:00
Bart Van Der Meerssche 8b7cc4510a [busybox] enable ip command for use in horst shell script 2011-02-03 12:23:00 +01:00
Bart Van Der Meerssche 8d2ccb8979 [avrdude] patch avrdude to work with inverted logic on RST and SCK lines 2011-02-03 12:21:44 +01:00
Bart Van Der Meerssche e842040395 [avr + avrdude] switching to m168p hardware 2011-02-03 12:15:41 +01:00
Bart Van Der Meerssche 893cb4f446 [fluksod] port remaining coroutines to v2 2011-01-30 22:57:37 +01:00
Bart Van Der Meerssche 17b8137e3d [fluksod] add wan and lan buffer coroutines 2011-01-30 17:21:31 +01:00
Bart Van Der Meerssche 99aee26dba [fluksod] first commit for the born-again fluksod 2011-01-30 11:52:35 +01:00
Bart Van Der Meerssche 884a7d859a [spid + fsync] change CTRL and DAEMON paths to point to spid 2011-01-30 10:18:19 +01:00
Bart Van Der Meerssche 069a8540b0 [luci] backport json decode/encode string functions from 0.10 2011-01-29 19:53:41 +01:00
Bart Van Der Meerssche 23b47bd955 [avr + fsync] check against MAX_ANALOG_SENSOR 2011-01-28 21:28:43 +01:00
Bart Van Der Meerssche 55ecdd3451 [fsync] enable/disable cmd works on sensors, not on ports 2011-01-28 20:38:19 +01:00
Bart Van Der Meerssche 3cff549f8c [fsync] print clearly that a config error has occurred 2011-01-28 14:48:56 +01:00
Bart Van Der Meerssche 8ff7770f0a [fsync] add port numbering check for phy_to_log 2011-01-28 14:43:55 +01:00
Bart Van Der Meerssche 688df77ffa [fsync] add an enable option to each sensor in the uci file 2011-01-28 12:51:10 +01:00
Bart Van Der Meerssche cf5af8ec0b [fsync] include copyright header 2011-01-28 11:17:21 +01:00
Bart Van Der Meerssche d870088415 [fluksod] improved message arg checking 2011-01-28 10:41:55 +01:00
Bart Van Der Meerssche fd51388300 [fluksod] create empty table for arg when not called from the Lua interpreter 2011-01-28 10:14:17 +01:00
Bart Van Der Meerssche 4e4f4a8f88 [fsync] first implementation of fsync command: pushes the flukso uci config to the sensor board 2011-01-27 10:46:29 +01:00
Bart Van Der Meerssche 78b1ec3be3 [avr + fluksod] add per-port enable/disable commands 2011-01-26 14:08:46 +01:00
Bart Van Der Meerssche 33cffa6b79 [fluksod] -d switch will put fluksod.lua in debugging mode 2011-01-25 15:10:18 +01:00
Bart Van Der Meerssche 3d41fba408 [fluksod] encode/decode all sensor board commands 2011-01-25 14:54:40 +01:00
Bart Van Der Meerssche 6084528217 [fluksod] enclose dbg.vardump in a DEBUG switch 2011-01-25 10:32:47 +01:00
Bart Van Der Meerssche 769df42192 [openwrt] add 990-add_timerfd_support.patch to install script 2011-01-25 10:19:36 +01:00
Bart Van Der Meerssche c2c2dd051b [fluksod] set msg.received.{l,u} to nil when equal to empty string 2011-01-25 10:09:55 +01:00
Bart Van Der Meerssche 8d28890acb [fluksod] return timestamp as first part of the delta reply 2011-01-24 18:53:51 +01:00
Bart Van Der Meerssche 728ac3e059 [nixio] enclose numexp with a __linux__ switch 2011-01-24 15:42:38 +01:00
Bart Van Der Meerssche c754127df2 [fluksod] set up a timerfd to poll the sensor board periodically 2011-01-24 14:40:52 +01:00
Bart Van Der Meerssche 3da4eee152 [nixio] add timerfd and numexp functions to get timer notifications via fds 2011-01-24 14:15:30 +01:00
Bart Van Der Meerssche abaefa00ad [uClibc] include linux-specific timerfd syscalls 2011-01-24 14:11:27 +01:00
Bart Van Der Meerssche 3cc10bde7d [nixio] clean up compiler warnings 2011-01-24 13:34:30 +01:00
Bart Van Der Meerssche 528a121b2e [nixio]: add a setitimerfd function to the library 2011-01-24 10:50:27 +01:00
Bart Van Der Meerssche d7a4425662 [openwrt] add luaprofiler and ucitrigger packages to the build 2011-01-24 10:46:22 +01:00
Bart Van Der Meerssche 0ff4f20cfc [fluksod] put an advisory lock on spidev 2011-01-22 00:07:01 +01:00
Bart Van Der Meerssche 2fa9a53766 [fluksod + nixio] add { ctrl, delta, uart } dispatching 2011-01-21 20:31:18 +01:00
Bart Van Der Meerssche 0d3f076b5f [spidev + nixio + fluksod] allow the bitbanged spi max speed and inter-byte delay to be dynamically set from user space 2011-01-19 22:12:49 +01:00
Bart Van Der Meerssche d208545000 [avr + fluksod] enable crc checking in both spi directions 2011-01-17 11:11:44 +01:00
Bart Van Der Meerssche b2e7f486f9 [openwrt] add spi tuning patch to install script 2011-01-16 19:39:46 +01:00
Bart Van Der Meerssche 968e25c863 [fluksod] spi half-duplex logic is now handled in the kernel driver 2011-01-15 19:56:40 +01:00
Bart Van Der Meerssche f033d465ad [spidev] tune the spi bitbanging driver for interaction with an AVR slave 2011-01-15 10:27:58 +01:00
Bart Van Der Meerssche d3dd4366da [fluksod] implement spi read operation in C 2011-01-11 09:24:29 +01:00
Bart Van Der Meerssche aa412d1dc4 [nixio] implement hextonum and numtohex in C 2011-01-10 14:50:10 +01:00
Bart Van Der Meerssche 7c3ad70ff2 [nixio] implement dow_crc8 in C 2011-01-10 01:22:20 +01:00
Bart Van Der Meerssche d60e749873 [openwrt] add the luaprofiler package 2011-01-09 22:18:50 +01:00
Bart Van Der Meerssche 3298f30ead [fluksod] compile luad against the gnu99 standard 2011-01-09 19:57:22 +01:00
Bart Van Der Meerssche 9a27a1f22d [fluksod] chmod 666 /dev/spidev0.0 in rc.local 2011-01-09 14:01:37 +01:00
Bart Van Der Meerssche f3516415bd [fluksod] skeleton implementation of message processing on spidev bus 2011-01-09 12:00:50 +01:00
Bart Van Der Meerssche 221636f5cf openwrt: luad is a libdaemon-based generic daemonization framework for Lua code 2011-01-07 14:41:46 +01:00
Bart Van Der Meerssche 3e258f13f8 openwrt: add flukso as a user/group 2011-01-05 20:58:27 +01:00
Bart Van Der Meerssche 619b6e0436 openwrt: add 120-add_gettimeofday.patch to luci/patches 2010-12-30 23:34:01 +01:00
Bart Van Der Meerssche 0dc94a5994 openwrt: add gettimeofday to nixio library 2010-12-30 23:33:01 +01:00
Bart Van Der Meerssche d0dfd67d30 openwrt: include kmod-spi-gpio 2010-12-26 12:14:10 +01:00
Bart Van Der Meerssche 17456428dd openwrt: prettify the install script output 2010-12-24 10:56:35 +01:00
Bart Van Der Meerssche af6a4d20ce openwrt: add rrdtool 1.0.x to the build 2010-12-21 22:06:02 +01:00
Bart Van Der Meerssche 05bb8a88d3 openwrt: select avrdude package for inclusion in flukso v2 image 2010-12-21 21:49:23 +01:00