Flux de l'information
graph TD
Freebox---|API-V4|script
script---|input-plugin-exec|telegraf
telegraf---influxDB
influxDB---Chronograf
influxDB---GrafanaFlux de l'information
graph TD
Freebox---|API-V4|script
script---|input-plugin-exec|telegraf
telegraf---influxDB
influxDB---Chronograf
influxDB---Grafana| #!/bin/bash | |
| # rotate log files with bash script. | |
| function _logrotate { | |
| file=$1 | |
| MAXLOG=10 | |
| # return if $file does not exists | |
| [ ! -f $file ] && return 0 | |
des liens à propos de notre Fablab et de son Wiki associé : https://sites.google.com/site/wikidomodelec/
liens :
| #!/bin/bash | |
| # links: | |
| # - http://kaitai.io/ | |
| # - http://doc.kaitai.io/developers.html#_building_for_jvm | |
| # - https://hub.docker.com/r/hseeberger/scala-sbt/ | |
| # - https://www.scala-sbt.org/ | |
| # tags : sbt, kaitai, docker |
| #!/usr/bin/ruby | |
| # Mattermost simple cli command based on API4 from maruTA code | |
| # version : 0.3 | |
| # usage : | |
| # you need to create a new token in Mattermost to use this CLI | |
| # and export this token as MM_TOKEN and MM_SERVER (or as an option) | |
| # export MM_TOKEN='...' | |
| # export MM_SERVER='https://mattermost.localhost/api/v4' |
| #!/usr/bin/ruby | |
| # Domoticz-MQTT Gateway ; author : Marc Quinton / may 2018 | |
| # source : https://gist.github.com/mqu/fc33f3b9aa2d7c09244e2d36c6c7302e (transitionnal) | |
| # version 0.02 | |
| # fixme : | |
| # - remove hardcoded topics and strings | |
| # - handle "domoticz/out" topics | |
| # - handle mqtt disconnect / done | |
| # |
| #!/usr/bin/ruby | |
| require "selenium-webdriver" | |
| require 'pp' | |
| # install : | |
| # sudo apt-get install ruby ruby-dev chromium-chromedriver firefoxdriver | |
| # sudo gem install selenium-webdriver | |
| # sudo ln -s /usr/lib/chromium-browser/chromedriver /usr/local/bin/ |
| FROM ubuntu:trusty | |
| MAINTAINER mqu@foobar.local | |
| # Yadics Dockerfile : http://yadics.univ-lille1.fr/wordpress/?page_id=57 | |
| # see : https://linuxfr.org/forums/linux-debian-ubuntu/posts/empaqueter-une-appli-dans-docker | |
| # download url | |
| ARG url=http://yadics.univ-lille1.fr/wordpress/wp-content/plugins/filedownload/download.php/?path=http://yadics.univ-lille1.fr/wordpress/wp-content/uploads/2015/05/YaDICs_Project.zip&type=&check=&referer=/wordpress/?page_id=2 | |
| # dependencies : http://yadics.univ-lille1.fr/wordpress/?page_id=57 |
| F3(1) test real flash memory capacity F3(1) | |
| NAME | |
| f3write, f3read - test real flash memory capacity | |
| SYNOPSIS | |
| f3write [--start-at=NUM] [--end-at=NUM] <PATH> | |
| f3read [--start-at=NUM] [--end-at=NUM] <PATH> | |
| DESCRIPTION |
| #!/usr/bin/ruby | |
| # ier411.rb - ruby API to manage and write to IER-411 strip printer | |
| # | |
| # author : Marc Quinton / 2017.08 - DSNA-DTI/EEI. | |
| # link : https://gist.github.com/mqu/85a3b60a64a963e771962b8d27e03da9 | |
| # | |
| # keywords : ATC, ANSP, strip, printer, ruby, serial, xon-xoff. | |
| # | |
| # simple API to manage and write to IER-411 strip printer, later in use in French ANSP airports |